记录一下pytorch读取大型数据集的要点
# pytorch 读取大数据集的一般方法
class mydataset(Data.Dataset):
def __init__(self,root='filepath'):
self.root = root
# __init__ 中读取文件路径而非文件本体
self.imgs_list
记录一下pytorch读取大型数据集的要点
# pytorch 读取大数据集的一般方法
class mydataset(Data.Dataset):
def __init__(self,root='filepath'):
self.root = root
# __init__ 中读取文件路径而非文件本体
self.imgs_list