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 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=1ZcKP1f9IPS8-jEUuOdEgmioxZ-5_CWjs