fanq15 / FewX

FewX is an open-source toolbox on top of Detectron2 for data-limited instance-level recognition tasks.
https://github.com/fanq15/FewX
MIT License
346 stars 48 forks source link

IndexError: list index out of range #30

Open rhqian opened 3 years ago

rhqian commented 3 years ago

When I add a new class to my training set,I run sh all_sh,There was an error: query_cls = self.support_df.loc[self.support_df['id']==id, 'category_id'].tolist()[0] # they share the same category_id and image_id IndexError: list index out of range I checked my dataset_dict and support_df and didn't find anything wrong,so I am confused. Can you give me some advice

xiaodongdreams commented 3 years ago

When I add a new class to my training set,I run sh all_sh,There was an error: query_cls = self.support_df.loc[self.support_df['id']==id, 'category_id'].tolist()[0] # they share the same category_id and image_id IndexError: list index out of range I checked my dataset_dict and support_df and didn't find anything wrong,so I am confused. Can you give me some advice

I have encountered with the same error, too. Could you give us some advice? @fanq15

rhqian commented 3 years ago

I changed the JSON file in the registration dataset and it worked out.

anujstam commented 3 years ago

Facing the same issue. Could you please elaborate on the fix?

qjc7777 commented 3 years ago

I changed the JSON file in the registration dataset and it worked out.

I encountered the same problem. Can you elaborate on your solution? @rhqian