hitfeelee / Yolo3D

perform 3D object detection base on Yolov5 and 3DDeepbox
MIT License
31 stars 6 forks source link

about infer output #3

Closed WSTao closed 3 years ago

WSTao commented 3 years ago

On line 163 of the train.py file, the model output is only one output(pred = model(imgs)), but on line 105 of the test.py file, why are there two outputs(inf_out, train_out = model(img)). Where does the extra output increase?

hitfeelee commented 3 years ago

In test, inf_out is used for calculating mAp , and train_out for loss, the both is used for evaluating best model. Of cause, you can keep model to output train_out, and implement function inference outside the model

WSTao commented 3 years ago

I got it, Thx!