Deep-Live-Cam icon indicating copy to clipboard operation
Deep-Live-Cam copied to clipboard

Lose onnxruntime

Open Akie555 opened this issue 1 year ago • 4 comments

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'

Akie555 avatar Sep 09 '24 08:09 Akie555

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_venv to create a virtual environment. Then: source my_venv/bin/activate to activate your virtual environment.

And then you can try to install using pip :)

AVGRadmin avatar Sep 09 '24 08:09 AVGRadmin

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)

  1. Check that you are using miniconda 3.10 as recommended
  2. Git
  3. Visual studio
  4. Download models and put them in the model folder
  5. Ffmpeg from window power shell
  6. Create an Environment
  7. Run requirment . pip install -r requirements.txt
  8. pip uninstall onnxruntime onnxruntime-gpu
  9. Install onnxruntime 1.16 If you Don't have a dedicated gpu then proceed to
  10. python run.py if you do have a nvidia dedicated graphic card
  11. Futher download cuda toolkit 11.8
  12. 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

Updatedme avatar Sep 10 '24 00:09 Updatedme

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: @.***>

Akie555 avatar Sep 10 '24 00:09 Akie555