PaddleGAN
PaddleGAN copied to clipboard
如何修改成CPU在本地电脑上运行
运行环境:ubuntu18.04 Python版本:3.7 Paddle版本:2.0 运行https://github.com/PaddlePaddle/PaddleGAN/blob/develop/applications/tools/animeganv2.py, 提示
/home/turing/Documents/miniconda3/envs/paddle/lib/python3.7/site-packages/paddle/tensor/creation.py:143: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
if data.dtype == np.object:
E0420 10:09:21.701794 11358 pybind.cc:1424] Cannot use GPU because you have installed CPU version PaddlePaddle.
If you want to use GPU, please try to install GPU version PaddlePaddle by: pip install paddlepaddle-gpu
If you only have CPU, please change CUDAPlace(0) to be CPUPlace().
添加参数--cpu,比如说 python tools/animeganv2.py ... --cpu
问题过于久远,如果有图像和视频生成的需求,可以使用新的跨模态工具: https://github.com/PaddlePaddle/PaddleMIX/tree/develop