Complex-YOLO icon indicating copy to clipboard operation
Complex-YOLO copied to clipboard

How can I get predicted class in eval.py

Open atinfinity opened this issue 6 years ago • 11 comments

In https://github.com/AI-liu/Complex-YOLO#result, predicted box and predicted class is drawn. But, I think that eval.py draws only predicted box and target box. So, I want to know how to get predicted class from all_boxes.

atinfinity avatar Mar 13 '19 21:03 atinfinity

@atinfinity i am too facing the same issue did u get a solution for it

abhigoku10 avatar Mar 14 '19 12:03 abhigoku10

@abhigoku10 I think that pred_boxes has 15 elements. And, pred_boxes[7]~[14] has the confidence of classes.
https://github.com/AI-liu/Complex-YOLO/blob/master/eval.py#L59-L68

But, some element has negative value. So, I don't understand this reason.

atinfinity avatar Mar 14 '19 14:03 atinfinity

@atinfinity thanks for the inputs, yes negatives even i observed it and had one query does the prediction of the classes are proper

abhigoku10 avatar Mar 16 '19 13:03 abhigoku10

@atinfinity where you able to get correct prediction of the classes . even i am getting negative values in the tensors

abhigoku10 avatar Mar 21 '19 10:03 abhigoku10

@atinfinity i was able to solve the issue let me know if you have not solved it .

abhigoku10 avatar Apr 17 '19 18:04 abhigoku10

@abhigoku10 How did you solve the problem? I see negative values and np.argmax does not give the correct label position

siliconvalleypilot avatar Apr 28 '19 23:04 siliconvalleypilot

@qiaosongwang please take the updated code from the repo and train it you shall get correct values or i have forked the repo and made the corrections you can also take it fromthere

abhigoku10 avatar Apr 29 '19 03:04 abhigoku10

@abhigoku10 Great! Thanks

siliconvalleypilot avatar Apr 29 '19 04:04 siliconvalleypilot

I train the model till 158 epochs and then eval on different epoch but the detection is only for car which is not correct enough and the results here contain the class labels also but in my case no labels either..can someone please guide me whats the problem

imdsafi09 avatar Apr 29 '20 07:04 imdsafi09

@imdsafi09 i would suggest you look into https://github.com/ghimiredhikura/Complex-YOLOv3 this is currently updated and the current repo is not by the author and is not updated also

abhigoku10 avatar Apr 29 '20 07:04 abhigoku10

@abhigoku10 thanks for your reply. I am already working on your mentioned repo but i want to use it with vlp-16 and that case i dont know how to train it for my own data because the KITTI data set you know is based on vlp-64

imdsafi09 avatar May 01 '20 00:05 imdsafi09