Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: Failed to read image #143

Open
Ebeie opened this issue May 24, 2021 · 0 comments
Open

AssertionError: Failed to read image #143

Ebeie opened this issue May 24, 2021 · 0 comments

Comments

@Ebeie
Copy link

Ebeie commented May 24, 2021

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 upsnet_train
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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant