Coder Social home page Coder Social logo

Comments (4)

sunwoo76 avatar sunwoo76 commented on August 20, 2024 2

Hello, thanks for the implementation! It works very well.

As a suggestion, it may be helpful to provide code that works with the broader Github community. While the Diffusers library does allow for better ease of use and a more streamlined experience, it can possibly hinder the freedom to use across similar implementations due to how their library works.

I reproduced cross attention control based on the stable diffusion repository referring to this repository. However, I'm not sure the codes reproduced properly.
Refer to my repository: https://github.com/sunwoo76/CrossAttentionControl-stablediffusion

@bloc97, your repository, and comments were good guidance to me. Could you check my implementation too? Thanks :)

from crossattentioncontrol.

bloc97 avatar bloc97 commented on August 20, 2024

I believe the easiest way for someone to get started is to simply download the diffusers library and run this jupyter notebook. While it does require the diffusers library, it is not using any of the pre-implemented pipelines, diffusers is only used to download and load the neural network with schedulers, all of the diffusion logic is in the jupyter notebook.

If you are using another library, simply replace the unet, vae and scheduler variables with the ones from another library. I might be wrong but I think the cross attention modules should be implemented similarly, but maybe you have to modify slightly the code injection as the variable names might be different.

from crossattentioncontrol.

bloc97 avatar bloc97 commented on August 20, 2024

@sunwoo76 Awesome! I didn't look very deeply in the code but it looks good at first glance from reading the README. I think showing a visualization of the attention maps is a very good feature!

from crossattentioncontrol.

ExponentialML avatar ExponentialML commented on August 20, 2024

Hello, thanks for the implementation! It works very well.
As a suggestion, it may be helpful to provide code that works with the broader Github community. While the Diffusers library does allow for better ease of use and a more streamlined experience, it can possibly hinder the freedom to use across similar implementations due to how their library works.

I reproduced cross attention control based on the stable diffusion repository referring to this repository. However, I'm not sure the codes reproduced properly. Refer to my repository: https://github.com/sunwoo76/CrossAttentionControl-stablediffusion

@bloc97, your repository, and comments were good guidance to me. Could you check my implementation too? Thanks :)

Amazing work!

from crossattentioncontrol.

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.