Giter VIP home page Giter VIP logo

sd-fused's People

Contributors

tfernd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sd-fused's Issues

Token merging

Very interested in the work you're doing. Speed and memory efficiency are crucial for anyone trying to generate at scale.

We've implemented Token Merging: facebookresearch/ToMe#7

This has a speed overhead increase of about 15% from the naive implementation at 512x512, although this goes up as array sizes increase. The memory overhead reduction is significant, and can allow for much larger image generation.

[not an issue] feedback

Thanks for this library! It works just fine on my RX6700XT with ROCM PyTorch installed, and with ToMe enabled it gives speeds similar to other implementations (that don't have it).

I wonder if it's feasible to try to add cross attention like in https://github.com/Doggettx/stable-diffusion (I think it's different from the "original" split attention)? Because with just that optimization with auto's webui (which doesn't really have any other optimizations for my GPU) I'm getting the same speed as with your code. It's also implemented in auto's web ui but that repo doesn't have a license, so using code from it wouldn't really be possible.

I've also checked Birch-san's SD fork with ToMe implemented, and it also gives similar speeds to having this Doggettx's split attention, so maybe it's possible to combine the two.

I know this isn't really relevant for modern NVIDIA GPUs as they have xformers, but I think it'd still be nice for older NVIDIA GPUs and AMD GPUs :)

Some enhancements?

Hello, you have a great library! I've tried it many times and the results are awesome! But the shortcoming is that it lacks the correction of face details and the restoration of image details. Can you consider adding post-processing algorithms such as RealESRGAN, ESRGAN, CodeFormer, GFPGAN, etc.? Looking forward to your improvement, thanks!

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.