我一直在玩洋红色Multistyle Pastiche Generator,但是到目前为止,它只会生成纯黑色图像。 GitHub论坛上的某个人也遇到了同样的问题,显然Magenta仅在TensorFlow 1.0.1的CPU上兼容吗?但是,我安装了1.0.1,但仍然遇到相同的问题。这是我在终端中运行的内容(当然,在“源激活洋红色”之后)

$ image_stylization_transform \

     --num_styles=10 \
     --checkpoint=/Users/NMB1331/Desktop/multistyle-pastiche-generator-monet.ckpt \
     --input_image=/Users/NMB1331/Desktop/test_image.jpg \
     --which_styles="{0:0.1,1:0.1,2:0.1,3:0.1,4:0.1,5:0.1,6:0.1,7:0.1,8:0.1,9:0.1}" \
     --output_dir=/Users/NMB1331/Desktop/PracticeOutput \
     --output_basename="all_monet_styles2"


谁能帮助我,或者将我引导到可以解决此问题的地方?我也尝试过将洋红色和tensorflow升级到最新版本,但无济于事。谢谢!

最佳答案

我用docker而不是pip install magenta更改了环境,解决了这个问题。
https://github.com/tensorflow/magenta-demos/pull/18#issuecomment-334453199

希望这些信息对您有所帮助。

08-25 04:58