Got it

Why there is no bounding box for YOLOV3 COCO Detection Video?

Created: Apr 17, 2021 18:09:10Latest reply: Apr 20, 2021 03:22:42 387 4 1 0 1
  Rewarded HiCoins: 0 (problem resolved)

Dear all,


I follow https://gitee.com/ascend/samples/tree/master/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_video


I try to use yolov3.om download from modelzoo, failed to show the bounding box.

I try to use atc to convert (following this https://gitee.com/ascend/modelzoo/tree/master/contrib/TensorFlow/Research/cv/yolov3/ATC_yolov3_caffe_AE)

atc --model=yolov3.prototxt --weight=yolov3.caffemodel --framework=0 --output=yolov3_framework_caffe_aipp_1_batch_1_input_int8_output_FP32.om --soc_version=Ascend310 --insert_op_conf=aipp_nv12.cfg
Also the program does not show the bounding box.

yy

no


Please help. Thank you very much in advance.


Warmest Regards,

Suryadi

Featured Answers

Best answer

Recommended answer

_xyt
Created Apr 19, 2021 02:32:45

Hi,you should refer to convert model.


https://gitee.com/ascend/samples/blob/master/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_video/README.md


  1. Run the following commands to download the AIPP configuration file and convert the model:

    cd $HOME/models/YOLOV3_coco_detection_video

    wget https://c7xcode.obs.cn-north-4.myhuaweicloud.com/models/YOLOV3_coco_detection_video/aipp_bgr.cfg

    atc --model=./yolov3.prototxt --weight=./yolov3.caffemodel --framework=0 --output=yolov3 --soc_version=Ascend310 --insert_op_conf=./aipp_bgr.cfg

  2. Run the following command to copy the converted model to the model folder of the sample:

    cp ./yolov3.om $HOME/samples/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_video/model/


View more
  • x
  • convention:

little_fish
little_fish Created Apr 19, 2021 06:17:49 (0) (0)
Thanks  
All Answers

Hi,you should refer to convert model.


https://gitee.com/ascend/samples/blob/master/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_video/README.md


  1. Run the following commands to download the AIPP configuration file and convert the model:

    cd $HOME/models/YOLOV3_coco_detection_video

    wget https://c7xcode.obs.cn-north-4.myhuaweicloud.com/models/YOLOV3_coco_detection_video/aipp_bgr.cfg

    atc --model=./yolov3.prototxt --weight=./yolov3.caffemodel --framework=0 --output=yolov3 --soc_version=Ascend310 --insert_op_conf=./aipp_bgr.cfg

  2. Run the following command to copy the converted model to the model folder of the sample:

    cp ./yolov3.om $HOME/samples/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_video/model/


View more
  • x
  • convention:

little_fish
little_fish Created Apr 19, 2021 06:17:49 (0) (0)
Thanks  

Dear XYT,

I did download model and ATC things, following instruction from https://gitee.com/ascend/modelzoo/tree/master/contrib/TensorFlow/Research/cv/yolov3/ATC_yolov3_caffe_AE

that mention

atc --model=yolov3.prototxt --weight=yolov3.caffemodel --framework=0 --output=yolov3_framework_caffe_aipp_1_batch_1_input_int8_output_FP32.om --soc_version=Ascend310 --insert_op_conf=aipp_nv12.cfg

I noticed that you mention ATC using aipp_bgr.cfg

wget 

https://c7xcode.obs.cn-north-4.myhuaweicloud.com/models/YOLOV3_coco_detection_video/aipp_bgr.cfg


It works!


So, please tell me what is the different between: aipp_nv12.cfg and aipp_bgr.cfg?

How do we configure it correctly?


work


Thank you very much for your help and attention.


Warmest Regards,

Suryadi

View more
  • x
  • convention:

  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.