anuragxel / salt

Segment Anything Labelling Tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IndexError: list index out of range

SuroshAhmadZobair opened this issue · comments

Hi
Thanks for your quick and great job!

I want to test on 3 images but get the following error when calling segment_anything_annotator.py
any insights?

Traceback (most recent call last): File "segment_anything_annotator.py", line 26, in <module> editor = Editor( File "/mnt/data/polymore/salt/salt/editor.py", line 57, in __init__ ) = self.dataset_explorer.get_image_data(self.image_id) File "/mnt/data/polymore/salt/salt/dataset_explorer.py", line 146, in get_image_data image_name = self.coco_json["images"][image_id]["file_name"] IndexError: list index out of range

Thanks in advance

I also encountered the same problem.

Can you paste the contents of your images folder?

@Terrylala
Can you please share the contents of your images dir?
Mine would be a violation of NDA.

Thanks for you support!

commented

I am also facing the same issue!!!

The dataset should be in the following format. I tried your data and it worked for me.

<dataset_name>/images/*.jpg
<dataset_name>/embeddings/*.npy

Screenshot 2023-04-13 at 8 39 21 AM