liujianisme / yolo5_caffe_hisi3559

yolov5: pytorch->onnx->caffe->hisi3559
19 stars 11 forks source link

Do we use the code inside 04.multi-core-sample folder? #3

Closed hongson23 closed 1 year ago

hongson23 commented 1 year ago

Thank you for sharing the code, I see inside folder 04.multi-core-sample contains yolov5 implementation, it's very different from the one you instruct Where is the correct guide? image

image

hongson23 commented 1 year ago

@JimmyLauren pls take a look

liujianisme commented 1 year ago

Hi, there are 2 postprocess functions in this code. the one is "yolo_result_process" and the other is modified official code. I mainly use the modified official code.

hongson23 commented 1 year ago

Hi @JimmyLauren Thank for your answers, I applied your modified code but received wrong results, lot of bbox with confidences are 1

image_2023-03-14_16-57-34

image_2023-03-14_16-59-34

This is my code, i run successfully yolov3 with Ruyi simulation and yolov5s caffe image_2023-03-14_16-24-12 image_2023-03-14_16-43-23 image_2023-03-14_16-25-41 image_2023-03-14_16-26-20

I deleted reshape layer and permute layer, I did not modified them, so it is OK? Can you give me some suggestions?

hongson23 commented 1 year ago

I modified yolov3 code post-process following your guide but it seem to be existing some mistakes please take a look and give me some comments, i am looking forward to hearing from you thanks

liujianisme commented 1 year ago

Is your model parameters settings correct in function SAMPLE_SVP_NNIE_Yolov3_SoftwareInit? In addition, the confidence calculation in yolov3 and yolov5 is a little bit different. I put the change in added image. 图片

hongson23 commented 1 year ago

thank @JimmyLauren , Can you give me your caffe model and nnie .wk model which were trained with 2 classes? I would like to reproduce your results about NNIE .wk model, Can you help me convert to simulation in Ruyi studio or convert to HI3516DV300 or HI3516AV300 chipset thank you so much!

hongson23 commented 1 year ago

hello @JimmyLauren , thank you very much for notes and contributions I run successfully yolov5s on hisilicon chipset. best

liujianisme commented 1 year ago

Glad to hear that.