Commit 57ac673
Refactor OmniGen (huggingface#10771)
* OmniGen model.py
* update OmniGenTransformerModel
* omnigen pipeline
* omnigen pipeline
* update omnigen_pipeline
* test case for omnigen
* update omnigenpipeline
* update docs
* update docs
* offload_transformer
* enable_transformer_block_cpu_offload
* update docs
* reformat
* reformat
* reformat
* update docs
* update docs
* make style
* make style
* Update docs/source/en/api/models/omnigen_transformer.md
Co-authored-by: Steven Liu <[email protected]>
* Update docs/source/en/using-diffusers/omnigen.md
Co-authored-by: Steven Liu <[email protected]>
* Update docs/source/en/using-diffusers/omnigen.md
Co-authored-by: Steven Liu <[email protected]>
* update docs
* revert changes to examples/
* update OmniGen2DModel
* make style
* update test cases
* Update docs/source/en/api/pipelines/omnigen.md
Co-authored-by: Steven Liu <[email protected]>
* Update docs/source/en/using-diffusers/omnigen.md
Co-authored-by: Steven Liu <[email protected]>
* Update docs/source/en/using-diffusers/omnigen.md
Co-authored-by: Steven Liu <[email protected]>
* Update docs/source/en/using-diffusers/omnigen.md
Co-authored-by: Steven Liu <[email protected]>
* Update docs/source/en/using-diffusers/omnigen.md
Co-authored-by: Steven Liu <[email protected]>
* Update docs/source/en/using-diffusers/omnigen.md
Co-authored-by: Steven Liu <[email protected]>
* update docs
* typo
* Update src/diffusers/models/embeddings.py
Co-authored-by: hlky <[email protected]>
* Update src/diffusers/models/attention.py
Co-authored-by: hlky <[email protected]>
* Update src/diffusers/models/transformers/transformer_omnigen.py
Co-authored-by: hlky <[email protected]>
* Update src/diffusers/models/transformers/transformer_omnigen.py
Co-authored-by: hlky <[email protected]>
* Update src/diffusers/models/transformers/transformer_omnigen.py
Co-authored-by: hlky <[email protected]>
* Update src/diffusers/pipelines/omnigen/pipeline_omnigen.py
Co-authored-by: hlky <[email protected]>
* Update src/diffusers/pipelines/omnigen/pipeline_omnigen.py
Co-authored-by: hlky <[email protected]>
* Update src/diffusers/pipelines/omnigen/pipeline_omnigen.py
Co-authored-by: hlky <[email protected]>
* Update tests/pipelines/omnigen/test_pipeline_omnigen.py
Co-authored-by: hlky <[email protected]>
* Update tests/pipelines/omnigen/test_pipeline_omnigen.py
Co-authored-by: hlky <[email protected]>
* Update src/diffusers/pipelines/omnigen/pipeline_omnigen.py
Co-authored-by: hlky <[email protected]>
* Update src/diffusers/pipelines/omnigen/pipeline_omnigen.py
Co-authored-by: hlky <[email protected]>
* Update src/diffusers/pipelines/omnigen/pipeline_omnigen.py
Co-authored-by: hlky <[email protected]>
* consistent attention processor
* updata
* update
* check_inputs
* make style
* update testpipeline
* update testpipeline
* refactor omnigen
* more updates
* apply review suggestion
---------
Co-authored-by: shitao <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: hlky <[email protected]>1 parent 81440fd commit 57ac673
File tree
7 files changed
+207
-474
lines changed- docs/source/en
- api
- models
- pipelines
- using-diffusers
- src/diffusers
- models
- transformers
- pipelines/omnigen
- tests/pipelines/omnigen
7 files changed
+207
-474
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
17 | 28 | | |
18 | 29 | | |
19 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 22 | + | |
43 | 23 | | |
44 | 24 | | |
45 | 25 | | |
| |||
49 | 29 | | |
50 | 30 | | |
51 | 31 | | |
52 | | - | |
53 | 32 | | |
54 | 33 | | |
55 | 34 | | |
56 | 35 | | |
57 | 36 | | |
58 | 37 | | |
59 | 38 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 39 | + | |
| 40 | + | |
64 | 41 | | |
65 | 42 | | |
66 | 43 | | |
67 | 44 | | |
68 | 45 | | |
69 | 46 | | |
70 | | - | |
| 47 | + | |
71 | 48 | | |
72 | 49 | | |
73 | 50 | | |
| |||
76 | 53 | | |
77 | 54 | | |
78 | 55 | | |
79 | | - | |
| 56 | + | |
80 | 57 | | |
81 | 58 | | |
82 | 59 | | |
83 | 60 | | |
84 | 61 | | |
85 | 62 | | |
86 | | - | |
| 63 | + | |
87 | 64 | | |
88 | 65 | | |
89 | 66 | | |
| |||
93 | 70 | | |
94 | 71 | | |
95 | 72 | | |
96 | | - | |
| 73 | + | |
97 | 74 | | |
98 | 75 | | |
99 | | - | |
100 | 76 | | |
101 | 77 | | |
102 | 78 | | |
103 | 79 | | |
104 | 80 | | |
105 | | - | |
106 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 28 | | |
| 29 | + | |
| 30 | + | |
34 | 31 | | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | | - | |
| 37 | + | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
| |||
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
58 | | - | |
| 55 | + | |
59 | 56 | | |
| 57 | + | |
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
| |||
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
70 | | - | |
| 68 | + | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
| |||
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
89 | | - | |
90 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
91 | 90 | | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | | - | |
114 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
115 | 117 | | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
120 | | - | |
121 | 123 | | |
122 | 124 | | |
123 | | - | |
124 | | - | |
| 125 | + | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
145 | | - | |
146 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
| |||
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
156 | | - | |
157 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
| |||
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
177 | | - | |
| 180 | + | |
| 181 | + | |
178 | 182 | | |
179 | 183 | | |
180 | 184 | | |
| |||
193 | 197 | | |
194 | 198 | | |
195 | 199 | | |
196 | | - | |
197 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
198 | 203 | | |
| 204 | + | |
199 | 205 | | |
200 | 206 | | |
201 | 207 | | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
206 | | - | |
207 | 212 | | |
208 | 213 | | |
209 | 214 | | |
210 | 215 | | |
211 | 216 | | |
212 | | - | |
| 217 | + | |
213 | 218 | | |
214 | 219 | | |
215 | 220 | | |
| |||
231 | 236 | | |
232 | 237 | | |
233 | 238 | | |
234 | | - | |
235 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
236 | 242 | | |
| 243 | + | |
237 | 244 | | |
238 | 245 | | |
239 | 246 | | |
| |||
249 | 256 | | |
250 | 257 | | |
251 | 258 | | |
252 | | - | |
253 | 259 | | |
254 | 260 | | |
255 | 261 | | |
| |||
261 | 267 | | |
262 | 268 | | |
263 | 269 | | |
264 | | - | |
265 | 270 | | |
266 | 271 | | |
267 | 272 | | |
| |||
273 | 278 | | |
274 | 279 | | |
275 | 280 | | |
276 | | - | |
277 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
278 | 284 | | |
279 | 285 | | |
280 | 286 | | |
| |||
292 | 298 | | |
293 | 299 | | |
294 | 300 | | |
295 | | - | |
296 | | - | |
| 301 | + | |
297 | 302 | | |
298 | 303 | | |
299 | 304 | | |
300 | 305 | | |
301 | | - | |
| 306 | + | |
302 | 307 | | |
303 | 308 | | |
304 | 309 | | |
| |||
310 | 315 | | |
311 | 316 | | |
312 | 317 | | |
313 | | - | |
314 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1199 | 1199 | | |
1200 | 1200 | | |
1201 | 1201 | | |
1202 | | - | |
| 1202 | + | |
1203 | 1203 | | |
1204 | 1204 | | |
1205 | 1205 | | |
| |||
0 commit comments