You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
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'
The text was updated successfully, but these errors were encountered: