Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

NCSDK1 MTCNN P net 28x38 profile issue

idata
Employee
623 Views

Hi there

 

I am trying profile the MTCNN pnet by mvNCProfile tool,

 

as the sample code in NCSDK1,

 

the profile comment

 

 

 

 

mvNCProfile ./p2838/model.meta -s 12 -in pnet/intput -on pnet/output -is 28 38

 

 

 

 

and I got this

 

USB: Transferring Data…

 

Time to Execute : 12.63 ms

 

USB: Myriad Execution Finished

 

Time to Execute : 10.53 ms

 

USB: Myriad Execution Finished

 

Traceback (most recent call last):

 

File "/usr/local/bin/mvNCProfile", line 121, in

 

profile_net(args.network, args.inputnode, args.outputnode, args.nshaves, args.inputsize, args.weights, args.device_no)

 

File "/usr/local/bin/mvNCProfile", line 111, in profile_net

 

timings, myriad_output = run_myriad(graph_file, args, file_gen=False)

 

File "/usr/local/bin/ncsdk/Controllers/MiscIO.py", line 202, in run_myriad

 

myriad_output = myriad_output.reshape(myriad_output.shape[1:])

 

ValueError: cannot reshape array of size 756 into shape (1,1,6)

 

How can I solve this problem ?

 

Thank u guys

0 Kudos
2 Replies
idata
Employee
352 Views

The root cause is in MiscIO.py which drops the 1st dimension & leads to mismatch problem.

 

To avoid this issue, please comment out:

 

myriad_output = myriad_output.reshape(myriad_output.shape[1:])

 

when profiling Pnet.

 

PS: Onet dost NOT suffer from this issue.

 

Thanks.

0 Kudos
idata
Employee
352 Views

@majaja

 

It is working well, thank u, you are smart than the Mayor of Taipei

0 Kudos
Reply