深度學(xué)習(xí)DataFountain疫情期間網(wǎng)民情緒識(shí)別大賽(NLP方向)
2023-02-13 12:47 作者:娜娜絡(luò)絡(luò) | 我要投稿
? ? picture_size = {}
? ? ? ? ? ?for file in tqdm.tqdm(self.join, desc='all samples of train set and test set'):
? ? ? ? ? ? ? ?file_path = expand_path(file)
? ? ? ? ? ? ? ?if isfile(file_path): ?# 圖片存在
? ? ? ? ? ? ? ? ? ?img_size = Image.open(file_path).size
? ? ? ? ? ? ? ? ? ?picture_size[file] = img_size ? ? ? ?return picture_size
標(biāo)簽: