You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UnboundLocalError: local variable 'photoshop' referenced before assignment
File "train.py", line 416, in <module>
trained_net = train_model(net, dataloaders_dict, criterion, optimizer, num_epochs=num_epochs)
File "train.py", line 368, in train_model
for inputs, labels in tqdm(dataloaders_dict[phase]):
File "/anaconda/envs/py36/lib/python3.6/site-packages/tqdm/_tqdm.py", line 1005, in __iter__
for obj in iterable:
File "/anaconda/envs/py36/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 560, in __next__
batch = self.collate_fn([self.dataset[i] for i in indices])
File "/anaconda/envs/py36/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 560, in <listcomp>
batch = self.collate_fn([self.dataset[i] for i in indices])
File "train.py", line 245, in __getitem__
img = Image.open(img_path) # [高さ][幅][色RGB]
File "/anaconda/envs/py36/lib/python3.6/site-packages/PIL/Image.py", line 2690, in open
im = _open_core(fp, filename, prefix)
File "/anaconda/envs/py36/lib/python3.6/site-packages/PIL/Image.py", line 2676, in _open_core
im = factory(fp, filename)
File "/anaconda/envs/py36/lib/python3.6/site-packages/PIL/JpegImagePlugin.py", line 783, in jpeg_factory
im = JpegImageFile(fp, filename)
File "/anaconda/envs/py36/lib/python3.6/site-packages/PIL/ImageFile.py", line 103, in __init__
self._open()
File "/anaconda/envs/py36/lib/python3.6/site-packages/PIL/JpegImagePlugin.py", line 373, in _open
handler(self, i)
File "/anaconda/envs/py36/lib/python3.6/site-packages/PIL/JpegImagePlugin.py", line 139, in APP
self.info["photoshop"] = photoshop
UnboundLocalError: local variable 'photoshop' referenced before assignment
The text was updated successfully, but these errors were encountered:
対象ファイル:1-3_transfer_learning.ipynb
学習の途中でエラーが発生します。
どう対応すれば良いでしょうか?
UnboundLocalError: local variable 'photoshop' referenced before assignment
The text was updated successfully, but these errors were encountered: