Lose onnxruntime
After I downloads the “torch” and start to run the exe, the next problems come, It seems to download another module. I could not found other guys solution. I will be thankful for someone who can help me!
E:\NDM-downloads\Compressed\Deep-Live-Cam-main\Deep-Live-Cam-main>python run.py
C:\Users\HSH\AppData\Local\Programs\Python\Python310\lib\site-packages\torch_subclasses\functional_tensor.py:258: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\utils\tensor_numpy.cpp:84.)
cpu = _conversion_method_template(device=torch.device("cpu"))
Traceback (most recent call last):
File "E:\NDM-downloads\Compressed\Deep-Live-Cam-main\Deep-Live-Cam-main\run.py", line 3, in
No module named 'onnxruntime' Means that onnxruntime is not installed (pip install onnxruntime==1.18.0).
You need to make sure you follow the install instructions properly.
And as mentioned in this issue, try using a virtual enviroment to make sure no mix-ups with pip packages.
python3 -m venv my_venvto create a virtual environment. Then:source my_venv/bin/activateto activate your virtual environment.And then you can try to install using pip :)
After I downloads the “torch” and start to run the exe, the next problems come, It seems to download another module. I could not found other guys solution. I will be thankful for someone who can help me!
E:\NDM-downloads\Compressed\Deep-Live-Cam-main\Deep-Live-Cam-main>python run.py C:\Users\HSH\AppData\Local\Programs\Python\Python310\lib\site-packages\torch_subclasses\functional_tensor.py:258: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\utils\tensor_numpy.cpp:84.) cpu = _conversion_method_template(device=torch.device("cpu")) Traceback (most recent call last): File "E:\NDM-downloads\Compressed\Deep-Live-Cam-main\Deep-Live-Cam-main\run.py", line 3, in
from modules import core File "E:\NDM-downloads\Compressed\Deep-Live-Cam-main\Deep-Live-Cam-main\modules\core.py", line 15, in import onnxruntime ModuleNotFoundError: No module named 'onnxruntime'
This is beyond pip install onnxruntime-gpu==1.16
You should consider following the process as instructed. (All over)
- Check that you are using miniconda 3.10 as recommended
- Git
- Visual studio
- Download models and put them in the model folder
- Ffmpeg from window power shell
- Create an Environment
- Run requirment . pip install -r requirements.txt
- pip uninstall onnxruntime onnxruntime-gpu
- Install onnxruntime 1.16 If you Don't have a dedicated gpu then proceed to
- python run.py if you do have a nvidia dedicated graphic card
- Futher download cuda toolkit 11.8
- python run.py --execution-provider cuda
The above list is just a summary brake down. Please refer to https://github.com/hacksider/Deep-Live-Cam the proper installation information guild
I had solved it, thanks for you help
---Original--- From: @.> Date: Tue, Sep 10, 2024 08:44 AM To: @.>; Cc: @.@.>; Subject: Re: [hacksider/Deep-Live-Cam] Lose onnxruntime (Issue #561)
If you need further assistance, here's my whatsapp https://wa.me/message/GXQYWX4XRTXGB1 +2347081306010
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>