PaddleGAN icon indicating copy to clipboard operation
PaddleGAN copied to clipboard

develop分支有问题(切换master分支就没问题了),运行first-order-demo.py程序出现TypeError: __init__() got an unexpected keyword argument 'image_size'

Open lixiangMindSpore opened this issue 4 years ago • 4 comments

develop分支有问题(切换master分支就没问题了),运行first-order-demo.py程序出现TypeError: init() got an unexpected keyword argument 'image_size'

lixiangMindSpore avatar Aug 17 '21 10:08 lixiangMindSpore

you forgot to update ppgan, i guess. make sure you uninstalled the previous version (maybe located in site-packages folder) or update it

aminesoulaymani avatar Aug 17 '21 20:08 aminesoulaymani

你忘了更新 ppgan,我猜。确保您卸载了以前的版本(可能位于 site-packages 文件夹中)或更新它

This does not work, the latest ppgan version is 2.0.0, even if "pip3 install --upgrade ppgan" is executed, the ppgan version is still 2.0.0, the master branch does not have this problem. This is really strange

TLD-N avatar Aug 20 '21 14:08 TLD-N

推荐使用cd PaddleGAN, pip install setup.py develop的方式,这个可以安装develop版本的ppgan

LielinJiang avatar Aug 23 '21 01:08 LielinJiang

因为目前的 2.0.0 以及 master 分支里面都没有 image_size 参数。直接 pip 安装的是目前最新的2.0.0,但develop代码运行的例子里面有 image_size,所以会报错

zhenhouhong avatar Nov 24 '21 02:11 zhenhouhong

问题过于久远,且已经解决,如果有图像和视频生成的需求,可以使用新的跨模态工具: https://github.com/PaddlePaddle/PaddleMIX/tree/develop

JunnYu avatar Feb 29 '24 03:02 JunnYu