FewX icon indicating copy to clipboard operation
FewX copied to clipboard

IndexError: list index out of range

Open rhqian opened this issue 4 years ago • 4 comments

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

rhqian avatar Jan 11 '21 09:01 rhqian

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

xiaodongdreams avatar Jan 11 '21 10:01 xiaodongdreams

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

rhqian avatar Jan 12 '21 03:01 rhqian

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

anujstam avatar Jan 27 '21 11:01 anujstam

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

qjc7777 avatar May 24 '21 07:05 qjc7777