Skip to content

visualizer IndexError: list index out of range  #99

@MichaelEissner

Description

@MichaelEissner

Hello, i am using this toolkit in win10 with python 3.7.9.

I have downloaded the class Cat and now want to use the virtualizer to view the images.

But i get the following error:

Traceback (most recent call last):
  File "main.py", line 37, in <module>
    bounding_boxes_images(args, DEFAULT_OID_DIR)
  File "C:\Users\MS-23\Documents\GitHub\OIDv4_ToolKit\modules\bounding_boxes.py", line 192, in bounding_boxes_images
    show(class_name, download_dir, label_dir,len(os.listdir(download_dir))-1, index)
  File "C:\Users\MS-23\Documents\GitHub\OIDv4_ToolKit\modules\show.py", line 39, in show
    img_file = os.listdir(download_dir)[index]
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions