Code Monkey home page Code Monkey logo

Comments (1)

weixi-feng avatar weixi-feng commented on July 18, 2024

Thanks for the question. v_c[-1:] is a sequence where the tokens of "B" in prompt "A and B" is replaced by the output sequence from "B" prompt. If I understand correctly, v_c[-2:-1] should be the same as the output sequence from the full prompt, i.e., v_c[0]. Perhaps the single_align function in text2img_demo.py is less confusing.

When I did a preliminary experiment to compare using v_c[0] and v_c[-1], I found that the former helps with details, and the latter better mitigates the issue of the missing object. From my limited observations on like 100 images, I think the former is a better choice considering both color binding and missing objects. So I went with v_c[-1] on all "A and B" prompts.

More recently, I found that using v_c[-1] is potentially equivalent to assigning a very large weight to V_k in eq. 4. (For now, eq. 4 is an equally weighted average but can be expanded to a weighted sum by designing some dynamic weighting mechanism) I am still looking into this and seeing if there are any empirical explanations.

from structured-diffusion-guidance.

Related Issues (13)

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.