Commit 50ff966
feat: add seamless texture generation support (#914)
* global bool
* reworked circular to global flag
* cleaner implementation of tiling support in sd cpp
* cleaned rope
* working simplified but still need wraps
* Further clean of rope
* resolve flux conflict
* switch to pad op circular only
* Set ggml to most recent
* Revert ggml temp
* Update ggml to most recent
* Revert unneded flux change
* move circular flag to the GGMLRunnerContext
* Pass through circular param in all places where conv is called
* fix of constant and minor cleanup
* Added back --circular option
* Conv2d circular in vae and various models
* Fix temporal padding for qwen image and other vaes
* Z Image circular tiling
* x and y axis seamless only
* First attempt at chroma seamless x and y
* refactor into pure x and y, almost there
* Fix crash on chroma
* Refactor into cleaner variable choices
* Removed redundant set_circular_enabled
* Sync ggml
* simplify circular parameter
* format code
* no need to perform circular pad on the clip
* simplify circular_axes setting
* unify function naming
* remove unnecessary member variables
* simplify rope
---------
Co-authored-by: Phylliida <phylliidadev@gmail.com>
Co-authored-by: leejet <leejet714@gmail.com>1 parent 88ec9d3 commit 50ff966
File tree
15 files changed
+375
-79
lines changed- examples/common
15 files changed
+375
-79
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | | - | |
| 376 | + | |
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
| |||
148 | 153 | | |
149 | 154 | | |
150 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
151 | 160 | | |
152 | 161 | | |
153 | 162 | | |
| |||
210 | 219 | | |
211 | 220 | | |
212 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
213 | 226 | | |
214 | 227 | | |
215 | 228 | | |
| |||
277 | 290 | | |
278 | 291 | | |
279 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
280 | 297 | | |
281 | 298 | | |
282 | 299 | | |
| |||
343 | 360 | | |
344 | 361 | | |
345 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
346 | 367 | | |
347 | 368 | | |
348 | 369 | | |
| |||
406 | 427 | | |
407 | 428 | | |
408 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
409 | 434 | | |
410 | 435 | | |
411 | 436 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
452 | 456 | | |
453 | 457 | | |
454 | 458 | | |
| |||
605 | 609 | | |
606 | 610 | | |
607 | 611 | | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
608 | 624 | | |
609 | 625 | | |
610 | 626 | | |
| |||
868 | 884 | | |
869 | 885 | | |
870 | 886 | | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
871 | 890 | | |
872 | 891 | | |
873 | 892 | | |
| |||
928 | 947 | | |
929 | 948 | | |
930 | 949 | | |
| 950 | + | |
| 951 | + | |
931 | 952 | | |
932 | 953 | | |
933 | 954 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
863 | | - | |
| 863 | + | |
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
869 | 869 | | |
870 | | - | |
| 870 | + | |
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
896 | | - | |
| 896 | + | |
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
900 | | - | |
| 900 | + | |
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
| |||
1076 | 1076 | | |
1077 | 1077 | | |
1078 | 1078 | | |
1079 | | - | |
| 1079 | + | |
1080 | 1080 | | |
1081 | 1081 | | |
1082 | 1082 | | |
| |||
1150 | 1150 | | |
1151 | 1151 | | |
1152 | 1152 | | |
1153 | | - | |
| 1153 | + | |
1154 | 1154 | | |
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
1158 | 1158 | | |
1159 | 1159 | | |
1160 | 1160 | | |
1161 | | - | |
1162 | | - | |
| 1161 | + | |
| 1162 | + | |
1163 | 1163 | | |
1164 | 1164 | | |
1165 | 1165 | | |
| |||
1168 | 1168 | | |
1169 | 1169 | | |
1170 | 1170 | | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
1178 | 1178 | | |
1179 | | - | |
| 1179 | + | |
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
1183 | 1183 | | |
1184 | 1184 | | |
1185 | | - | |
| 1185 | + | |
1186 | 1186 | | |
1187 | 1187 | | |
1188 | 1188 | | |
| |||
1472 | 1472 | | |
1473 | 1473 | | |
1474 | 1474 | | |
| 1475 | + | |
| 1476 | + | |
1475 | 1477 | | |
1476 | 1478 | | |
1477 | 1479 | | |
| |||
- .github/workflows/ci.yml+1-1
- CMakeLists.txt+4
- include/ggml-cpu.h+1
- scripts/sync-llama.last+1-1
- scripts/sync-whisper.last+1-1
- src/ggml-cann/ggml-cann.cpp+1
- src/ggml-cpu/arch/arm/repack.cpp+2
- src/ggml-cpu/ggml-cpu.c+26
- src/ggml-cpu/ggml-cpu.cpp+4
- src/ggml-cpu/repack.cpp+2-1
- src/ggml-cuda/common.cuh+14-11
- src/ggml-cuda/fattn-common.cuh+3-3
- src/ggml-cuda/fattn-mma-f16.cuh+3-3
- src/ggml-cuda/ggml-cuda.cu+2-2
- src/ggml-cuda/mma.cuh+60-5
- src/ggml-cuda/mmf.cu+5-3
- src/ggml-cuda/mmvf.cu+4-1
- src/ggml-cuda/solve_tri.cu+95-15
- src/ggml-cuda/vendors/hip.h+4
- src/ggml-cuda/vendors/musa.h+5
- src/ggml-vulkan/ggml-vulkan.cpp+107-10
- src/ggml-vulkan/vulkan-shaders/diag.comp+29
- src/ggml-vulkan/vulkan-shaders/flash_attn.comp+3
- src/ggml-vulkan/vulkan-shaders/flash_attn_cm1.comp+3
- src/ggml-vulkan/vulkan-shaders/get_rows.comp+2-2
- src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq1_s.comp+42-26
- src/ggml-vulkan/vulkan-shaders/mul_mm_funcs.glsl+8-5
- src/ggml-vulkan/vulkan-shaders/soft_max_large1.comp+62
- src/ggml-vulkan/vulkan-shaders/soft_max_large2.comp+79
- src/ggml-vulkan/vulkan-shaders/soft_max_large3.comp+65
- src/ggml-vulkan/vulkan-shaders/soft_max_large_common.glsl+53
- src/ggml-vulkan/vulkan-shaders/topk_moe.comp+9-3
- src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp+14-3
- tests/test-backend-ops.cpp+26-3
0 commit comments