Comments (1)
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)
- Please make google colab with dream booth integration
- Attention Maps
- How can I use ddim sampler instead of plms sampler in this codebase?
- Why sturcture diffusion inference is much faster than Stable Diffusion original?
- Be killed at the beginning
- Ablation study of contextualized text embeddings
- Failing to reproduce results HOT 4
- Hi, will you open youre dataset Attribute Binding Contrast set (ABC-6K) and CC-500 HOT 1
- Wrong link HOT 1
- How could get the attention map as your paper shows HOT 1
- ModuleNotFoundError: No module named 'structured_stable_diffusion'
- How to reproduce the results using GLIP HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from structured-diffusion-guidance.