Ask Your Question
1

Can i use openCV to run keras models using Theano as backend?

asked 2020-07-16 01:22:15 -0600

Ilias19 gravatar image

updated 2020-07-16 02:12:13 -0600

I am having a few diffuclties using tensorflow as a backend, because i am having a hard time importing the library. So I changed the backend to Theano, but I am not sure if I can later use models trained in keras, through theano, with the openCV options. If anyone know I'd realy appreciate to tell me.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2020-07-16 02:20:43 -0600

berak gravatar image

updated 2020-07-16 02:25:09 -0600

you mean - theano instead of tensorflow as backend (or, CNTK, even) ?

very unlikely to work. opencv does not know anything about your high-level modeling. and currently, you have to go down to the low-level tf functionality, to export something, opencv's dnn understands

(theano seems to "pickle" it's models, and there's no current support to read that in (from c++, too!))

edit flag offensive delete link more

Comments

I see, thank you very much.

Ilias19 gravatar imageIlias19 ( 2020-07-16 02:29:19 -0600 )edit
1

well actually, who knows ...

berak gravatar imageberak ( 2020-07-16 03:13:17 -0600 )edit
2

haha thank you, crazy times we live in! I'll consider it as an option.

Ilias19 gravatar imageIlias19 ( 2020-07-16 03:45:17 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-07-16 01:22:15 -0600

Seen: 197 times

Last updated: Jul 16 '20