-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPU not getting detected #19
Comments
Update: I reran the setup and it can now find the config file. Still... no GPU. |
Copying this from another reply because it sounds like potentially the same issue: Given that you have an Nvidia GPU and Dream Factory doesn't see it, the most likely explanation is that Pytorch wasn't installed properly. Did you see any errors when you ran setup.py? Try running setup again with the verbose option and see if you catch any obvious errors: python setup.py --force --shell --verbose Alternatively, you can try installing pytorch manually: conda install -y pandas pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia If there is a failed/leftover old installation you may need to start fresh with a new conda environment. |
I saw that post and ran it yesterday. The setup ran correctly. When I relaunched dream factory, it still couldn't find the GPU. I also installed CUDA because I set the amount of GPUs in the config to 1 and the phrase "cuda:1" appeared. |
You can run the following command to check the number of CUDA devices
You can set the number of visible devices using the following. This would indicate you have two cuda devices.
If you only have one cuda device in your system |
I have done all of that. It still has the same error. I'm on windows, so I used PS: Thanks for the |
If you open up an Anaconda terminal in your Dream Factory environment and run these two commands, what do you see?
|
|
That looks fine to me - I'm kind of at a loss as to what could be wrong, unfortunately. I'm running DF on a 3060 Ti myself (on a Win10 machine, I also have a friend running DF on a 3060 Ti on Win11) without any problems, using exactly the steps detailed in the setup section to install things. Does the Automatic1111 webui work on your machine (since the 12-06 release, Dream Factory requires it)? |
I had the same issue. it appears to be something wrong with conda, I just decided to not use a virtual environment and it worked fine, detected both gpus. |
Has this been solved or is it a start over from scratch type error, uninstall anaconda and what not and start over? I have the same above error when I try and run DF and am using a 3060ti. After running 'setup.py,' with --force or --shell I attempt to run setup-py --update and get an error stating that setup has yet to be run and to run it. I am on Ubuntu and have followed the instillation instructions as described in the readme, stable diffusion runs fine on its own and can generate images. I have tried starting a resh conda environment and get same error. pytorch version 2.1.0, cuda is installed. |
I'm not able to replicate these issues on any of my own environments unfortunately, but I had somebody recently comment that they needed to install PyTorch manually to get things to work properly. You can give that a try:
If you're comfortable dropping Anaconda entirely you can also try running without a virtual environment. |
Running into same issue: followed all instructions correctly but GPUs not detected by Dream Factory. |
Local CUDA version was 12.2, fixed issue by manually installing packages as @rbbrdckybk suggested above. |
Hi, I stumbled upon this a couple of minutes ago and got everything set up, but...
[controller] >>> configuration file 'config.txt' doesn't exist; using defaults... [controller] >>> starting webserver (http://localhost) as a background process... [controller] >>> detected 0 total GPU device(s)... [controller] >>> ERROR: unable to initialize any GPUs for work; exiting!
I have an Nvidia RTX 3060 Ti, why isn't dream factory finding it? Do I need to specify it somewhere?
Thanks
The text was updated successfully, but these errors were encountered: