(joyvasa) G:\JoyVASA>python app.py [01:23:10] Load appearancefeatureextractor from…
- User
(joyvasa) G:\JoyVASA>python app.py [01:23:10] Load appearance_feature_extractor from live_portrait_wmg_wrapper.py:55 G:\JoyVASA\pretrained_weights\liveportrait\base_models\appearance_feature_ext ractor.pth done. Load motion_extractor from live_portrait_wmg_wrapper.py:58 G:\JoyVASA\pretrained_weights\liveportrait\base_models\motion_extractor.pth done. [01:23:11] Load warping_module from live_portrait_wmg_wrapper.py:61 G:\JoyVASA\pretrained_weights\liveportrait\base_models\warping_module.pth done. [01:23:12] Load spade_generator from live_portrait_wmg_wrapper.py:64 G:\JoyVASA\pretrained_weights\liveportrait\base_models\spade_generator.pth done. Load stitching_retargeting_module from live_portrait_wmg_wrapper.py:68 G:\JoyVASA\pretrained_weights\liveportrait\retargeting_models\stitching_retar geting_module.pth done. Traceback (most recent call last): File "G:\JoyVASA\app.py", line 45, in gradio_pipeline_human = GradioPipeline( File "G:\JoyVASA\src\gradio_pipeline.py", line 27, in init super().init(inference_cfg, crop_cfg) File "G:\JoyVASA\src\live_portrait_wmg_pipeline.py", line 34, in init self.live_portrait_wrapper: LivePortraitWrapper = LivePortraitWrapper(inference_cfg=inference_cfg) File "G:\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 "G:\JoyVASA\src\utils\helper.py", line 161, in load_model model_data = torch.load(ckpt_path, map_location=device) File "E:\miniconda3\envs\joyvasa\lib\site-packages\torch\serialization.py", line 1026, in load return _load(opened_zipfile, File "E:\miniconda3\envs\joyvasa\lib\site-packages\torch\serialization.py", line 1438, in _load result = unpickler.load() File "E:\miniconda3\envs\joyvasa\lib\pathlib.py", line 962, in new raise NotImplementedError("cannot instantiate %r on your system" NotImplementedError: cannot instantiate 'PosixPath' on your system
- Assistant
The error message you're encountering suggests that the Python script is trying to use
PosixPath, which is specific to POSIX-compliant operating systems like Linux and macOS, while your system is likely running on Windows, which usesWindowsPathinstead.Here are some steps you can take to resolve this issue:
-
Check the Codebase for Path Handling:
-