Open SoftologyPro opened 7 hours ago
This is after adding the three lines for me:
(venv) Q:\JoyVASA>python inference.py -r face1.jpg -a face1.wav --animation_mode human --cfg_scale 2.0
[09:02:44] Load appearance_feature_extractor from live_portrait_wmg_wrapper.py:55
Q:\JoyVASA\pretrained_weights\liveportrait\base_models\appe
arance_feature_extractor.pth done.
Load motion_extractor from live_portrait_wmg_wrapper.py:58
Q:\JoyVASA\pretrained_weights\liveportrait\base_models\moti
on_extractor.pth done.
[09:02:45] Load warping_module from live_portrait_wmg_wrapper.py:61
Q:\JoyVASA\pretrained_weights\liveportrait\base_models\warp
ing_module.pth done.
Load spade_generator from live_portrait_wmg_wrapper.py:64
Q:\JoyVASA\pretrained_weights\liveportrait\base_models\spad
e_generator.pth done.
Load stitching_retargeting_module from live_portrait_wmg_wrapper.py:68
Q:\JoyVASA\pretrained_weights\liveportrait\retargeting_mode
ls\stitching_retargeting_module.pth done.
Traceback (most recent call last):
File "Q:\JoyVASA\inference.py", line 67, in <module>
main()
File "Q:\JoyVASA\inference.py", line 55, in main
pipeline = LivePortraitPipeline(
File "Q:\JoyVASA\src\live_portrait_wmg_pipeline.py", line 34, in __init__
self.live_portrait_wrapper: LivePortraitWrapper = LivePortraitWrapper(inference_cfg=inference_cfg)
File "Q:\JoyVASA\src\live_portrait_wmg_wrapper.py", line 81, in __init__
self.motion_generator, self.motion_generator_args = load_model(inference_cfg.checkpoint_MotionGenerator, model_config, self.device, 'motion_generator')
File "Q:\JoyVASA\src\utils\helper.py", line 161, in load_model
model_data = torch.load(ckpt_path, map_location=device)
File "Q:\JoyVASA\venv\lib\site-packages\torch\serialization.py", line 1026, in load
return _load(opened_zipfile,
File "Q:\JoyVASA\venv\lib\site-packages\torch\serialization.py", line 1438, in _load
result = unpickler.load()
File "C:\Program Files\Python310\lib\pathlib.py", line 962, in __new__
raise NotImplementedError("cannot instantiate %r on your system"
NotImplementedError: cannot instantiate 'PosixPath' on your system
I have raised PR for 'PosixPath' issue. You can manually replace the file for now.
I have raised PR for 'PosixPath' issue. You can manually replace the file for now.
OK, thanks. Can you raise a PR for the second error I show? That is the real problem that causes the app.py to not launch.
I have raised PR for 'PosixPath' issue. You can manually replace the file for now.
The PR has been completed.
@DBDXSS I have raised another PR to fix the 2nd issue reported https://github.com/jdh-algo/JoyVASA/pull/8
No further updates required to work on Windows after this.
@SoftologyPro Please manually merge the file from PR and test. The 2nd issue should be fixed.
@DBDXSS I have raised another PR to fix the 2nd issue reported #8
No further updates required to work on Windows after this.
@SoftologyPro Please manually merge the file from PR and test. The 2nd issue should be fixed.
Thanks! We have done that.
@SoftologyPro
Please verify and close if working.
@DBDXSS
Thank you
@DBDXSS
Sorry forgot to include Readme update. When you get time to merge.
Running app.py on Windows gives this error
Which can be fixed by editing the start of app.py to redirect posixpath to windowsparh
But now when app.py is run it gives this error
How to fix for Windows?