Coder Social home page Coder Social logo

Comments (10)

kpthedev avatar kpthedev commented on May 14, 2024

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.

gsgoldma avatar gsgoldma commented on May 14, 2024

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.

andybak avatar andybak commented on May 14, 2024

Same here. Fix doesn't work either.

from stable-karlo.

kpthedev avatar kpthedev commented on May 14, 2024

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:

  1. pip install -r requirements.txt
  2. 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.

andybak avatar andybak commented on May 14, 2024

from stable-karlo.

kpthedev avatar kpthedev commented on May 14, 2024

@andybak Are you also running it on Windows? Do you think you could attach the error message you're getting?

from stable-karlo.

gsgoldma avatar gsgoldma commented on May 14, 2024

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.

andybak avatar andybak commented on May 14, 2024

from stable-karlo.

gsgoldma avatar gsgoldma commented on May 14, 2024

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.

kpthedev avatar kpthedev commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.