Awesome pre-trained models toolkit based on PaddlePaddle. (400+ models including Image, Text, Audio, Video and Cross-Modal with Easy Inference & Serving)【安全加固,暂停交互,请耐心等待】
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 newkwargs)
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'
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'