Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__init__() got an unexpected keyword argument 'inference' #2285

Open
WestbrookZero opened this issue Aug 3, 2023 · 0 comments
Open

__init__() got an unexpected keyword argument 'inference' #2285

WestbrookZero opened this issue Aug 3, 2023 · 0 comments
Assignees

Comments

@WestbrookZero
Copy link

WestbrookZero commented Aug 3, 2023

code:

import paddlehub as hub

FOM_Module = hub.Module(name="first_order_motion")
FOM_Module.generate(source_image="input_data/test.jpg", # 输入图像
driving_video="input_data/zimeng.mp4", # 输入驱动视频
ratio=0.4,
image_size=256,
output_dir='./output/', # 输出文件夹
filename='FOM.mp4', # 输出文件名
use_gpu=True)

error:

Traceback (most recent call last):
File "G:/Project/Modality/DigitalHuman/PaddleHub/ExpressionTransfer00.py", line 3, in
FOM_Module = hub.Module(name="first_order_motion")
File "G:\Project\Modality\DigitalHuman\PaddleHub\paddlehub\module\module.py", line 400, in new
**kwargs)
File "G:\Project\Modality\DigitalHuman\PaddleHub\paddlehub\module\module.py", line 516, in init_with_name
return user_module_cls(**kwargs)
File "C:\Users\wuq.DN.paddlehub\modules\first_order_motion\module.py", line 35, in init
face_enhancement=True)
File "C:\Users\wuq.DN.paddlehub\modules\first_order_motion\model.py", line 103, in init
self.cfg, self.weight_path)
File "C:\Users\wuq.DN.paddlehub\modules\first_order_motion\model.py", line 221, in load_checkpoints
**config['model']['common_params'], inference=True)
TypeError: init() got an unexpected keyword argument 'inference'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants