Replies: 2 comments
-
这个是facexlib的问题,可以看一下是不是facexlib==3.0.0 |
Beta Was this translation helpful? Give feedback.
0 replies
-
fixed in the newer version. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
File "inference.py", line 144, in
main(args)
File "inference.py", line 36, in main
preprocess_model = CropAndExtract(sadtalker_paths, device)
File "G:\DEV\SadTalker-main-v1.1\src\utils\preprocess.py", line 49, in init
self.propress = Preprocesser(device)
File "G:\DEV\SadTalker-main-v1.1\src\utils\croper.py", line 21, in init
self.predictor = KeypointExtractor(device)
File "G:\DEV\SadTalker-main-v1.1\src\face3d\extract_kp_videos_safe.py", line 27, in init
self.detector = init_alignment_model('awing_fan',device=device, model_rootpath=root_path)
File "F:\ProgramData\anaconda3\envs\sadtalker\lib\site-packages\facexlib\alignment_init_.py", line 19, in init_alignment_model
model.load_state_dict(torch.load(model_path)['state_dict'], strict=True)
File "F:\ProgramData\anaconda3\envs\sadtalker\lib\site-packages\torch\serialization.py", line 713, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "F:\ProgramData\anaconda3\envs\sadtalker\lib\site-packages\torch\serialization.py", line 930, in _legacy_load
result = unpickler.load()
File "F:\ProgramData\anaconda3\envs\sadtalker\lib\site-packages\torch\serialization.py", line 876, in persistent_load
wrap_storage=restore_location(obj, location),
File "F:\ProgramData\anaconda3\envs\sadtalker\lib\site-packages\torch\serialization.py", line 175, in default_restore_location
result = fn(storage, location)
File "F:\ProgramData\anaconda3\envs\sadtalker\lib\site-packages\torch\serialization.py", line 152, in _cuda_deserialize
device = validate_cuda_device(location)
File "F:\ProgramData\anaconda3\envs\sadtalker\lib\site-packages\torch\serialization.py", line 136, in validate_cuda_device
raise RuntimeError('Attempting to deserialize object on a CUDA '
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.
(sadtalker) G:\DEV\SadTalker-main-v1.1>
Beta Was this translation helpful? Give feedback.
All reactions