PaddlePaddle / PaddleGAN

PaddlePaddle GAN library, including lots of interesting applications like First-Order motion transfer, Wav2Lip, picture repair, image editing, photo2cartoon, image style transfer, GPEN, and so on.
Apache License 2.0
7.86k stars 1.25k forks source link

__init__() got an unexpected keyword argument 'slice_size'报错 #788

Closed dadede999 closed 7 months ago

dadede999 commented 1 year ago

python3 -u tools/first-order-demo.py \ --driving_video ../docs/imgs/fom_dv.mp4 \ --source_image ../docs/imgs/fom_source_image.png \ --ratio 0.4 \ --relative \ --adapt_scale \ --image_size 512 \ --face_enhancement \ --multi_person /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp Traceback (most recent call last): File "tools/first-order-demo.py", line 115, in predictor = FirstOrderPredictor(output=args.output, TypeError: init() got an unexpected keyword argument 'slice_size'

BeeFl commented 1 year ago

python3 -u tools/first-order-demo.py --driving_video ../docs/imgs/fom_dv.mp4 --source_image ../docs/imgs/fom_source_image.png --ratio 0.4 --relative --adapt_scale --image_size 512 --face_enhancement --multi_person /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp Traceback (most recent call last): File "tools/first-order-demo.py", line 115, in predictor = FirstOrderPredictor(output=args.output, TypeError: init() got an unexpected keyword argument 'slice_size'

我也遇到了这个问题,请问解决了吗

sunwhite21 commented 1 year ago

我切换到2.0版本就可以了git checkout release/2.0 image