uber-research / UPSNet

UPSNet: A Unified Panoptic Segmentation Network
Other
649 stars 120 forks source link

AssertionError: Failed to read image #143

Open Ebeie opened 3 years ago

Ebeie commented 3 years ago

when I run python upsnet/upsnet_end2end_train.py --cfg upsnet/experiments/upsnet_resnet50_coco_4gpu.yaml,this question happened

``Traceback (most recent call last): File "upsnet/upsnet_end2end_train.py", line 403, in upsnet_train() File "upsnet/upsnet_end2end_train.py", line 257, in upsnettrain data, label, = train_iterator.next() File "/home/ustb/anaconda3/envs/upsnet/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 336, in next return self._process_next_batch(batch) File "/home/ustb/anaconda3/envs/upsnet/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch raise batch.exc_type(batch.exc_msg) AssertionError: Traceback (most recent call last): File "/home/ustb/anaconda3/envs/upsnet/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop samples = collate_fn([dataset[i] for i in batch_indices]) File "/home/ustb/anaconda3/envs/upsnet/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 106, in samples = collate_fn([dataset[i] for i in batch_indices]) File "upsnet/../upsnet/dataset/coco.py", line 126, in getitem im_blob, im_scales = self.get_image_blob([self.roidb[index]]) File "upsnet/../upsnet/dataset/base_dataset.py", line 127, in get_image_blob 'Failed to read image \'{}\''.format(roidb[i]['image']) AssertionError: Failed to read image './data/coco/images/train2017/000000546010.jpg'