Closed Egorundel closed 10 months ago
Likely an issue with your underlying dataset. Sorry, there's just not a lot of info for us to help here.
@NicolasHug And what other data is needed to reveal more information?
Traceback points to pycocotools
:
File "pycocotools/_mask.pyx", line 294, in pycocotools._mask.frPyObjects
IndexError: list index out of range
So likely, one of the encoded masks you have in your dataset is broken, since they cannot be decoded. You need to figure out which sample is causing this and fix your data.
@pmeier Hello! How I can check the broken data? Maybe you have a script for check it?
Nope, you gotta write one yourself. You need to iterate over your dataset and invoke
on all segmentations and see for which it breaks.
🐛 Describe the bug
Hello, I have
IndexError: Caught IndexError in DataLoader worker process 0.
andIndexError: list index out of range.
errorswhen I run the code:
torchrun --nproc_per_node=1 train.py --dataset coco --model retinanet_resnet50_fpn --epochs 3 --lr-steps 16 22 --aspect-ratio-group-factor 3 --lr 0.01 --weights-backbone ResNet50_Weights.IMAGENET1K_V1
What could be the mistake? How can I fix it?
Versions
OS: Ubuntu 20.04
pip packages:
torch
2.2.0.dev20231128+cu118torchaudio
2.2.0.dev20231128+cu118torchvision
0.17.0.dev20231128+cu118PyYAML
6.0.1pycocotools
2.0.7Pillow
9.3.0matplotlib
3.7.4Hardware: RTX3060