data_dir='../data'
train_imgs=gdata.vision.ImageFolderDataset(os.path.join(data_dir,'hotdog/train'))
test_imgs=gdata.vision.ImageFolderDataset(os.path.join(data_dir,'hotdog/test'))
print(len(train_imgs),len(test_imgs))#2000,800
2000张训练图片(热狗+非热狗),800张测试图片(热狗+非热狗)
1