Comments (6)
You can try this. I solved the problem in this way.
pip install librosa==0.7.2
pip install numba==0.48.0
pip install llvmlite==0.31.0
from sadtalker.
I had this same problem. The install of librosa worked for me. The numba and llvmite were already satisfied in my case. Afterwards I was able to "advance" :) to this problem: python inference.py --driven_audio japanese.wav --source_image art_1.png --result_dir . checkpoints\epoch_20.pth Traceback (most recent call last): File "inference.py", line 98, in <module> main(args) File "inference.py", line 48, in main preprocess_model = CropAndExtract(path_of_lm_croper, path_of_net_recon_model, dir_of_BFM_fitting, device) File "C:\Talky\preprocess.py", line 46, in __init__ self.kp_extractor = KeypointExtractor() File "C:\Talky\face3d\extract_kp_videos.py", line 16, in __init__ self.detector = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D) File "C:\Users\jimes\anaconda3\envs\Talky\lib\site-packages\face_alignment\api.py", line 77, in __init__ self.face_detector = face_detector_module.FaceDetector(device=device, verbose=verbose, **face_detector_kwargs) File "C:\Users\jimes\anaconda3\envs\Talky\lib\site-packages\face_alignment\detection\sfd\sfd_detector.py", line 31, in __init__ self.face_detector.to(device) File "C:\Users\jimes\anaconda3\envs\Talky\lib\site-packages\torch\nn\modules\module.py", line 989, in to return self._apply(convert) File "C:\Users\jimes\anaconda3\envs\Talky\lib\site-packages\torch\nn\modules\module.py", line 641, in _apply module._apply(fn) File "C:\Users\jimes\anaconda3\envs\Talky\lib\site-packages\torch\nn\modules\module.py", line 664, in _apply param_applied = fn(param) File "C:\Users\jimes\anaconda3\envs\Talky\lib\site-packages\torch\nn\modules\module.py", line 987, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) File "C:\Users\jimes\anaconda3\envs\Talky\lib\site-packages\torch\cuda\__init__.py", line 221, in _lazy_init raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled
from sadtalker.
You can try this. I solved the problem in this way. pip install librosa==0.7.2 pip install numba==0.48.0 pip install llvmlite==0.31.0
This fixed this issue.
@JimmyTime I would open a new ticket for that
from sadtalker.
I had this same problem. The install of librosa worked for me. The numba and llvmite were already satisfied in my case. Afterwards I was able to "advance" :) to this problem:
python in... line 221, in _lazy_init raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled
See you didn't make a new thread so I'll respond to it here. I had this issue and fixed it by:
-I downloaded the latest CUDA + CUDNN for my system and set the environment path variables for Cuda + Cuda Path properly. -Force uninstalled what it was using ( pip3 uninstall torch torchvision torchaudio ) and went to the pytorch website and installed the latest: ( pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117 )
Can you explain to me like I'm 5? lol. I have Cuda/CUDDN torth and it works with all other repoos. I'm confused. I don't want this to mess anything up.
from sadtalker.
I had this same problem. The install of librosa worked for me. The numba and llvmite were already satisfied in my case. Afterwards I was able to "advance" :) to this problem:
python in... line 221, in _lazy_init raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled
See you didn't make a new thread so I'll respond to it here. I had this issue and fixed it by:
-I downloaded the latest CUDA + CUDNN for my system and set the environment path variables for Cuda + Cuda Path properly. -Force uninstalled what it was using ( pip3 uninstall torch torchvision torchaudio ) and went to the pytorch website and installed the latest: ( pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117 )Can you explain to me like I'm 5? lol. I have Cuda/CUDDN torth and it works with all other repoos. I'm confused. I don't want this to mess anything up.
To be honest with you - I'm kind of new and ran around like a headless chicken on this too. I heavily leaned on ChatGPT to guide me through the installation (anytime you have an issue you just tell ChatGPT that you have a python error and give the error code and it will guide you through what you have to do next)
I used Anaconda Navigator > Made an environment with Python 3.8 > navigated to Sadtalker and activated. Once you activate then you should type in "pip show torch" mine says the following:
Name: torch Version: 1.13.1+cu117 Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration Home-page: https://pytorch.org/ etc
I assume if yours doesn't say the torch version + cu117 or similar then that means you need to do what I said in my previous comment.--- again I heavily leaned on ChatGPT to find success (but keep in mind it offers outdated links since its stuck on 2021 data which you need to manually update)
Thanks.. lol now I just get a different error
"(sadtalker) C:\Users\chlyw\Desktop\SadTalker>python inference.py --driven_audio Carlin.wav --source_image Carlin.png --/ --camera_yaw -20 30 10
Traceback (most recent call last):
File "inference.py", line 6, in
from preprocess import CropAndExtract
File "C:\Users\chlyw\Desktop\SadTalker\preprocess.py", line 4, in
from PIL import Image
File "C:\Users\chlyw.conda\envs\sadtalker\lib\site-packages\PIL\Image.py", line 103, in
from . import _imaging as core
ImportError: DLL load failed while importing _imaging: The specified module could not be found."
from sadtalker.
You can try this. I solved the problem in this way. pip install librosa==0.7.2 pip install numba==0.48.0 pip install llvmlite==0.31.0
thank you, it's very useful
I solve a similar problem when I use librosa, here is my porblem
(MindSpore) [ma-user Tacotron2]$python --versionPython 3.7.10
(MindSpore) [ma-user Tacotron2]$python generate_hdf5.py --data_path ../LJSpeech-1.1Traceback (most recent call last):
File "generate_hdf5.py", line 23, in <module>
import librosa
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/librosa/__init__.py", line 12, in <module>
from . import core
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/librosa/core/__init__.py", line 102, in <module>
from .time_frequency import * # pylint: disable=wildcard-import
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/librosa/core/time_frequency.py", line 10, in <module>
from ..util.exceptions import ParameterError
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/librosa/util/__init__.py", line 67, in <module>
from .utils import * # pylint: disable=wildcard-import
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/librosa/util/utils.py", line 111, in <module>
def valid_audio(y, mono=True):
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/librosa/cache.py", line 49, in wrapper
if self.cachedir is not None and self.level >= level:
AttributeError: 'CacheManager' object has no attribute 'cachedir'
so I think they may the same problem, thank for finding out the libs which is depending on.
my original librosa is 0.6.0, which has this bug, if you have the same problem, I think your solution is valiad
from sadtalker.
Related Issues (20)
- what's worry?? HOT 1
- 这是什么错误 HOT 1
- who can help me?
- who can help me HOT 1
- Multiple GPUs
- GFPGAN as Face enhancer 点上特别满进度 然后失败 进度进行不下去了 应该怎么解决呢
- torch版本兼容性问题,无法在Mac M3上运行
- About Pose Style HOT 2
- 音画不同步 HOT 2
- How to force to use directml in SadTalker instead of CUDA or CPU? HOT 2
- ERROR: Exception: Traceback (most recent call last): HOT 3
- Error executing callback ui_tabs_callback for /Users/luanyang/99-rdmiddle/stable-diffusion-webui/extensions/SadTalker/scripts/extension.py HOT 2
- 为什么生成的音频的声音不是自己提供的声音,求指教
- help TnT HOT 1
- MacOS ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' HOT 1
- TypeError: TiffWriter.write() got an unexpected keyword argument 'fps'
- ERROR: Could not find a version that satisfies the requirement torch==1.12.1+cu113 (from versions: 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1) ERROR: No matching distribution found for torch==1.12.1+cu113 Traceback (most recent call last): File "D:\sad talker\SadTalker\Launcher.py", line 203, in <module> prepare_environment() File "D:\sad talker\SadTalker\Launcher.py", line 187, in prepare_environment run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True) File "D:\sad talker\SadTalker\Launcher.py", line 70, in run raise RuntimeError(f"""{errdesc or 'Error running command'}. RuntimeError: Couldn't install torch. Command: "D:\sad talker\SadTalker\venv\Scripts\python.exe" -m pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113 Error code: 1 Launch unsuccessful. Exiting. HOT 2
- Error: "FFmpeg cannot edit existing files in-place"; but directories are separate
- ValidationError
- Not working in Automatic1111 version: v1.9.4 HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sadtalker.