detecto icon indicating copy to clipboard operation
detecto copied to clipboard

Element missing from middle of dataset

Open liocoa opened this issue 5 years ago • 1 comments

Describe the bug I am training a custom model with a set of 162 training images. When I run model.fit, it works until I reach image 95, when it throws a "single positional indexer is out-of-bounds" exception. Upon closer inspection, attempting to index that item manually yields the same exception. Every other index from 0 to 161 works, with the exception of 95. What is happening?

Code and Data

for n in range(len(dataset)): try: dataset[n] print(f'{n}/{len(dataset)}') except: print("Missing!")

This yields:

0/162 1/162 2/162 ... 93/162 94/162 Missing! 96/162 97/162 ... 159/162 160/162 161/162

Environment:

  • OS: Google Colab
  • Python version: 3.6.9
  • Detecto version: 1.2.0
  • torch version: 1.7.0+cu101
  • torchvision version: 0.8.1+cu101

liocoa avatar Nov 24 '20 20:11 liocoa

I would guess most likely there's an issue with the XML file or image file for that specific index. Could you double-check that everything matches correctly for that index?

alankbi avatar Nov 25 '20 21:11 alankbi