andy-yun / pytorch-0.4-yolov3

Yet Another Implimentation of Pytroch 0.4.1 and YoloV3 on python3
MIT License
278 stars 72 forks source link

Running voc_eval.py gives error #47

Closed mahavird closed 5 years ago

mahavird commented 5 years ago

Hi @andy-yun ,

Thanks for the cool repository.

I am facing an issue while validating voc dataset.

What changes do I need to make changes to run the voc_eval.py in python 3.5.

I saw that the code of the file suits the syntax of python 2.7.

Regards, Mahavir

leadcain84 commented 5 years ago

there are some mismatch points. report the error points. i will easily change that.

mahavird commented 5 years ago

Hi @andy-yun ,

Following is the issue I am facing: error

andy-yun commented 5 years ago

@mahavird Use my_eval.py rather than voc_eval.py. voc_eval.py is and old version and it is not used in my repo.

mahavird commented 5 years ago

Hi @andy-yun ,

When I tried my_eval.py on my dataset it is giving the following error, which parameters do I need to change ? error_new

As you can see, it is stopping after evaluating a few classes.

andy-yun commented 5 years ago

The above error is occurred when the sorted_ind is null. therefore, you can modify the code as: If len(sorted_ind)>0: BB = BB[sorted_ind,:]

Sent with GitHawk

mahavird commented 5 years ago

@andy-yun Thanks for the help. It worked