Comments (10)
It seems like your Pytorch installation doesn't have CUDA enabled. You can check on the Pytorch website for how to install it with CUDA enabled for your system.
On Windows, after the source
step, try running this:
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117
from stable-karlo.
I tried that but still receive the error. chatgpt recommended i install cuda toolkit, but that has no effect. i also get this at the beginning:
text_encoder\model.safetensors not found
Fetching 26 files: 100%|##########| 26/26 [00:00<00:00, 1663.92it/s]
from stable-karlo.
Same here. Fix doesn't work either.
from stable-karlo.
Are you sure you have an Nvidia GPU that is compatible with CUDA? Perhaps you don't have the CUDA toolkit installed.
Here is a link to download the CUDA toolkit: https://developer.nvidia.com/cuda-downloads
After you've set up CUDA, go into the stable-karlo
folder, activate the environment, and try this:
pip install -r requirements.txt
pip install --upgrade --force-reinstall torch --extra-index-url https://download.pytorch.org/whl/cu117
That should force Pytorch to rebuild with CUDA support.
from stable-karlo.
from stable-karlo.
@andybak Are you also running it on Windows? Do you think you could attach the error message you're getting?
from stable-karlo.
i actually got the error resolved. i am on windows. i screwed up by making my own env instead of using the .env to install the packages. unforunately, got an oom error, so it seems like i don't have enough vram. i guess ill wait till it gets optimized more
from stable-karlo.
from stable-karlo.
the bash command wasn't being recognized on my pc, even though i was doing it in gitbash. i was probably doing something wrong. the code is below.
git clone https://github.com/kpthedev/stable-karlo.git
cd stable-karlo
python -m venv .env
source .env/bin/activate <---- changed this for conda
pip install -r requirements.txt
so i just used conda/command line and chatpgpt told me to just use .env/scripts/activate.bat so i could activate the env .env to install the requirements, then it worked. i may have had to force install the torch from the comment earlier, but i don't remember if that was actually necessary.
from stable-karlo.
the bash command wasn't being recognized on my pc, even though i was doing it in gitbash.
Yeah, I got a chance to test on Windows and I had to use the activate.bat
with the torch reinstall as you said.
As for the OOM errors, you can try the cpu-offloading
branch. I was able to generate Karlo images with 8GB of VRAM, but the upscaling requires way more.
from stable-karlo.
Related Issues (7)
- Model downloads not persisting after crash HOT 3
- Feature suggeston: Stable Diffusion Only Option HOT 1
- Feature suggestion: VRAM optimization HOT 2
- M1 MacOS Install - Cuda Error when trying to run Karlo HOT 2
- AssertionError: Torch not compiled with CUDA enabled HOT 10
- Colab - Stable Diffusion images are black
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 stable-karlo.