Comments (6)
I'm on Arch as well, for AMD you can use ROCm. You probably want opencl-amd-dev.
Then I got the stable Linux pip ROCm packages from pytorch.
And then it depends on your exact GPU. I got a RX 5700 (gfx1010) and fake it as gfx1030 using
export HSA_OVERRIDE_GFX_VERSION=10.3.0
After that the webui just works.
from hentai-diffusion.
I was able to make a fix myself.
I added this line in launch.py
commandline_args = os.environ.get('COMMANDLINE_ARGS', "--skip-torch-cuda-test --precision full --no-half")
Also when running webui.py. I noticed that it just cloned a git repo to my home directory and uses that. Now I'm just launching running python3 launch.py
...
What kinda sucks tho is that it is using my CPU and not my GPU. I have an AMD Vega 64 gpu.
from hentai-diffusion.
Accidentally closed 🤦
from hentai-diffusion.
What does rocminfo give?
from hentai-diffusion.
I'm attempting to run webui.sh on an Arch Linux install (Linux Arch 6.0.9-arch1-1). when launching python I'm getting this error;
################################################################ Launching launch.py... ################################################################ Python 3.10.8 (main, Nov 1 2022, 14:18:21) [GCC 12.2.0] Commit hash: 828438b4a190759807f9054932cae3a8b880ddf1 Traceback (most recent call last): File "/home/foxmaccloud/stable-diffusion-webui/launch.py", line 250, in <module> prepare_enviroment() File "/home/foxmaccloud/stable-diffusion-webui/launch.py", line 174, in prepare_enviroment run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'") File "/home/foxmaccloud/stable-diffusion-webui/launch.py", line 58, in run_python return run(f'"{python}" -c "{code}"', desc, errdesc) File "/home/foxmaccloud/stable-diffusion-webui/launch.py", line 34, in run raise RuntimeError(message) RuntimeError: Error running command. Command: "/home/foxmaccloud/stable-diffusion-webui/venv/bin/python3" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'" Error code: 1 stdout: <empty> stderr: Traceback (most recent call last): File "<string>", line 1, in <module> AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
I know that cuda is Nvidia technology, so was thinking it could be an issue with me having an AMD gpu?
Your best option is probably looking on YouTube for ways to run on amd cards. I don't have any and haven't tested anything on them.
from hentai-diffusion.
I was able to make a fix myself. I added this line in launch.py
commandline_args = os.environ.get('COMMANDLINE_ARGS', "--skip-torch-cuda-test --precision full --no-half")
Also when running webui.py. I noticed that it just cloned a git repo to my home directory and uses that. Now I'm just launching running
python3 launch.py
...What kinda sucks tho is that it is using my CPU and not my GPU. I have an AMD Vega 64 gpu.
If you use "--skip-torch-cuda-test" then it will only run on the CPU, which will take a lot longer to create images (2 or 3 minutes instead of ~10 seconds)
from hentai-diffusion.
Related Issues (20)
- AttributeError: 'NoneType' HOT 9
- Comparison between HD-18 and HD-17? HOT 1
- KeyError: 'state_dict' with HD-18 HOT 3
- Help needed HOT 1
- Where to change share to true?
- KeyError: 'state_dict' Cannot load model
- Automatic brown "grayscaling" HOT 2
- HD 18 does not install on Diffusionbee HOT 1
- OS Error winerror 127 HOT 2
- Guide for mastering the prompt HOT 1
- HD 18 Out of memory error on webui, safetensors, pruning
- Is there a way to do a keyword search to see what prompts the model has been trained on? HOT 3
- Bruh the website doesn't work HOT 1
- can't find "lauch( )" HOT 4
- no xformers, do I need it? (HD-22) HOT 1
- Training HD-22 with LoRA/Dreambooth and contributing to project
- help what is this and what do i do?
- Pip version 23.1.2 Not being Recognized HOT 3
- I keep getting this error "LayerNormKernellmpl" HOT 5
- Tutorial sucks
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 hentai-diffusion.