This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import io | |
import os | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import torch | |
from PIL import Image | |
from tfrecord.torch.dataset import TFRecordDataset | |
from torch.utils.data import DataLoader, IterableDataset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import shutil | |
from multiprocessing import Pool | |
import cv2 | |
import numpy as np | |
from cv2 import KeyPoint |