Image-to-Image
Diffusers
Safetensors
English
Image-to-Image
ControlNet
Diffusers
QwenImageControlNetInpaintPipeline
Qwen-Image
Run this model with HF Jobs
Run InstantX/Qwen-Image-ControlNet-Inpainting on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/InstantX/Qwen-Image-ControlNet-Inpainting. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/InstantX/Qwen-Image-ControlNet-Inpainting on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use InstantX/Qwen-Image-ControlNet-Inpainting with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use InstantX/Qwen-Image-ControlNet-Inpainting with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("InstantX/Qwen-Image-ControlNet-Inpainting", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files21 unmodified lines22232425262755 unmodified lines8384858687888921 unmodified lines- 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.# Showcases55 unmodified lines```# ComfyUI Support[ComfyUI](https://www.comfy.org/) offers native support for Qwen-Image-ControlNet-Inpainting.# Community Support[Liblib AI](https://www.liblib.art/) offers native support for Qwen-Image-ControlNet-Inpainting. [Visit](https://www.liblib.art) for online WebUI or ComfyUI inference.21 unmodified lines2223242526272855 unmodified lines8485868788899021 unmodified lines- 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.# Showcases55 unmodified lines```# ComfyUI Support[ComfyUI](https://www.comfy.org/) offers native support for Qwen-Image-ControlNet-Inpainting. The official workflow can be found [here](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/templates/image_qwen_image_instantx_inpainting_controlnet.json). Make sure your ComfyUI version is >=0.3.59.# Community Support[Liblib AI](https://www.liblib.art/) offers native support for Qwen-Image-ControlNet-Inpainting. [Visit](https://www.liblib.art) for online WebUI or ComfyUI inference.
README.md+2-1