Code Monkey home page Code Monkey logo

Comments (8)

carefree0910 avatar carefree0910 commented on June 12, 2024

Ah, my bad, I should put this in the README as well...

I've provided an option here to exchange GPU RAM with RAM, uncomment this line will first load the models to RAM and then use GPU RAM only when needed!

from carefree-creator.

carefree0910 avatar carefree0910 commented on June 12, 2024

The reason why this project requires some more GPU RAM than the SD vanilla is that - It actually integrates FOUR different SD versions together, and many other models as well 🤣.

BTW, if you want to focus on the SD vanilla features, you can comment out the following lines, which will also reduce the GPU RAM usage!

from carefree-creator.

danielrh avatar danielrh commented on June 12, 2024

wow so cool! It seems to be loaded now! Thanks for the help! I'm using the OPT because I do want to see the features together, especially all the img2img-related features.

from carefree-creator.

carefree0910 avatar carefree0910 commented on June 12, 2024

That's great 🥳!

I did not turn on the OPT by default because it eats too much RAM that the Google Colab cannot afford it 🤣.

from carefree-creator.

aleph23 avatar aleph23 commented on June 12, 2024

@carefree0910 I have an 8GB GPU (RTX2070) & 16 GB RAM. At launch with '--lazy' argument, I have 12.3 GB RAM available and 7.5 GB GPU ram. GPU ram increases to around 6500 MG used (as reported by NVIDIA Inspector) and I then get:

lib\site-packages\torch\serialization.py", line 1112, in load_tensor
    storage = zip_file.get_storage_from_record(name, numel, torch.UntypedStorage)._typed_storage()._untyped_storage
RuntimeError: [enforce fail at ..\c10\core\impl\alloc_cpu.cpp:72] data. DefaultCPUAllocator: not enough memory: you tried to allocate 3276800 bytes.

Application startup failed. Exiting.

There is minimal usage of CPU RAM during this process. Automatic1111 with several extensions runs fine. Any suggestions as to why it seems CPU RAM isn't been used? T

from carefree-creator.

carefree0910 avatar carefree0910 commented on June 12, 2024

@aleph23 Hi! This project has one major difference from the Automatic1111: it launches MANY models at the same time, so it will eat up much more resources.

There is a workaround though:

cfcreator serve --limit 1

Which means you'll only load 1 model and leave everything else on disk. (In this case, it'll perform more alike to the Automatic1111!)

However, in my personal experience I found that there are some memory leaks around. I'm currently using gc.collect() and maybe I left some references to the models which stops Python from freeing the memory.

from carefree-creator.

usmanyousaaf avatar usmanyousaaf commented on June 12, 2024

*how to run this bro :)

from carefree-creator.

carefree0910 avatar carefree0910 commented on June 12, 2024

*how to run this bro :)

The Goole Colab should be working now!

from carefree-creator.

Related Issues (20)

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.