深度学习Kaggle大赛木薯叶病分类大赛指导班(CV·图像分类)
获取图片大小
# Determise the size of each imagefrom os.path import isfilefrom PIL import Image as pil_imagefrom tqdm import tqdm_notebook
TRAIN = 'data/train/'TEST = 'data/test/'def expand_path(path):
if isfile(TRAIN + path):
return TRAIN + path if isfile(TEST + path):
return TEST + path return path