yhenon/pytorch-retinanet

Training Issue

vitusdama opened this issue · 3 comments

Hi, I tried to train using CSV and there's a problem in csv_eval like this:

IndexError: index -1 is out of bounds for axis 0 with size 0 in line 240 of csv_eval
238 label_name = generator.label_to_name(label)
239 print('{}: {}'.format(label_name, average_precisions[label][0]))
--> 240 print("Precision: ",precision[-1])
241 print("Recall: ",recall[-1])
242

IndexError: index -1 is out of bounds for axis 0 with size 0

anyone can help to fix this? Thank you very much

have you solved this problem?

hey @vitusdama @nekodondon did you solve this?
I'm getting this error:
csv_eval.py", line 240, in evaluate
print("Precision: ",precision[-1])
IndexError: index -1 is out of bounds for axis 0 with size 0

Hi, I tried to train using CSV and there's a problem in csv_eval like this:

IndexError: index -1 is out of bounds for axis 0 with size 0 in line 240 of csv_eval 238 label_name = generator.label_to_name(label) 239 print('{}: {}'.format(label_name, average_precisions[label][0])) --> 240 print("Precision: ",precision[-1]) 241 print("Recall: ",recall[-1]) 242

IndexError: index -1 is out of bounds for axis 0 with size 0

anyone can help to fix this? Thank you very much

hi there, did you manage to resolve this issue ?