Opencv load tensorflow Style Transfer Model Failed
Hello Guys, I Use lengstrom's fast-style-transfer Train one Model, and success to use this model to style image by python, like this python evaluate.py --checkpoint path/to/style/model.ckpt \ --in-path dir/of/test/imgs/ \ --out-path dir/for/results/
now, i want to use opencv load this model,then transform model to pb file.
I use follow code to read pb file: cv::dnn::Net cvMaskObjectNet = cv::dnn::readNetFromTensorflow("D:/opt_graph.pb"); but, cv::dnn::readNetFromTensorflow read this model failed(throw exception).
this link is my trained style model:
Could anyone help me? https://drive.google.com/open?id=1ZcK...
Well somone has the same problem like - external model with opencv fails. This time its yolo and not tensorflow but same problem.
I left some comment on this and how it can be solved in general , maybe it helps. http://answers.opencv.org/question/20...
@VonChenpPlus, you need to convert your checkpoint to
.pb
file first. Try to find a guide of how to do it in TensorFlow.@dkurt, i'm convert checkpoint to pb file already.
@holger ok,thanks. i will try thiese.
@VonChenpPlus, please help us solving you problem. Add it to your drive.
@dkurt,i upload pb file to my https://drive.google.com/open?id=1HHU... please look at it, thanks.
hello,@dkurt, any update?