Coder Social home page Coder Social logo

Comments (4)

hako-mikan avatar hako-mikan commented on August 20, 2024 3

Thanks reporting. Added code to release memory. It improved in my environment, please try it.

from sd-webui-lora-block-weight.

Manaball123 avatar Manaball123 commented on August 20, 2024

Try adding a line under process(): (around line 200)
torch.cuda.empty_cache()
Note that I haven't extensively tested this, and this may lower your overall performance.
I am speculating that this is caused by the new LoRA being allocated(one with modified weights) not properly being freed after allocation.

from sd-webui-lora-block-weight.

Daniel-Poke avatar Daniel-Poke commented on August 20, 2024

Okay, I'm not crazy, I thought this extension just used a high amount of memory so I turn it off when I am bulk generating, but those usage graphs show a definite climb in memory.

Thank you for reporting and thanks @hako-mikan for resolving (potentially). I will test this out also.

EDIT: Been generating like normal and doing some high res fix perfectly fine, this seems to have resolved it 👍

from sd-webui-lora-block-weight.

slashedstar avatar slashedstar commented on August 20, 2024

Yeah, its fixed after updating, thanks

from sd-webui-lora-block-weight.

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.