This file contains 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/python | |
print "Converting all of the .dav files in this current directory into .mp4 files using ffmpeg" | |
import os | |
from subprocess import call | |
files = [f for f in os.listdir('.') if os.path.isfile(f)] | |
for f in files: | |
ext = f.split(".")[-1] | |
if ext == "dav" or ext == "DAV": |
This file contains 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 os | |
import torch | |
import torch.utils.data | |
import torchvision | |
from PIL import Image | |
from pycocotools.coco import COCO | |
class myOwnDataset(torch.utils.data.Dataset): | |
def __init__(self, root, annotation, transforms=None): | |
self.root = root |