alt.freeweights.qwen / Qwen-Image-ControlNet-Inpainting
From: InstantX <huggingface.co/InstantX>Newsgroups: alt.freeweights.qwenSubject:

Qwen-Image-ControlNet-Inpainting

Date: 2026-11-15Commit: 5387c47Signed: 2DC28CC7B26A283B ✓

Image to image model with 2.1B parameters. Safetensors weights, 4.26 GB in all. Published by InstantX under Apache-2.0.

2.1B params4.26GBQwen-Image-ControlNet-Inpaintingsafetensorspermissive
FactsParams2.1BSize4.26 GBFormatssafetensorsTaskimage to imageLicenseApache-2.0From sourcepermissive
$ fw get InstantX/Qwen-Image-ControlNet-Inpainting
# manifest sha256 5989e4c11ca5… · 4.26 GB · 15 files
$ fw verify ./Qwen-Image-ControlNet-Inpainting InstantX/Qwen-Image-ControlNet-Inpainting
From sourceHosted (signed)InstantX/Qwen-Image-ControlNet-InpaintingLast check: 2026-11-15 02:45 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Fine-tune of Qwen-Image.

Works with

Overview

Size
4.26 GB
Weights
4.23 GB (safetensors)
Parameters
2.1B
Formats
safetensors
Task
image to image
License
Apache-2.0 (permissive)
Files
15, each with a sha256
Publisher
InstantX
Added
2026-11-15
Section
alt.freeweights.qwen
Lineage

Original release from the publisher.

Base model: Qwen/Qwen-Image

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:45 UTCpassed

Model card

From the publisher at commit 5387c47. Shown as plain text with links; images open at the publisher.

Qwen-Image-ControlNet-Inpainting#

This repository provides a ControlNet that supports mask-based image inpainting and outpainting for Qwen-Image.

Model Cards#

  • This ControlNet consists of 6 double blocks copied from the pretrained transformer layers.
  • We train the model from scratch for 65K steps using a dataset of 10M high-quality general and human images.
  • We train at 1328x1328 resolution in BFloat16, batch size=128, learning rate=4e-5. We set the text drop ratio to 0.10.
  • This model supports Object replacement, Text modification, Background replacement, Outpainting.

Showcases#

You can find more use cases in this blog.

| Image: example1 | Image: example1 | Image: example1

| Image: example2 | Image: example2 | Image: example2

| Image: example3 | Image: example3 | Image: example3

Inference#

import torch
from diffusers.utils import load_image

# pip install git+https://github.com/huggingface/diffusers
from diffusers import QwenImageControlNetModel, QwenImageControlNetInpaintPipeline

base_model = "Qwen/Qwen-Image"
controlnet_model = "InstantX/Qwen-Image-ControlNet-Inpainting"

controlnet = QwenImageControlNetModel.from_pretrained(controlnet_model, torch_dtype=torch.bfloat16)

pipe = QwenImageControlNetInpaintPipeline.from_pretrained(
    base_model, controlnet=controlnet, torch_dtype=torch.bfloat16
)
pipe.to("cuda")

image = load_image("https://huggingface.co/InstantX/Qwen-Image-ControlNet-Inpainting/resolve/main/assets/images/image1.png")
mask_image = load_image("https://huggingface.co/InstantX/Qwen-Image-ControlNet-Inpainting/resolve/main/assets/masks/mask1.png")
prompt = "一辆绿色的出租车行驶在路上"

image = pipe(
    prompt=prompt,
    negative_prompt=" ",
    control_image=image,
    control_mask=mask_image,
    controlnet_conditioning_scale=controlnet_conditioning_scale,
    width=control_image.size[0],
    height=control_image.size[1],
    num_inference_steps=30,
    true_cfg_scale=4.0,
    generator=torch.Generator(device="cuda").manual_seed(42),
).images[0]
image.save(f"qwenimage_cn_inpaint_result.png")

ComfyUI Support#

ComfyUI offers native support for Qwen-Image-ControlNet-Inpainting. The official workflow can be found here. Make sure your ComfyUI version is >=0.3.59.

Community Support#

Liblib AI offers native support for Qwen-Image-ControlNet-Inpainting. Visit for online WebUI or ComfyUI inference.

Limitations#

This model is slightly sensitive to user prompts. Using detailed prompts that describe the entire image (both the inpainted area and the background) is highly recommended. Please use descriptive prompt instead of instructive prompt.

Acknowledgements#

This model is developed by InstantX Team. All copyright reserved.

Files

