frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

NCSDK1 MTCNN P net 28x38 profile issue

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

Comments

  • 2 Comments sorted by Votes Date Added
  • 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.

  • @majaja

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

Sign In or Register to comment.