Downloads · 30 days
87.8K
10% of all-time downloads
alibaba-pai/Z-Image-Turbo-Fun-Controlnet-Union-2.1
Z-Image-Turbo-Fun-Controlnet-Union-2.1 is a machine learning model from alibaba-pai. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for videox_fun. The card lists the license as apache-2.0.
[](https://github.com/aigc-apps/VideoX-Fun)
Downloads · 30 days
87.8K
10% of all-time downloads
All-time downloads
853K
Public
Repo size
53.2 GB
Likes
464
Trending 1
Click a slice to open those files.
.safetensors53 GB · 100%
From the Hugging Face model README
control_context_scale artifacts.control_layers used instead of control_noise_refiner), which caused double forward pass and slow inference. Speed restored in v2.1.| Name | Description |
|---|---|
| Z-Image-Turbo-Fun-Controlnet-Union-2.1-2602-8steps.safetensors | Supports multiple control conditions (Canny, Depth, Pose, MLSD, Hed, Scribble, and Gray). |
| Z-Image-Turbo-Fun-Controlnet-Union-2.1-lite-2602-8steps.safetensors | Same training scheme as the 2601 version, but with control applied to fewer layers. Supports multiple control conditions (Canny, Depth, Pose, MLSD, Hed, Scribble, and Gray). |
| Name | Description |
|---|---|
| Z-Image-Turbo-Fun-Controlnet-Union-2.1-2601-8steps.safetensors | Compared to the old version, this model uses more diverse masks, a more reasonable training schedule, and multi-resolution control images (512–1536) instead of single resolution (512). This reduces artifacts and mask information leakage while improving robustness. Supports multiple control conditions (Canny, Depth, Pose, MLSD, Hed, and Scribble). |
| Z-Image-Turbo-Fun-Controlnet-Tile-2.1-2601-8steps.safetensors | Compared to the old version, uses higher training resolution and a more refined distillation schedule, reducing bright spots and artifacts. |
| Z-Image-Turbo-Fun-Controlnet-Union-2.1-lite-2601-8steps.safetensors | Same training scheme as the 2601 version, but with control applied to fewer layers, resulting in weaker control. This allows for larger control_context_scale values with more natural results, and is also better suited for lower-spec machines. Supports multiple control conditions (Canny, Depth, Pose, MLSD, Hed, and Scribble). |
| Z-Image-Turbo-Fun-Controlnet-Tile-2.1-lite-2601-8steps.safetensors | Same training scheme as the 2601 version, but with control applied to fewer layers, resulting in weaker control. Allows larger control_context_scale values with more natural results, and better suits lower-spec machines. |
| Name | Description |
|---|---|
| Z-Image-Turbo-Fun-Controlnet-Union-2.1-8steps.safetensors | Distilled from version 2.1 using an 8-step distillation algorithm. Compared to version 2.1, 8-step prediction yields clearer images with more reasonable composition. Supports Canny, Depth, Pose, MLSD, and Hed. |
| Z-Image-Turbo-Fun-Controlnet-Tile-2.1-8steps.safetensors | A Tile model trained on high-definition datasets (up to 2048×2048) for super-resolution, distilled using an 8-step algorithm. 8-step prediction is recommended. |
| Z-Image-Turbo-Fun-Controlnet-Union-2.1.safetensors | A retrained model fixing the typo in version 2.0, with faster single-step speed. Supports Canny, Depth, Pose, MLSD, and Hed. However, like version 2.0, some acceleration capability was lost during training, requiring more steps and cfg. |
| Z-Image-Turbo-Fun-Controlnet-Union-2.0.safetensors | ControlNet weights for Z-Image-Turbo. Compared to version 1.0, more layers are modified with longer training. However, a code typo caused layer blocks to forward twice, resulting in slower speed. Supports Canny, Depth, Pose, MLSD, and Hed. Some acceleration capability was lost during training, requiring more steps. |
control_context_scale for better image continuity.control_context_scale values may require more inference steps for better results, likely because the control model has not been distilled.control_context_scale (optimal range: 0.65–1.00) for stronger control and better detail preservation. A detailed prompt is highly recommended for stability.The old 8-steps model had bright spots/artifacts when the control_context_scale was too large, while the new version does not.
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;"> <tr> <td>Z-Image-Turbo-Fun-Controlnet-Union-2.1-8steps</td> <td>Z-Image-Turbo-Fun-Controlnet-Union-2.1-2601-8steps</td> </tr> <tr> <td><img src="results/hed_2_1.png" width="100%" /></td> <td><img src="results/hed_2_1_2601.png" width="100%" /></td> </tr> </table>The old 8-steps model sometimes learned the mask information and tended to completely fill the mask during removal, while the new version does not.
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;"> <tr> <td>Z-Image-Turbo-Fun-Controlnet-Union-2.1-8steps</td> <td>Z-Image-Turbo-Fun-Controlnet-Union-2.1-2601-8steps</td> </tr> <tr> <td><img src="results/mask_2_1.png" width="100%" /></td> <td><img src="results/mask_2_1_2601.png" width="100%" /></td> </tr> </table>8 steps results:
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;"> <tr> <td>Z-Image-Turbo-Fun-Controlnet-Union-2.1-8steps</td> <td>Z-Image-Turbo-Fun-Controlnet-Union-2.1</td> </tr> <tr> <td><img src="results/8steps.png" width="100%" /></td> <td><img src="results/nsteps.png" width="100%" /></td> </tr> </table>Shares the same training scheme as the 2601 version, but with control applied to fewer layers, resulting in weaker control. This allows for larger control_context_scale values with more natural results, and is also better suited for lower-spec machines.
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;"> <tr> <td>Pose</td> <td>Output</td> </tr> <tr> <td><img src="asset/pose.jpg" width="100%" /></td> <td><img src="results/pose_lite.png" width="100%" /></td> </tr> </table> <table border="0" style="width: 100%; text-align: left; margin-top: 20px;"> <tr> <td>Pose</td> <td>Output</td> </tr> <tr> <td><img src="asset/pose2.jpg" width="100%" /></td> <td><img src="results/pose2_lite.png" width="100%" /></td> </tr> </table> <table border="0" style="width: 100%; text-align: left; margin-top: 20px;"> <tr> <td>Canny</td> <td>Output</td> </tr> <tr> <td><img src="asset/canny.jpg" width="100%" /></td> <td><img src="results/canny_lite.png" width="100%" /></td> </tr> </table> <table border="0" style="width: 100%; text-align: left; margin-top: 20px;"> <tr> <td>Depth</td> <td>Output</td> </tr> <tr> <td><img src="asset/depth.jpg" width="100%" /></td> <td><img src="results/depth_lite.png" width="100%" /></td> </tr>Go to the VideoX-Fun repository for more details.
Please clone the VideoX-Fun repository and create the required directories:
# Clone the code
git clone https://github.com/aigc-apps/VideoX-Fun.git
# Enter VideoX-Fun's directory
cd VideoX-Fun
# Create model directories
mkdir -p models/Diffusion_Transformer
mkdir -p models/Personalized_Model
Then download the weights into models/Diffusion_Transformer and models/Personalized_Model.
📦 models/
├── 📂 Diffusion_Transformer/
│ └── 📂 Z-Image-Turbo/
├── 📂 Personalized_Model/
│ ├── 📦 Z-Image-Turbo-Fun-Controlnet-Union-2.1.safetensors
│ ├── 📦 Z-Image-Turbo-Fun-Controlnet-Union-2.1-8steps.safetensors
│ └── 📦 Z-Image-Turbo-Fun-Controlnet-Tile-2.1-8steps.safetensors
Then run the file examples/z_image_fun/predict_t2i_control_2.1.py and examples/z_image_fun/predict_i2i_inpaint_2.1.py.
The table below shows the generation results under different combinations of Diffusion steps and Control Scale strength:
| Diffusion Steps | Scale 0.65 | Scale 0.70 | Scale 0.75 | Scale 0.8 | Scale 0.9 | Scale 1.0 |
|---|---|---|---|---|---|---|
| 9 | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 10 | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 20 | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 30 | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 40 | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
Parameter Description:
Diffusion Steps: Number of iteration steps for the diffusion model (9, 10, 20, 30, 40) Control Scale: Control strength coefficient (0.65 - 1.0)
</details>