15 files · 4.26 GBWeights 4.23 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 15 files with their sha256
FileSizesha256
.gitattributes1.89 KB9637a394af54aac896c3f175d7aa4f8876fa2086de8c95a194a62f225f1a98b9
README.md3.83 KB22783f32ad58c537a5a9ede75056b1e72f4b269c427d4d711bce3f1b4eebbccb
app_inpaint_hf.py11.7 KB5b0b63570afb5cb6033d27484280427bb92ae7c3885de3df3fec7812cad9fcc5
assets/images/image1.png4.29 MB1557bdf0882f4650878acec38727c1c37bfe39704a82abe216a3cb8c3752a8b2
assets/images/image2.png5.45 MB3e07b721e268d285ae16a54bea09af804098a7c1cdcfd648d9deec95f8a6d262
assets/images/image3.png3.43 MBc3164767e396c20e9173b961ea84a62f62b845eb806a7b7de26195f42c704f72
assets/masks/mask1.png19.4 KB350578968afcc597b8a7572c6e145ace959227f69ea8e582a53bdee4aa50a67c
assets/masks/mask2.png22.3 KBf74083261cf1a9bb1abad990933d1637a19fc6dde2b76ee64db060291245a3d0
assets/masks/mask3.png18.2 KB03784f4947f65f240135852a65f032ec0f1b4bca5f542ca6a73ce94243a3551a
assets/results/output1.png4.20 MBad1a9da6a4dcf076e05a5d3f91a57dbfc096e334e9afd35f29b58c92dc8583c6
assets/results/output2.png5.16 MB177dc16327eb263ea79beeab0fb3c83f9dee552095253e6b757cdec5c70149cd
assets/results/output3.png3.13 MBcc0ec3a614ba89b80491fe640d2c059edf04b504c3689d8c163af30d7b6bbacb
config.json482 B4d804c94bc9dd9eb6e0ed08b973e6156634f0ebf1452d2ff3e75281a74c0be10
diffusion_pytorch_model.safetensors4.23 GB49c01aafe6545c1f6e7627a724c8fb13357fe74efee235622158f0a8f30e5458
pipeline_qwenimage_controlnet_inpaint.py43.8 KB6ab5a6befa8edfbb57e77517e65940bb6a610de585c8c1535569d1fa00eac650
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
5387c47add pinned now2026-11-15 02:45 UTC15 files · 4.26 GB

Use it

$ fw get InstantX/Qwen-Image-ControlNet-Inpainting
# manifest sha256 5989e4c11ca5… · 4.26 GB · 15 files
$ fw verify ./Qwen-Image-ControlNet-Inpainting InstantX/Qwen-Image-ControlNet-Inpainting
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/InstantX/Qwen-Image-ControlNet-Inpainting.json --dir ./Qwen-Image-ControlNet-Inpainting $ python3 fw.py verify ./Qwen-Image-ControlNet-Inpainting ./InstantX__Qwen-Image-ControlNet-Inpainting.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download InstantX/Qwen-Image-ControlNet-Inpainting --revision 5387c47add7b3a9b1d6341b75a251d235408c670 --local-dir ./Qwen-Image-ControlNet-Inpainting
Packaged for ComfyUI. Most image, video and music models run in ComfyUI . Check the publisher's page for the workflow. Freeweights does not host it.

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
22783f32ad58c537a5a9ede75056b1e72f4b269c427d4d711bce3f1b4eebbccb
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: InstantX <huggingface.co/InstantX>Newsgroups: alt.freeweights.qwenSubject: Qwen-Image-ControlNet-InpaintingDate: 2026-11-15Commit: 5387c47Signed: 2DC28CC7B26A283B ✓
Upstream
InstantX/Qwen-Image-ControlNet-Inpainting
Pinned commit
5387c47add7b3a9b1d6341b75a251d235408c670
Manifest
Qwen-Image-ControlNet-Inpainting.json · .minisig
Manifest sha256
5989e4c11ca5dffcd7120053caeeb25bbf8d260c59072a4946abc64d6e7f9646
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:45 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/InstantX/Qwen-Image-ControlNet-Inpainting.json $ curl -O https://freeweights.allternit.com/manifests/InstantX/Qwen-Image-ControlNet-Inpainting.json.minisig $ minisign -Vm Qwen-Image-ControlNet-Inpainting.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

Qwen/Qwen-Image · this model is a finetune of it

1 model in the catalog name this one as their parent.

Fine-tunes
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download InstantX/Qwen-Image-ControlNet-Inpainting
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Qwen-Image-ControlNet-Inpainting.json. Provenance. Takedown history: none.
From: BAAI <huggingface.co/BAAI>Subject: Aquila-VL-2B-llava-qwen
From: Perciqa <huggingface.co/Perciqa>Subject: Aurora-Code-1
From: BAAI <huggingface.co/BAAI>Subject: bge-reasoner-embed-qwen3-8b-0923
From: amazon <huggingface.co/amazon>Subject: BMOJOF-primed-HQwen3-8B-Instruct
From: nbeerbower <huggingface.co/nbeerbower>Subject: Bubba-Qwen3.6-27B-LoRA
From: bartowski <huggingface.co/bartowski>Subject: bytkim_Qwen3.8-27B-pi-GGUF