Comments (16)
I would suggest taking a look at ONNX's documentation at this link: https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements. There you will find detailed information about the CUDA requirements and setup for use with ONNX Runtime.
from refacer.
If you don't have the necessary CUDA libraries, it should still work on CPU. Try the following commands:
pip uninstall onnxruntime-gpu
pip install onnxruntime
from refacer.
is it possible to fix it instead of uninstalling? I installed both txt files, also heres more info [E:onnxruntime:Default, provider_bridge_ort.cc:1351 onnxruntime::TryGetProviderInfo_CUDA] D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1131 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load
from refacer.
You only need to install one of the requirement files. The difference between the two is that onnxruntime
is for CPU, and onnxruntime-gpu
is for GPU. Ensure that you don't have both versions installed at the same time. If you're having issues with GPU, you can opt for the CPU version.
from refacer.
reinstalled but I get this issue error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
*** Please install the `scikit-image` package (instead of `skimage`) ***
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
from refacer.
Try with
pip install scikit-image
from refacer.
I just updated the requirements, changing 'skimage' to 'scikit-image'. It appears there was a mistake when creating the list. My apologies for the confusion. Please pull the latest version from the repository and try again. Let me know if you encounter any further issues!
from refacer.
Fixed, not sure if this is cached packages confusing my new environment but I got this issue now failed to load onnxruntime_providers_cuda.dll which I did install so maybe I need to install it manually? Its falling back to CPU even through I didnt install the requirements this time. also that possibly CoreMLExecutionProvider isnt supported in my environment, I installed python 3.10.9 so is there a reason? Im fine with manually fixing the issues if I need to, also I put inswapper_128.onnx inside the general folder next to app.py in case that matters
from refacer.
CoreMLExecutionProvider is intended for MacOSX only. If you're seeing a warning related to it, it's not an issue. It's just informing you that this specific feature may not be supported in your environment. Continue with your setup and let me know if you encounter any further issues.
from refacer.
Great but like I said I got this issue failed to load or find onnxruntime_providers_cuda.dll which I did install and is in the correct spot 2023-06-03 20:30:47.4078164 [E:onnxruntime:Default, provider_bridge_ort.cc:1351 onnxruntime::TryGetProviderInfo_CUDA] E:\e_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1131 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "E\MYPATH\envs\refacerr\lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"
from refacer.
If you have the correct versions of CUDA and cuDNN, then please verify your environment variables.
Here is the guide for installing cuDNN on Windows: NVIDIA cuDNN Install Guide. It will help you to verify your installation and environment variables.
from refacer.
Can I install these only in the environment or are they forcefully general?
from refacer.
This generally gets installed and also depends on the driver for your Nvidia graphics card. If you can't get it to work, try using the CPU option as it also works well. I'm going to close this issue as, having solved the requirements issue thanks to you, this problem is not directly related to Refacer.
from refacer.
I cant seem to make it work for gpu, not sure how to do the installation process for proper cuda onix etc when inside a venv in anaconda
from refacer.
If you're having difficulties setting up the GPU on your machine, you can try out directly on Google Colab: https://github.com/xaviviro/refacer/blob/main/notebooks/Refacer_colab.ipynb
from refacer.
Im a noob so I want to learn to troubleshoot this but I dont understand how to check requirements for onnx, my NVidia card is new enough to work, I installed this environment on a external drive with anaconda so I am not really sure how the add to path tip works here
from refacer.
Related Issues (20)
- refacer and roop parralel installation causes problems. HOT 12
- refacer web-interface uses same port as automatic1111 aka stable diffusion. HOT 1
- How can I increase the number of faces? HOT 1
- Error
- Doesn't recognise face from photo so doesnt swap. HOT 1
- Unable to determine which face was not detected
- The localhost doesn't work normally. HOT 5
- Error and doesn't work HOT 2
- Crashing at extracting frames. HOT 1
- (question for a friend) press reface but nothing appears in terminal HOT 2
- "CUDAExecutioner" In terminal missing after I accidentally uninstalled onnxruntime HOT 1
- Add option to use codeformer? HOT 1
- Option to swap to all faces? HOT 2
- I don't know what caused it, please help determine.
- Limitation Of a Video File? HOT 2
- numpy.core._exceptions._ArrayMemoryError
- Insightface Issue
- Hello, dnt work on colab HOT 2
- Issue HOT 2
- Error when creating a video
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 refacer.