PINTO0309 / OpenVINO-YoloV3

YoloV3/tiny-YoloV3+RaspberryPi3/Ubuntu LaptopPC+NCS/NCS2+USB Camera+Python+OpenVINO
https://qiita.com/PINTO
Apache License 2.0
538 stars 167 forks source link

Darknet19 pre-train model convert error. #60

Closed xiaoweiChen closed 4 years ago

xiaoweiChen commented 4 years ago

[Required] LaptopPC

[Required] x86_64

[Required] Ubuntu 16.04

[Required] Details of the work you did before the problem occurred:


~/xiaowei/OpenVINO-YoloV3-master$ python convert_weights.py --class_names coco.names --weights_file darknet19.weights --data_format NHWC
[Required] Error message:



[Required] Overview of problems and questions:


File "/home/xiaowei/OpenVINO-YoloV3-master/utils.py", line 127, in load_weights (shape[3], shape[2], shape[0], shape[1])) ValueError: cannot reshape array of size 701799 into shape (1024,512,3,3)