Commit ·
a453a82
0
Parent(s):
Duplicate from alibaba-pai/Z-Image-Fun-Lora-Distill
Browse filesCo-authored-by: Bubbliiiing <bubbliiiing@users.noreply.huggingface.co>
This view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +37 -0
- README.md +250 -0
- Z-Image-Fun-Lora-Distill-2-Steps-2603-ComfyUI.safetensors +3 -0
- Z-Image-Fun-Lora-Distill-2-Steps-2603.safetensors +3 -0
- Z-Image-Fun-Lora-Distill-4-Steps-2602-ComfyUI.safetensors +3 -0
- Z-Image-Fun-Lora-Distill-4-Steps-2602.safetensors +3 -0
- Z-Image-Fun-Lora-Distill-4-Steps-2603-ComfyUI.safetensors +3 -0
- Z-Image-Fun-Lora-Distill-4-Steps-2603.safetensors +3 -0
- Z-Image-Fun-Lora-Distill-8-Steps-2602-ComfyUI.safetensors +3 -0
- Z-Image-Fun-Lora-Distill-8-Steps-2602.safetensors +3 -0
- Z-Image-Fun-Lora-Distill-8-Steps-2603-ComfyUI.safetensors +3 -0
- Z-Image-Fun-Lora-Distill-8-Steps-2603.safetensors +3 -0
- Z-Image-Fun-Lora-Distill-8-Steps.safetensors +3 -0
- asset/canny.jpg +3 -0
- asset/depth.jpg +3 -0
- asset/gray.jpg +3 -0
- asset/hed.jpg +3 -0
- asset/inpaint.jpg +3 -0
- asset/low_res.jpg +3 -0
- asset/mask.jpg +3 -0
- asset/pose.jpg +3 -0
- asset/pose2.jpg +3 -0
- asset/pose3.jpg +3 -0
- asset/pose4.jpg +3 -0
- results/2602.png +3 -0
- results/2602_1_4steps.png +3 -0
- results/2602_1_8steps.png +3 -0
- results/2602_2_4steps.png +3 -0
- results/2602_2_8steps.png +3 -0
- results/2602_3_4steps.png +3 -0
- results/2602_3_8steps.png +3 -0
- results/2602_4_4steps.png +3 -0
- results/2602_4_8steps.png +3 -0
- results/2602_5_4steps.png +3 -0
- results/2602_5_8steps.png +3 -0
- results/2603.png +3 -0
- results/canny.png +3 -0
- results/canny_2602_4steps.png +3 -0
- results/canny_2602_8steps.png +3 -0
- results/canny_8steps.png +3 -0
- results/gray.png +3 -0
- results/gray_2602_4steps.png +3 -0
- results/gray_2602_8steps.png +3 -0
- results/gray_8steps.png +3 -0
- results/inpaint.png +3 -0
- results/inpaint_2602_4steps.png +3 -0
- results/inpaint_2602_8steps.png +3 -0
- results/inpaint_8steps.png +3 -0
- results/old_1_8steps.png +3 -0
- results/old_2_8steps.png +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: videox_fun
|
| 4 |
+
pipeline_tag: text-to-image
|
| 5 |
+
tags:
|
| 6 |
+
- lora
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# Z-Image-Fun-Lora-Distill
|
| 10 |
+
|
| 11 |
+
[](https://github.com/aigc-apps/VideoX-Fun)
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
## Model Card
|
| 15 |
+
|
| 16 |
+
### a. 2603 Models
|
| 17 |
+
|
| 18 |
+
| Name | Description |
|
| 19 |
+
|--|--|
|
| 20 |
+
| Z-Image-Fun-Lora-Distill-2-Steps-2603.safetensors | A Distill LoRA for Z-Image that distills both steps and CFG. It requires only 2 steps instead of 8. Due to the random timesteps strategy, it is better adapted to sigmas below 0.500. The recommended sigma for the second step is between 0.800 and 0.500. A larger LoRA strength is recommended. |
|
| 21 |
+
| Z-Image-Fun-Lora-Distill-2-Steps-2603-ComfyUI.safetensors | ComfyUI version of Z-Image-Fun-Lora-Distill-2-Steps-2603.safetensors |
|
| 22 |
+
| Z-Image-Fun-Lora-Distill-4-Steps-2603.safetensors | A Distill LoRA for Z-Image that distills both steps and CFG. It requires only 4 steps instead of 8 steps. Due to the addition of a random timesteps strategy, it is better adapted to cases where sigmas are less than 0.500. |
|
| 23 |
+
| Z-Image-Fun-Lora-Distill-4-Steps-2603-ComfyUI.safetensors | ComfyUI version of Z-Image-Fun-Lora-Distill-4-Steps-2603.safetensors |
|
| 24 |
+
| Z-Image-Fun-Lora-Distill-8-Steps-2603.safetensors | A Distill LoRA for Z-Image that distills both steps and CFG. Compared to Z-Image-Fun-Lora-Distill-8-Steps-2602.safetensors, due to the addition of a random timesteps strategy, it is better adapted to cases where sigmas are less than 0.500. |
|
| 25 |
+
| Z-Image-Fun-Lora-Distill-8-Steps-2603-ComfyUI.safetensors | ComfyUI version of Z-Image-Fun-Lora-Distill-8-Steps-2603.safetensors |
|
| 26 |
+
|
| 27 |
+
### b. 2602 Models && Models Before 2602
|
| 28 |
+
|
| 29 |
+
| Name | Description |
|
| 30 |
+
|--|--|
|
| 31 |
+
| Z-Image-Fun-Lora-Distill-4-Steps-2602.safetensors | A Distill LoRA for Z-Image that distills both steps and CFG. Compared to Z-Image-Fun-Lora-Distill-8-Steps.safetensors, it requires only 4 steps instead of 8 steps, its colors are more consistent with the original model, and the skin texture is better. |
|
| 32 |
+
| Z-Image-Fun-Lora-Distill-4-Steps-2602-ComfyUI.safetensors | ComfyUI version of Z-Image-Fun-Lora-Distill-4-Steps-2602.safetensors |
|
| 33 |
+
| Z-Image-Fun-Lora-Distill-8-Steps-2602.safetensors | A Distill LoRA for Z-Image that distills both steps and CFG. Compared to Z-Image-Fun-Lora-Distill-8-Steps.safetensors, its colors are more consistent with the original model, and the skin texture is better. |
|
| 34 |
+
| Z-Image-Fun-Lora-Distill-8-Steps-2602-ComfyUI.safetensors | ComfyUI version of Z-Image-Fun-Lora-Distill-8-Steps-2602.safetensors |
|
| 35 |
+
| Z-Image-Fun-Lora-Distill-8-Steps.safetensors | This is a Distill LoRA for Z-Image that distills both steps and CFG. This model does not require CFG and uses 8 steps for inference. |
|
| 36 |
+
|
| 37 |
+
## Model Features
|
| 38 |
+
- This is a Distill LoRA for Z-Image that distills both steps and CFG. It does not use any Z-Image-Turbo related weights and is trained from scratch. It is compatible with other Z-Image LoRAs and [Controls](https://huggingface.co/alibaba-pai/Z-Image-Fun-Controlnet-Union-2.1).
|
| 39 |
+
- This model will slightly reduce the output quality and change the output composition of the model. For specific comparisons, please refer to the Results section.
|
| 40 |
+
- The purpose of this model is to provide fast generation compatibility for Z-Image derivative models, not to replace Z-Image-Turbo.
|
| 41 |
+
|
| 42 |
+
## Results
|
| 43 |
+
### The difference between the 2603 version model and the 2602 version model
|
| 44 |
+
|
| 45 |
+
The 2602 model tends to produce blurry images with sigmas below 0.500, as the distillation model was not trained on certain steps. The 2603 model introduces a random timesteps strategy, making it better adapted to sigmas below 0.500.
|
| 46 |
+
|
| 47 |
+
As shown below, when using kl_optimal, many sigmas fall below 0.500. The 2603 model handles these cases correctly, while the 2602 model does not. Note that although kl_optimal is used in the figure, we still recommend using the simple scheduler for inference.
|
| 48 |
+
|
| 49 |
+
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
|
| 50 |
+
<tr>
|
| 51 |
+
<td>Z-Image-Fun-Lora-Distill-8-Steps-2602</td>
|
| 52 |
+
<td>Z-Image-Fun-Lora-Distill-8-Steps-2603</td>
|
| 53 |
+
</tr>
|
| 54 |
+
<tr>
|
| 55 |
+
<td><img src="results/2602.png" width="100%" /></td>
|
| 56 |
+
<td><img src="results/2603.png" width="100%" /></td>
|
| 57 |
+
</tr>
|
| 58 |
+
</table>
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
### The difference between the 2602 version model and the previous model
|
| 62 |
+
|
| 63 |
+
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
|
| 64 |
+
<tr>
|
| 65 |
+
<td>Z-Image-Fun-Lora-Distill-8-Steps-2602</td>
|
| 66 |
+
<td>Z-Image-Fun-Lora-Distill-4-Steps-2602</td>
|
| 67 |
+
<td>Z-Image-Fun-Lora-Distill-8-Steps</td>
|
| 68 |
+
</tr>
|
| 69 |
+
<tr>
|
| 70 |
+
<td><img src="results/2602_1_8steps.png" width="100%" /><img src="results/2602_2_8steps.png" width="100%" /><img src="results/2602_3_8steps.png" width="100%" /><img src="results/2602_4_8steps.png" width="100%" /><img src="results/2602_5_8steps.png" width="100%" /></td>
|
| 71 |
+
<td><img src="results/2602_1_4steps.png" width="100%" /><img src="results/2602_2_4steps.png" width="100%" /><img src="results/2602_3_4steps.png" width="100%" /><img src="results/2602_4_4steps.png" width="100%" /><img src="results/2602_5_4steps.png" width="100%" /></td>
|
| 72 |
+
<td><img src="results/old_1_8steps.png" width="100%" /><img src="results/old_2_8steps.png" width="100%" /><img src="results/old_3_8steps.png" width="100%" /><img src="results/old_4_8steps.png" width="100%" /><img src="results/old_5_8steps.png" width="100%" /></td>
|
| 73 |
+
</tr>
|
| 74 |
+
</table>
|
| 75 |
+
|
| 76 |
+
### Work itself
|
| 77 |
+
|
| 78 |
+
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
|
| 79 |
+
<tr>
|
| 80 |
+
<td>Output 25 steps</td>
|
| 81 |
+
<td>Output 8-Steps-2602</td>
|
| 82 |
+
<td>Output 4-Steps-2602</td>
|
| 83 |
+
</tr>
|
| 84 |
+
<tr>
|
| 85 |
+
<td><img src="results/output4.png" width="100%" /></td>
|
| 86 |
+
<td><img src="results/output4_2602_8steps.png" width="100%" /></td>
|
| 87 |
+
<td><img src="results/output4_2602_4steps.png" width="100%" /></td>
|
| 88 |
+
</tr>
|
| 89 |
+
</table>
|
| 90 |
+
|
| 91 |
+
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
|
| 92 |
+
<tr>
|
| 93 |
+
<td>Output 25 steps</td>
|
| 94 |
+
<td>Output 8-Steps-2602</td>
|
| 95 |
+
<td>Output 4-Steps-2602</td>
|
| 96 |
+
</tr>
|
| 97 |
+
<tr>
|
| 98 |
+
<td><img src="results/output1.png" width="100%" /></td>
|
| 99 |
+
<td><img src="results/output1_2602_8steps.png" width="100%" /></td>
|
| 100 |
+
<td><img src="results/output1_2602_4steps.png" width="100%" /></td>
|
| 101 |
+
</tr>
|
| 102 |
+
</table>
|
| 103 |
+
|
| 104 |
+
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
|
| 105 |
+
<tr>
|
| 106 |
+
<td>Output 25 steps</td>
|
| 107 |
+
<td>Output 8-Steps-2602</td>
|
| 108 |
+
<td>Output 4-Steps-2602</td>
|
| 109 |
+
</tr>
|
| 110 |
+
<tr>
|
| 111 |
+
<td><img src="results/output2.png" width="100%" /></td>
|
| 112 |
+
<td><img src="results/output2_2602_8steps.png" width="100%" /></td>
|
| 113 |
+
<td><img src="results/output2_2602_4steps.png" width="100%" /></td>
|
| 114 |
+
</tr>
|
| 115 |
+
</table>
|
| 116 |
+
|
| 117 |
+
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
|
| 118 |
+
<tr>
|
| 119 |
+
<td>Output 25 steps</td>
|
| 120 |
+
<td>Output 8-Steps-2602</td>
|
| 121 |
+
<td>Output 4-Steps-2602</td>
|
| 122 |
+
</tr>
|
| 123 |
+
<tr>
|
| 124 |
+
<td><img src="results/output3.png" width="100%" /></td>
|
| 125 |
+
<td><img src="results/output3_2602_8steps.png" width="100%" /></td>
|
| 126 |
+
<td><img src="results/output3_2602_4steps.png" width="100%" /></td>
|
| 127 |
+
</tr>
|
| 128 |
+
</table>
|
| 129 |
+
|
| 130 |
+
### Work with Controlnet
|
| 131 |
+
|
| 132 |
+
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
|
| 133 |
+
<tr>
|
| 134 |
+
<td>Pose + Inpaint</td>
|
| 135 |
+
<td>Output 25 steps</td>
|
| 136 |
+
<td>Output 8-Steps-2602</td>
|
| 137 |
+
<td>Output 4-Steps-2602</td>
|
| 138 |
+
</tr>
|
| 139 |
+
<tr>
|
| 140 |
+
<td><img src="asset/inpaint.jpg" width="100%" /><img src="asset/mask.jpg" width="100%" /></td>
|
| 141 |
+
<td><img src="results/inpaint.png" width="100%" /></td>
|
| 142 |
+
<td><img src="results/inpaint_2602_8steps.png" width="100%" /></td>
|
| 143 |
+
<td><img src="results/inpaint_2602_4steps.png" width="100%" /></td>
|
| 144 |
+
</tr>
|
| 145 |
+
</table>
|
| 146 |
+
|
| 147 |
+
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
|
| 148 |
+
<tr>
|
| 149 |
+
<td>Pose + Inpaint</td>
|
| 150 |
+
<td>Output 25 steps</td>
|
| 151 |
+
<td>Output 8-Steps-2602</td>
|
| 152 |
+
<td>Output 4-Steps-2602</td>
|
| 153 |
+
</tr>
|
| 154 |
+
<tr>
|
| 155 |
+
<td><img src="asset/inpaint.jpg" width="100%" /><img src="asset/mask.jpg" width="100%" /><img src="asset/pose.jpg" width="100%" /></td>
|
| 156 |
+
<td><img src="results/pose_inpaint.png" width="100%" /></td>
|
| 157 |
+
<td><img src="results/pose_inpaint_2602_8steps.png" width="100%" /></td>
|
| 158 |
+
<td><img src="results/pose_inpaint_2602_4steps.png" width="100%" /></td>
|
| 159 |
+
</tr>
|
| 160 |
+
</table>
|
| 161 |
+
|
| 162 |
+
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
|
| 163 |
+
<tr>
|
| 164 |
+
<td>Pose</td>
|
| 165 |
+
<td>Output 25 steps</td>
|
| 166 |
+
<td>Output 8-Steps-2602</td>
|
| 167 |
+
<td>Output 4-Steps-2602</td>
|
| 168 |
+
</tr>
|
| 169 |
+
<tr>
|
| 170 |
+
<td><img src="asset/pose2.jpg" width="100%" /></td>
|
| 171 |
+
<td><img src="results/pose2.png" width="100%" /></td>
|
| 172 |
+
<td><img src="results/pose2_2602_8steps.png" width="100%" /></td>
|
| 173 |
+
<td><img src="results/pose2_2602_4steps.png" width="100%" /></td>
|
| 174 |
+
</tr>
|
| 175 |
+
</table>
|
| 176 |
+
|
| 177 |
+
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
|
| 178 |
+
<tr>
|
| 179 |
+
<td>Canny</td>
|
| 180 |
+
<td>Output</td>
|
| 181 |
+
<td>Output 8-Steps-2602</td>
|
| 182 |
+
<td>Output 4-Steps-2602</td>
|
| 183 |
+
</tr>
|
| 184 |
+
<tr>
|
| 185 |
+
<td><img src="asset/canny.jpg" width="100%" /></td>
|
| 186 |
+
<td><img src="results/canny.png" width="100%" /></td>
|
| 187 |
+
<td><img src="results/canny_2602_8steps.png" width="100%" /></td>
|
| 188 |
+
<td><img src="results/canny_2602_4steps.png" width="100%" /></td>
|
| 189 |
+
</tr>
|
| 190 |
+
</table>
|
| 191 |
+
|
| 192 |
+
<table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
|
| 193 |
+
<tr>
|
| 194 |
+
<td>Depth</td>
|
| 195 |
+
<td>Output</td>
|
| 196 |
+
<td>Output 8-Steps-2602</td>
|
| 197 |
+
<td>Output 4-Steps-2602</td>
|
| 198 |
+
</tr>
|
| 199 |
+
<tr>
|
| 200 |
+
<td><img src="asset/gray.jpg" width="100%" /></td>
|
| 201 |
+
<td><img src="results/gray.png" width="100%" /></td>
|
| 202 |
+
<td><img src="results/gray_2602_8steps.png" width="100%" /></td>
|
| 203 |
+
<td><img src="results/gray_2602_4steps.png" width="100%" /></td>
|
| 204 |
+
</tr>
|
| 205 |
+
</table>
|
| 206 |
+
|
| 207 |
+
## Inference
|
| 208 |
+
Go to the VideoX-Fun repository for more details.
|
| 209 |
+
|
| 210 |
+
Please clone the VideoX-Fun repository and create the required directories:
|
| 211 |
+
|
| 212 |
+
```sh
|
| 213 |
+
# Clone the code
|
| 214 |
+
git clone https://github.com/aigc-apps/VideoX-Fun.git
|
| 215 |
+
|
| 216 |
+
# Enter VideoX-Fun's directory
|
| 217 |
+
cd VideoX-Fun
|
| 218 |
+
|
| 219 |
+
# Create model directories
|
| 220 |
+
mkdir -p models/Diffusion_Transformer
|
| 221 |
+
mkdir -p models/Personalized_Model
|
| 222 |
+
```
|
| 223 |
+
|
| 224 |
+
Then download the weights into models/Diffusion_Transformer and models/Personalized_Model.
|
| 225 |
+
|
| 226 |
+
```
|
| 227 |
+
📦 models/
|
| 228 |
+
├── 📂 Diffusion_Transformer/
|
| 229 |
+
│ └── 📂 Z-Image/
|
| 230 |
+
├── 📂 Personalized_Model/
|
| 231 |
+
│ ├── 📦 Z-Image-Fun-Lora-Distill-4-Steps-2602.safetensors
|
| 232 |
+
│ ├── 📦 Z-Image-Fun-Lora-Distill-8-Steps-2602.safetensors
|
| 233 |
+
│ ├── 📦 Z-Image-Fun-Controlnet-Union-2.1.safetensors
|
| 234 |
+
│ └── 📦 Z-Image-Fun-Controlnet-Union-2.1-lite.safetensors
|
| 235 |
+
```
|
| 236 |
+
|
| 237 |
+
To run the model, **first** set the lora_path in `examples/z_image/predict_t2i.py` to:
|
| 238 |
+
`Personalized_Model/Z-Image-Fun-Lora-Distill-8-Steps.safetensors`
|
| 239 |
+
|
| 240 |
+
**Then**, run the file:
|
| 241 |
+
`examples/z_image/predict_t2i.py`
|
| 242 |
+
|
| 243 |
+
The following scripts are also supported:
|
| 244 |
+
- examples/z_image_fun/predict_t2i_control_2.1.py
|
| 245 |
+
- examples/z_image_fun/predict_i2i_inpaint_2.1.py
|
| 246 |
+
|
| 247 |
+
**Recommended Settings**:
|
| 248 |
+
- cfg = 1.0
|
| 249 |
+
- steps = 8
|
| 250 |
+
- lora_weight = 0.8 (suggested range: 0.7 ~ 0.9)
|
Z-Image-Fun-Lora-Distill-2-Steps-2603-ComfyUI.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d8095b1baa4b94986a40d3979c271ed40337ce6cad7eb312c73bf37ec0f35c0
|
| 3 |
+
size 568275120
|
Z-Image-Fun-Lora-Distill-2-Steps-2603.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e920b4b36e05dfa20b7c6f6caa8297597a55b75197b63dfb17baba6415cd6cfb
|
| 3 |
+
size 568272096
|
Z-Image-Fun-Lora-Distill-4-Steps-2602-ComfyUI.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9338c5b07eea1a52b81d4792bd572374ebd360e4db1eba644a16aa1f0d6db995
|
| 3 |
+
size 568275120
|
Z-Image-Fun-Lora-Distill-4-Steps-2602.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:266ab329adf56b4d4e27565e2eec989263e971770c1f141650124452150b91d1
|
| 3 |
+
size 568272096
|
Z-Image-Fun-Lora-Distill-4-Steps-2603-ComfyUI.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f883ecc3e33a2c70f926d3f1f17580f04379bfe2011c59fd09eadbe9211b1ea1
|
| 3 |
+
size 568275120
|
Z-Image-Fun-Lora-Distill-4-Steps-2603.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f2da844a1854ebfaf6494a92417916942df08a3ba7ac61af57db3cbf0ac1147
|
| 3 |
+
size 568272096
|
Z-Image-Fun-Lora-Distill-8-Steps-2602-ComfyUI.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e387b79e994a72c51fd90b657ed8890e85ac93c9dd6ccbc588b6057edf95f445
|
| 3 |
+
size 568275120
|
Z-Image-Fun-Lora-Distill-8-Steps-2602.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e6f1c6e7b3cac7161bd0cc2b9868067d3614f64dfef2da7fb587f108f01aa2a
|
| 3 |
+
size 568272096
|
Z-Image-Fun-Lora-Distill-8-Steps-2603-ComfyUI.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d04737b0fc145390730edc0e2032ca68ef6035a5aa5cd4af773ae7515e298270
|
| 3 |
+
size 568275120
|
Z-Image-Fun-Lora-Distill-8-Steps-2603.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce3c0133547e668a9a1b668bd0739d114a3c96daccb0d1c425e9041a14a51aba
|
| 3 |
+
size 568272096
|
Z-Image-Fun-Lora-Distill-8-Steps.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18172fcd081c5ec7187fbe81efe141c76fbd6019f9ca0624fc22f00b9d856fa1
|
| 3 |
+
size 200577236
|
asset/canny.jpg
ADDED
|
Git LFS Details
|
asset/depth.jpg
ADDED
|
Git LFS Details
|
asset/gray.jpg
ADDED
|
Git LFS Details
|
asset/hed.jpg
ADDED
|
Git LFS Details
|
asset/inpaint.jpg
ADDED
|
Git LFS Details
|
asset/low_res.jpg
ADDED
|
Git LFS Details
|
asset/mask.jpg
ADDED
|
Git LFS Details
|
asset/pose.jpg
ADDED
|
Git LFS Details
|
asset/pose2.jpg
ADDED
|
Git LFS Details
|
asset/pose3.jpg
ADDED
|
Git LFS Details
|
asset/pose4.jpg
ADDED
|
Git LFS Details
|
results/2602.png
ADDED
|
Git LFS Details
|
results/2602_1_4steps.png
ADDED
|
Git LFS Details
|
results/2602_1_8steps.png
ADDED
|
Git LFS Details
|
results/2602_2_4steps.png
ADDED
|
Git LFS Details
|
results/2602_2_8steps.png
ADDED
|
Git LFS Details
|
results/2602_3_4steps.png
ADDED
|
Git LFS Details
|
results/2602_3_8steps.png
ADDED
|
Git LFS Details
|
results/2602_4_4steps.png
ADDED
|
Git LFS Details
|
results/2602_4_8steps.png
ADDED
|
Git LFS Details
|
results/2602_5_4steps.png
ADDED
|
Git LFS Details
|
results/2602_5_8steps.png
ADDED
|
Git LFS Details
|
results/2603.png
ADDED
|
Git LFS Details
|
results/canny.png
ADDED
|
Git LFS Details
|
results/canny_2602_4steps.png
ADDED
|
Git LFS Details
|
results/canny_2602_8steps.png
ADDED
|
Git LFS Details
|
results/canny_8steps.png
ADDED
|
Git LFS Details
|
results/gray.png
ADDED
|
Git LFS Details
|
results/gray_2602_4steps.png
ADDED
|
Git LFS Details
|
results/gray_2602_8steps.png
ADDED
|
Git LFS Details
|
results/gray_8steps.png
ADDED
|
Git LFS Details
|
results/inpaint.png
ADDED
|
Git LFS Details
|
results/inpaint_2602_4steps.png
ADDED
|
Git LFS Details
|
results/inpaint_2602_8steps.png
ADDED
|
Git LFS Details
|
results/inpaint_8steps.png
ADDED
|
Git LFS Details
|
results/old_1_8steps.png
ADDED
|
Git LFS Details
|
results/old_2_8steps.png
ADDED
|
Git LFS Details
|