Ask Your Question

Load and run Keras model using opencv DNN module

asked 2018-11-01 05:15:29 -0500

Anil Patel gravatar image

updated 2018-11-01 05:21:06 -0500

berak gravatar image

Hi All,

I have made keras model "model.h5" using tensorflow as backend. Can anyone let me know, how I can load and run this model using opencv DNN modules?

Thanks, --Anil

edit retag flag offensive close merge delete



I don't know how to convert it. I never did that before.

Anil Patel gravatar imageAnil Patel ( 2018-11-01 05:27:35 -0500 )edit

neither did i ;(

(it's also quite off-topic here)

berak gravatar imageberak ( 2018-11-01 05:31:18 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-11-01 05:24:34 -0500

berak gravatar image

updated 2018-11-01 05:30:37 -0500

there is no support for .h5 in the dnn module

you will have to convert it to a pb model

edit flag offensive delete link more



Thank you berak for quick support.

Anil Patel gravatar imageAnil Patel ( 2018-11-01 05:34:48 -0500 )edit

Question Tools

1 follower


Asked: 2018-11-01 05:15:29 -0500

Seen: 8,297 times

Last updated: Nov 01 '18