Deep-Image-Matting icon indicating copy to clipboard operation
Deep-Image-Matting copied to clipboard

help!help!help!Test run failed

Open PanJinquan opened this issue 6 years ago • 7 comments

I download your Github code and the corresponding model file:https://github.com/Joker316701882/Deep-Image-Matting,Then run:python test.py --alpha=./test_data/alpha/1.png --rgb=./test_data/RGB/1.png,But error in this procedure:saver.restore(sess,tf.train.latest_checkpoint('./model'))#PS:I have downloaded your model and put it in the "model" file. Here errors:InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'MaxPoolWithArgmax' with these attrs. Registered devices: [CPU], Registered kernels:

[[Node: pool1 = MaxPoolWithArgmaxT=DT_FLOAT, Targmax=DT_INT64, ksize=[1, 2, 2, 1], padding="SAME", strides=[1, 2, 2, 1]]]

PanJinquan avatar Apr 24 '18 06:04 PanJinquan

This function 'MaxPoolWithArgmax' runs only on GPU on older version of tensorflow: https://github.com/tensorflow/tensorflow/issues/6035

It should work on CPU with tensorflow 1.8

fpipart avatar Apr 24 '18 09:04 fpipart

Just tried 1.8 CPU, works like a charm, and the upgrade is very easy to do. On my Debian: pip3 install --upgrade tensorflow

elzeru avatar Jun 04 '18 17:06 elzeru

@PanJinquan Can you send me the pretrained model, I can't download it ,my email is :[email protected] Thanks

shliang0603 avatar Oct 17 '18 09:10 shliang0603

@PanJinquan 哥哥,你有Deep-Image-Matting的数据集吗,可以发我一份吗,谢谢啦 ,我的email: [email protected]

shliang0603 avatar Oct 18 '18 09:10 shliang0603

I download your Github code and the corresponding model file:https://github.com/Joker316701882/Deep-Image-Matting,Then run:python test.py --alpha=./test_data/alpha/1.png --rgb=./test_data/RGB/1.png,But error in this procedure:saver.restore(sess,tf.train.latest_checkpoint('./model'))#PS:I have downloaded your model and put it in the "model" file. Here errors:InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'MaxPoolWithArgmax' with these attrs. Registered devices: [CPU], Registered kernels: [[Node: pool1 = MaxPoolWithArgmaxT=DT_FLOAT, Targmax=DT_INT64, ksize=[1, 2, 2, 1], padding="SAME", strides=[1, 2, 2, 1]]]

@PanJinquan Hello, could you send me your pre-trained model and the training datasets? Thanks a lot! My email [email protected]

chenhaocs avatar Nov 22 '18 08:11 chenhaocs

@PanJinquan could you ALSO send me your pre-trained model and the training datasets? Thanks! email: [email protected]

rainsun1 avatar Dec 16 '18 13:12 rainsun1

I download your Github code and the corresponding model file:https://github.com/Joker316701882/Deep-Image-Matting,Then run:python test.py --alpha=./test_data/alpha/1.png --rgb=./test_data/RGB/1.png,But error in this procedure:saver.restore(sess,tf.train.latest_checkpoint('./model'))#PS:I have downloaded your model and put it in the "model" file. Here errors:InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'MaxPoolWithArgmax' with these attrs. Registered devices: [CPU], Registered kernels: [[Node: pool1 = MaxPoolWithArgmaxT=DT_FLOAT, Targmax=DT_INT64, ksize=[1, 2, 2, 1], padding="SAME", strides=[1, 2, 2, 1]]]

sorry for bothering, would you please send me the pretrained-model? my emai: [email protected]

ssxlconch avatar Mar 05 '19 02:03 ssxlconch