Add ControlNet support for Qwen image model#2332
Merged
Conversation
- Add Arch.qwen to has_controlnet_inpaint property - Add Arch.qwen to can_substitute_universal method (same modes as SDXL) - Add search path for Qwen ControlNet inpaint: Qwen-Image-InstantX-ControlNet-Inpainting - Add search path for Qwen ControlNet universal: Qwen-Image-InstantX-ControlNet-Union This enables ControlNet layers (scribble, line_art, soft_edge, canny_edge, depth, normal, pose, segmentation, blur, hands, inpaint) for the base Qwen image model (Arch.qwen), without affecting Qwen edit variants.
Acly
approved these changes
Feb 9, 2026
ai_diffusion/resources.py
Outdated
| resource_id(ResourceKind.controlnet, Arch.sd15, ControlMode.inpaint): ["control_v11p_sd15_inpaint"], | ||
| resource_id(ResourceKind.controlnet, Arch.flux, ControlMode.inpaint): ["flux.1-dev-controlnet-inpaint"], | ||
| resource_id(ResourceKind.controlnet, Arch.illu, ControlMode.inpaint): ["noobaiinpainting"], | ||
| resource_id(ResourceKind.controlnet, Arch.qwen, ControlMode.inpaint): ["Qwen-Image-InstantX-ControlNet-Inpainting"], |
Owner
There was a problem hiding this comment.
Can you make the filenames all lowercase here? The comparison is case-insensitive anyway, but it would be nice to match the rest of the code here.
Owner
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This enables ControlNet layers (scribble, line_art, soft_edge, canny_edge, depth, normal, pose, segmentation, blur, hands, inpaint) for the base Qwen image model (Arch.qwen), without affecting Qwen edit variants.