Support for ref images RoPE index (omni-kontext) #755
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Support for models like omni-kontext
How to use:
Download omni-kontext character LoRA and add it to your lora model directory.
example command:
sd.exe --diffusion-model models\flux1-kontext-dev-q5_1.gguf --clip_l models\clip\clip_l\clip_l.safetensors --t5xxl models\clip\t5\t5xxl_fp16.safetensors --vae models\vae\flux\ae.f16.gguf -W 1024 -H 512 -p "Add the character to the scene <lora:character_5000:1>" -r 'scene_02.png' -r 'boy_reference_512.png,2' --cfg-scale 1 --sampling-method euler --color --lora-model-dir models\loras\flux\kontext\
note the
,2
after the path to the second image. That's the desired RoPE index of the character's image (defaults to index 1).Results: