Ask Your Question

Revision history [back]

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 --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?