Commit bc82599
Add Qwen Image Edit 2511 model support
Adds full support for the Qwen Image Edit 2511 model architecture,
including both the diffusers version (Qwen/Qwen-Image-Edit-2511) and
GGUF quantized versions (unsloth/Qwen-Image-Edit-2511-GGUF).
Backend changes:
- Add QwenImageEdit base model type to taxonomy
- Add diffusers and GGUF model config classes with detection logic
- Add model loader for diffusers and GGUF formats
- Add 5 invocation nodes: model loader, text/vision encoder, denoise,
image-to-latents, latents-to-image
- Add QwenVLEncoderField for Qwen2.5-VL vision-language encoder
- Add QwenImageEditConditioningInfo and conditioning field
- Add generation modes and step callback support
- Add 5 starter models (full diffusers + Q2_K, Q4_K_M, Q6_K, Q8_0 GGUF)
Frontend changes:
- Add graph builder for linear UI generation
- Register in canvas and generate enqueue hooks
- Update type definitions, optimal dimensions, grid sizes
- Add readiness validation, model picker grouping, clip skip config
- Regenerate OpenAPI schema
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
fix: use AutoProcessor.from_pretrained to load Qwen VL processor correctly
Co-authored-by: lstein <111189+lstein@users.noreply.github.com>
Agent-Logs-Url: https://github.com/lstein/InvokeAI/sessions/4d4417be-0f61-4faa-a21c-16e9ce81fec7
chore: bump diffusers==0.37.1
Co-authored-by: lstein <111189+lstein@users.noreply.github.com>
Agent-Logs-Url: https://github.com/lstein/InvokeAI/sessions/38a76809-d9a3-40f1-b5b3-fb56342e8e90
fix: handle multiple reference images
feature: add text encoder selection to advanced section for Qwen Image Edit
feat: complete Qwen Image Edit pipeline with LoRA, GGUF, quantization, and UI support
Major additions:
- LoRA support: loader invocation, config detection, conversion utils, prefix
constants, and LayerPatcher integration in denoise with sidecar patching for
GGUF models
- Lightning LoRA: starter models (4-step and 8-step bf16), shift override
parameter for the distilled sigma schedule
- GGUF fixes: correct base class (ModelLoader), zero_cond_t=True, correct
in_channels (no /4 division)
- Denoise: use FlowMatchEulerDiscreteScheduler directly, proper CFG gating
(skip negative when cfg<=1), reference latent pixel-space resize
- I2L: resize reference image to generation dimensions before VAE encoding
- Graph builder: wire LoRAs via collection loader, VAE-encode reference image
as latents for spatial conditioning, pass shift/quantization params
- Frontend: shift override (checkbox+slider), LoRA graph wiring, scheduler
hidden for Qwen Image Edit, model switching cleanup
- Starter model bundle for Qwen Image Edit
- LoRA config registered in discriminated union (factory.py)
- Downgrade transformers requirement back to >=4.56.0
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f7aa5fc commit bc82599
60 files changed
Lines changed: 3174 additions & 57 deletions
File tree
- invokeai
- app
- api
- invocations
- services/model_install
- util
- backend
- model_manager
- configs
- load/model_loaders
- metadata
- fetch
- patches/lora_conversions
- stable_diffusion
- diffusion
- frontend/web
- public/locales
- src
- app/store/middleware/listenerMiddleware/listeners
- features
- controlLayers
- components/RefImage
- hooks
- store
- modelManagerV2
- nodes
- types
- util/graph
- generation
- parameters
- components
- Advanced
- types
- util
- queue
- hooks
- store
- settingsAccordions/components
- AdvancedSettingsAccordion
- GenerationSettingsAccordion
- services/api
- hooks
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
| |||
340 | 342 | | |
341 | 343 | | |
342 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
343 | 351 | | |
344 | 352 | | |
345 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
75 | 82 | | |
76 | 83 | | |
77 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
473 | 474 | | |
474 | 475 | | |
475 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
476 | 488 | | |
477 | 489 | | |
478 | 490 | | |
| |||
0 commit comments