Image-to-Image
Diffusers
Safetensors
English
Image-to-Image
ControlNet
Diffusers
QwenImageControlNetPipeline
Qwen-Image
Instructions to use InstantX/Qwen-Image-ControlNet-Union with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use InstantX/Qwen-Image-ControlNet-Union 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-Union", 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 files
README.md
CHANGED
|
@@ -106,7 +106,10 @@ You can adjust control strength via controlnet_conditioning_scale.
|
|
| 106 |
- Depth: use [depth-anything](https://github.com/DepthAnything/Depth-Anything-V2), set controlnet_conditioning_scale in [0.8, 1.0]
|
| 107 |
- Pose: use [DWPose](https://github.com/IDEA-Research/DWPose/tree/onnx), set controlnet_conditioning_scale in [0.8, 1.0]
|
| 108 |
|
| 109 |
-
We strongly recommend using detailed prompts, especially when include text elements. For example, use
|
|
|
|
|
|
|
|
|
|
| 110 |
|
| 111 |
# Limitations
|
| 112 |
We find that the model was unable to preserve some details, such as small font text.
|
|
|
|
| 106 |
- Depth: use [depth-anything](https://github.com/DepthAnything/Depth-Anything-V2), set controlnet_conditioning_scale in [0.8, 1.0]
|
| 107 |
- Pose: use [DWPose](https://github.com/IDEA-Research/DWPose/tree/onnx), set controlnet_conditioning_scale in [0.8, 1.0]
|
| 108 |
|
| 109 |
+
We strongly recommend using detailed prompts, especially when include text elements. For example, use "a poster with text 'InstantX Team' on the top" instead of "a poster".
|
| 110 |
+
|
| 111 |
+
# Community Support
|
| 112 |
+
[Liblib AI](https://www.liblib.art/) offers native support for Qwen-Image-ControlNet-Union. [Visit](https://www.liblib.art/) for more details.
|
| 113 |
|
| 114 |
# Limitations
|
| 115 |
We find that the model was unable to preserve some details, such as small font text.
|