Exception in thread Thread-16: Traceback (most recent call last):
File
“/opt/conda/envs/python35-paddle120-env/lib/python3.7/threading.py”,
line 926, in _bootstrap_inner
self.run() File “/opt/conda/envs/python35-paddle120-env/lib/python3.7/threading.py”,
line 870, in run
self._target(*self._args, **self._kwargs) File “/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/reader/decorator.py”,
line 400, in handle_worker
r = mapper(sample) File “/home/aistudio/MyDataLoader.py”, line 37, in train_mapper
is_train=True) File “/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/dataset/image.py”,
line 357, in simple_transform
im = resize_short(im, resize_size) File “/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/dataset/image.py”,
line 215, in resize_short
h, w = im.shape[:2] AttributeError: ‘NoneType’ object has no attribute ‘shape’
if(str(type(img))=="" ):
print(path)