Skip to content

adding image_weight and image_end_percent - #8

Open
MohammadAboulEla wants to merge 2 commits into
ethanfel:mainfrom
MohammadAboulEla:main
Open

adding image_weight and image_end_percent#8
MohammadAboulEla wants to merge 2 commits into
ethanfel:mainfrom
MohammadAboulEla:main

Conversation

@MohammadAboulEla

Copy link
Copy Markdown
Screenshot 2026-07-30 055132

image_weight — how loudly the reference image "speaks" inside the text encoder. It scales the image's vision tokens before the language model reads them: 1.0 = normal, below 1 fades the image's specific content out (0.0 leaves a generic "there's an image here" blur), above 1 exaggerates it. One encoder pass, so it's free.

image_end_percent — how long the image keeps influencing the picture while it's being generated. At 0.4, the image-informed conditioning drives the first 40% of the steps (where composition, layout and identity get decided), then your prompt alone finishes the render. Costs a second encoder pass when below 1.0.

Rough guide: use image_weight to change how strong the reference feels, image_end_percent to keep the reference's structure while letting the prompt win on style and detail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant