Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
136 Views

convert mat image object to nhwc

hi ,

i have a model which accepts shape nhwc but in my sample project it is using nchw 

how can i convert mat nchw to nhwc

 

Thanks

0 Kudos
5 Replies
Highlighted
Moderator
115 Views

Hi Amit,


I would suggest you try the potential method that have been shared in Stack Overflow, available at the following link:

https://stackoverflow.com/questions/37689423/convert-between-nhwc-and-nchw-in-tensorflow


Regards,

Munesh


0 Kudos
Highlighted
Moderator
115 Views

Hi Amit,


I would suggest you try the potential method that have been shared in Stack Overflow, available at the following link:

https://stackoverflow.com/questions/37689423/convert-between-nhwc-and-nchw-in-tensorflow


Regards,

Munesh


0 Kudos
Highlighted
New Contributor I
108 Views

hi 

i have seen this , this is in python.

i didn't find any transpose function in opencv

0 Kudos
Highlighted
Moderator
88 Views

Hi Amit,


The following link has some relevant information that might help you.

https://pfnet-research.github.io/menoh/md_tutorial.html


Regards,

Munesh


0 Kudos
Highlighted
Moderator
69 Views

Hi Amit,


This thread will no longer be monitored since we have provided a tutorial. If you need any additional information from Intel, please submit a new question.


Regards,

Munesh


0 Kudos