bubbliiiing commited on
Commit
d47c43f
Β·
1 Parent(s): f92b3da

Update Weights

Browse files
.gitattributes CHANGED
@@ -1,3 +1,5 @@
 
 
1
  *.7z filter=lfs diff=lfs merge=lfs -text
2
  *.arrow filter=lfs diff=lfs merge=lfs -text
3
  *.bin filter=lfs diff=lfs merge=lfs -text
 
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
README.md CHANGED
@@ -1,3 +1,150 @@
1
  ---
2
  license: apache-2.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
  ---
4
+
5
+ # Z-Image-Fun-Controlnet-Union-2.1
6
+
7
+ [![Github](https://img.shields.io/badge/🎬%20Code-VideoX_Fun-blue)](https://github.com/aigc-apps/VideoX-Fun)
8
+
9
+ ## Model Card
10
+
11
+ | Name | Description |
12
+ |--|--|
13
+ | Z-Image-Fun-Controlnet-Union-2.1.safetensors | ControlNet weights for Z-Image. The model supports multiple control conditions such as Canny, Depth, Pose, MLSD, Scribble, Hed and Gray. This ControlNet is added on 15 layer blocks and 2 refiner layer blocks. |
14
+ | Z-Image-Fun-Controlnet-Union-2.1-lite.safetensors | Uses the same training scheme as the 2601 version, but compared to the large version of the model, fewer layers have control added, resulting in weaker control conditions. This makes it suitable for larger control_context_scale values, and the generation results appear more natural. It is also suitable for lower-spec machines. |
15
+
16
+ ## Model Features
17
+ - This ControlNet is added on 15 layer blocks and 2 refiner layer blocks (Lite models are added on 3 layer blocks and 2 refiner blocks). It supports multiple control conditionsβ€”including Canny, Depth, Pose, MLSD, Scribble, Hed and Gray can be used like a standard ControlNet.
18
+ - Inpainting mode is also supported.
19
+ - You can adjust control_context_scale for stronger control and better detail preservation. For better stability, we highly recommend using a detailed prompt. The optimal range for control_context_scale is from 0.65 to 0.90.
20
+
21
+ ## Results
22
+
23
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
24
+ <tr>
25
+ <td>Pose + Inpaint</td>
26
+ <td>Output</td>
27
+ </tr>
28
+ <tr>
29
+ <td><img src="asset/inpaint.jpg" width="100%" /><img src="asset/mask.jpg" width="100%" /></td>
30
+ <td><img src="results/inpaint.png" width="100%" /></td>
31
+ </tr>
32
+ </table>
33
+
34
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
35
+ <tr>
36
+ <td>Pose + Inpaint</td>
37
+ <td>Output</td>
38
+ </tr>
39
+ <tr>
40
+ <td><img src="asset/inpaint.jpg" width="100%" /><img src="asset/mask.jpg" width="100%" /><img src="asset/pose.jpg" width="100%" /></td>
41
+ <td><img src="results/pose_inpaint.png" width="100%" /></td>
42
+ </tr>
43
+ </table>
44
+
45
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
46
+ <tr>
47
+ <td>Pose</td>
48
+ <td>Output</td>
49
+ </tr>
50
+ <tr>
51
+ <td><img src="asset/pose2.jpg" width="100%" /></td>
52
+ <td><img src="results/pose2.png" width="100%" /></td>
53
+ </tr>
54
+ </table>
55
+
56
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
57
+ <tr>
58
+ <td>Pose</td>
59
+ <td>Output</td>
60
+ </tr>
61
+ <tr>
62
+ <td><img src="asset/pose.jpg" width="100%" /></td>
63
+ <td><img src="results/pose.png" width="100%" /></td>
64
+ </tr>
65
+ </table>
66
+
67
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
68
+ <tr>
69
+ <td>Pose</td>
70
+ <td>Output</td>
71
+ </tr>
72
+ <tr>
73
+ <td><img src="asset/pose3.jpg" width="100%" /></td>
74
+ <td><img src="results/pose3.png" width="100%" /></td>
75
+ </tr>
76
+ </table>
77
+
78
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
79
+ <tr>
80
+ <td>Canny</td>
81
+ <td>Output</td>
82
+ </tr>
83
+ <tr>
84
+ <td><img src="asset/canny.jpg" width="100%" /></td>
85
+ <td><img src="results/canny.png" width="100%" /></td>
86
+ </tr>
87
+ </table>
88
+
89
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
90
+ <tr>
91
+ <td>HED</td>
92
+ <td>Output</td>
93
+ </tr>
94
+ <tr>
95
+ <td><img src="asset/hed.jpg" width="100%" /></td>
96
+ <td><img src="results/hed.png" width="100%" /></td>
97
+ </tr>
98
+ </table>
99
+
100
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
101
+ <tr>
102
+ <td>Depth</td>
103
+ <td>Output</td>
104
+ </tr>
105
+ <tr>
106
+ <td><img src="asset/depth.jpg" width="100%" /></td>
107
+ <td><img src="results/depth.png" width="100%" /></td>
108
+ </tr>
109
+ </table>
110
+
111
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
112
+ <tr>
113
+ <td>Depth</td>
114
+ <td>Output</td>
115
+ </tr>
116
+ <tr>
117
+ <td><img src="asset/gray.jpg" width="100%" /></td>
118
+ <td><img src="results/gray.png" width="100%" /></td>
119
+ </tr>
120
+ </table>
121
+
122
+ ## Inference
123
+ Go to the VideoX-Fun repository for more details.
124
+
125
+ Please clone the VideoX-Fun repository and create the required directories:
126
+
127
+ ```sh
128
+ # Clone the code
129
+ git clone https://github.com/aigc-apps/VideoX-Fun.git
130
+
131
+ # Enter VideoX-Fun's directory
132
+ cd VideoX-Fun
133
+
134
+ # Create model directories
135
+ mkdir -p models/Diffusion_Transformer
136
+ mkdir -p models/Personalized_Model
137
+ ```
138
+
139
+ Then download the weights into models/Diffusion_Transformer and models/Personalized_Model.
140
+
141
+ ```
142
+ πŸ“¦ models/
143
+ β”œβ”€β”€ πŸ“‚ Diffusion_Transformer/
144
+ β”‚ └── πŸ“‚ Z-Image/
145
+ β”œβ”€β”€ πŸ“‚ Personalized_Model/
146
+ β”‚ β”œβ”€β”€ πŸ“¦ Z-Image-Fun-Controlnet-Union-2.1.safetensors
147
+ β”‚ └── πŸ“¦ Z-Image-Fun-Controlnet-Union-2.1-lite.safetensors
148
+ ```
149
+
150
+ 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`.
Z-Image-Fun-Controlnet-Union-2.1-lite.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c3e2265d1c301b444e83d668a2d12416b0b6d91cd2d18bc11eec12a7fc335cb
3
+ size 2016627488
Z-Image-Fun-Controlnet-Union-2.1.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2393b0c58c52a12134f6ffd96ff9b6ea3c80bb233665fb2c3b9aebcee71ae3e4
3
+ size 6712485600
asset/canny.jpg ADDED

Git LFS Details

  • SHA256: 800790ae2e890e99b75dc1fc0a05142d22dbcdd9a961d2bc15222a4356683723
  • Pointer size: 131 Bytes
  • Size of remote file: 278 kB
asset/depth.png ADDED

Git LFS Details

  • SHA256: 66b40d78792c3dbef37ddc9ca0441d1d347b1d58a42160e4c12ec4ef61d11f55
  • Pointer size: 130 Bytes
  • Size of remote file: 94.2 kB
asset/gray.jpg ADDED

Git LFS Details

  • SHA256: 6bd84884bc99e86aa46618bf182d1dbcb5c6ec41fbd78bd6cbad725e44d5b179
  • Pointer size: 132 Bytes
  • Size of remote file: 1.06 MB
asset/hed.jpg ADDED

Git LFS Details

  • SHA256: c10f91fe342b439d1e99fe703e313aa09315b59cf7362c43e2e42910f7c681d7
  • Pointer size: 131 Bytes
  • Size of remote file: 188 kB
asset/inpaint.jpg ADDED

Git LFS Details

  • SHA256: 05cae403843d306d59d43854d04abeb830fd6fd66b7898b52ef94ee4f5fc849b
  • Pointer size: 131 Bytes
  • Size of remote file: 583 kB
asset/low_res.jpg ADDED

Git LFS Details

  • SHA256: 0203f9d2bf8f65fc05a9be290409e37eaa00073e4a73355939f144bdf9439ec9
  • Pointer size: 130 Bytes
  • Size of remote file: 44.4 kB
asset/mask.jpg ADDED

Git LFS Details

  • SHA256: c2012f7a9ed8eeefc75df2e7606eb1457c74d5a05a5f3a8d2c3ee6b287624d23
  • Pointer size: 130 Bytes
  • Size of remote file: 11.4 kB
asset/pose.jpg ADDED

Git LFS Details

  • SHA256: c3543f29a838b77933dc439f8520c5eff1bb2075315afbe6eb4b309c477a31f0
  • Pointer size: 130 Bytes
  • Size of remote file: 43.5 kB
asset/pose2.jpg ADDED

Git LFS Details

  • SHA256: 82005b3e813d714e3a4cf8dddbeddad5047978d6aca78c6a121ad1e7c0ec4b4e
  • Pointer size: 130 Bytes
  • Size of remote file: 94.6 kB
asset/pose3.jpg ADDED

Git LFS Details

  • SHA256: a12c26c86b54371438ca7f5a134a158a81f7e7b99aa7c4e699ee161e95cd67e4
  • Pointer size: 130 Bytes
  • Size of remote file: 65.9 kB
results/canny.png ADDED

Git LFS Details

  • SHA256: 63c67cdda88a616bfe1e2264304c2c4b4598ea8bfd1750dff20d6427c65b10e1
  • Pointer size: 132 Bytes
  • Size of remote file: 2.25 MB
results/depth.png ADDED

Git LFS Details

  • SHA256: 3935b0a1121e49f82b89159641b0e1e95607331799cc8eb5fd96a376e47b4090
  • Pointer size: 132 Bytes
  • Size of remote file: 1.47 MB
results/gray.png ADDED

Git LFS Details

  • SHA256: 4b781c2c4b7442cf69609453ad167303973aaab1f37440c3f9b11aa8e4a56dec
  • Pointer size: 132 Bytes
  • Size of remote file: 3.04 MB
results/hed.png ADDED

Git LFS Details

  • SHA256: 2d1e4eab9901579e56f8fdccb986ecb110d875158987d4e1143e8462fade9ccb
  • Pointer size: 132 Bytes
  • Size of remote file: 1.6 MB
results/inpaint.png ADDED

Git LFS Details

  • SHA256: df27932f22d02375293b827981d94dafd70683982825e681f9d4fcdb974d9f4c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.91 MB
results/pose.png ADDED

Git LFS Details

  • SHA256: abb18d42083cc384cdb3a34782dc892a6768c00e7d1295dbf4fb8d3d9d2c423f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.76 MB
results/pose2.png ADDED

Git LFS Details

  • SHA256: 874e197df7b7d4dbef3083c10e9bad70efbebfaf68bba3ecdba1d920ab8eab1c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.83 MB
results/pose3.png ADDED

Git LFS Details

  • SHA256: d77ba531748b0f42168f2ddef07cd4dd96fe7369b0db56fb90eac23c7ccc5bba
  • Pointer size: 132 Bytes
  • Size of remote file: 2.53 MB
results/pose_inpaint.png ADDED

Git LFS Details

  • SHA256: d1e38c19824182654764ea5ce704e34821a3057e9e2ff955123a36653f64b1b7
  • Pointer size: 132 Bytes
  • Size of remote file: 1.8 MB