- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@majaja
It is working well, thank u, you are smart than the Mayor of Taipei
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page