Commit Graph

206 Commits

Author SHA1 Message Date
Concedo 21881a861d rename restrict square to sdclampedsoft 2025-06-20 15:39:55 +08:00
Concedo 175c99081e merged https://github.com/leejet/stable-diffusion.cpp/issues/588 to fix vae tiling, ref https://github.com/LostRuins/koboldcpp/issues/1603 2025-06-20 11:13:04 +08:00
Concedo e35c6b8f9b remove t5 masking sdcpp 2025-06-18 21:05:03 +08:00
Concedo 40443a98f5 show available RAM, fixed SD vae tiling noise 2025-06-18 18:44:50 +08:00
Concedo bfb47cbcd8 Revert "revert padding change for sd chroma"
This reverts commit 7de88802f9.
2025-06-14 10:10:34 +08:00
Wagner Bruna f6d2d1ce5c configurable resolution limit (#1586)
* refactor image gen configuration screen

* make image size limit configurable

* fix resolution limits and keep dimensions closer to the original ratio

* use 0.0 for the configured default image size limit

This prevents the current default value from being saved into the
config files, in case we later decide to adopt a different value.

* export image model version when loading

* restore model-specific default image size limit

* change the image area restriction to be specified by a square side

* move image resolution limits down to the C++ level

* Revert "export image model version when loading"

This reverts commit fa65b23de3.

* Linting Fixes:
PY:
- Inconsistent var name sd_restrict_square -> sd_restrict_square_var
- GUI swap back to using absolute row numbers for now.
- fstring fix
- size_limit -> side_limit inconsistency
C++:
- roundup_64 standalone function
- refactor sd_fix_resolution variable names for clarity
- move "anti crashing" hard total megapixel limit always to be applied after soft total megapixel limit instead of conditionally only when sd_restrict_square is unset

* allow unsafe resolutions if debugmode is on

---------

Co-authored-by: Concedo <39025047+LostRuins@users.noreply.github.com>
2025-06-13 20:05:20 +08:00
Concedo 7de88802f9 revert padding change for sd chroma 2025-06-08 23:48:46 +08:00
Concedo 2d4c1aa5a0 chroma support is now usable 2025-06-08 18:53:59 +08:00
Concedo 30cf433ab4 merge base support for chroma, however its not working correctly 2025-06-08 18:06:23 +08:00
Concedo b08dca65ed Merge branch 'upstream' into concedo_experimental
# Conflicts:
#	common/CMakeLists.txt
#	common/arg.cpp
#	common/chat.cpp
#	examples/parallel/README.md
#	examples/parallel/parallel.cpp
#	ggml/cmake/common.cmake
#	ggml/src/CMakeLists.txt
#	ggml/src/ggml-cpu/CMakeLists.txt
#	ggml/src/ggml-sycl/ggml-sycl.cpp
#	ggml/src/ggml-sycl/rope.cpp
#	models/ggml-vocab-bert-bge.gguf.inp
#	models/ggml-vocab-bert-bge.gguf.out
#	models/ggml-vocab-command-r.gguf.inp
#	models/ggml-vocab-command-r.gguf.out
#	models/ggml-vocab-deepseek-coder.gguf.inp
#	models/ggml-vocab-deepseek-coder.gguf.out
#	models/ggml-vocab-deepseek-llm.gguf.inp
#	models/ggml-vocab-deepseek-llm.gguf.out
#	models/ggml-vocab-falcon.gguf.inp
#	models/ggml-vocab-falcon.gguf.out
#	models/ggml-vocab-gpt-2.gguf.inp
#	models/ggml-vocab-gpt-2.gguf.out
#	models/ggml-vocab-llama-bpe.gguf.inp
#	models/ggml-vocab-llama-bpe.gguf.out
#	models/ggml-vocab-llama-spm.gguf.inp
#	models/ggml-vocab-llama-spm.gguf.out
#	models/ggml-vocab-mpt.gguf.inp
#	models/ggml-vocab-mpt.gguf.out
#	models/ggml-vocab-phi-3.gguf.inp
#	models/ggml-vocab-phi-3.gguf.out
#	models/ggml-vocab-qwen2.gguf.inp
#	models/ggml-vocab-qwen2.gguf.out
#	models/ggml-vocab-refact.gguf.inp
#	models/ggml-vocab-refact.gguf.out
#	models/ggml-vocab-starcoder.gguf.inp
#	models/ggml-vocab-starcoder.gguf.out
#	requirements/requirements-gguf_editor_gui.txt
#	tests/CMakeLists.txt
#	tests/test-chat.cpp
#	tests/test-grammar-integration.cpp
#	tests/test-json-schema-to-grammar.cpp
#	tools/mtmd/CMakeLists.txt
#	tools/run/run.cpp
#	tools/server/CMakeLists.txt
2025-05-31 13:04:21 +08:00
Wagner Bruna 12f99ba907 fix: workaround for default clip_skip issues (#1572)
Sets the clip_skip value explicitly to 1 or 2 for all generation
requests, aligning with the tests in the Conditioner objects in
conditioner.hpp.

This should fix #1546 regardless of future changes to the default
behavior of sdcpp. This workaround can be removed once a proper
fix is implemented in sdcpp.
2025-05-31 10:36:30 +08:00
Concedo a11ab0b08e reverse clip skip fix as it might be breaking some sdxl models 2025-05-30 10:40:03 +08:00
Concedo 26bf5b446d fixed thread count <=0 , fixed clip skip <= 0 2025-05-28 00:38:15 +08:00
Concedo 499283c63a rename define to match upstream 2025-05-23 17:10:12 +08:00
Concedo e68a5f448c add ddim sampler 2025-05-22 21:28:01 +08:00
Wagner Bruna 7dc3e3e64b store clip skip value on generated images (#1551) 2025-05-21 23:37:48 +08:00
Concedo f841b29c41 fixed unicode paths 2025-05-11 14:05:54 +08:00
Concedo c2802af9e8 fix qwen3, fixed sd, fixed glm4 2025-04-29 20:50:46 +08:00
Concedo cbdee99354 revert sdcpp clip quant changes 2025-04-17 11:11:34 +08:00
Concedo b2719268df merge sdcpp fixes 2025-04-17 00:52:49 +08:00
Concedo fe12b1cbd4 fixed lora, now works quanted too 2025-04-14 23:44:42 +08:00
Concedo 2d0b7e37f9 fix build 2025-04-13 22:01:48 +08:00
Concedo 7e1289ade8 fixes for sdcpp 2025-04-12 10:08:23 +08:00
Concedo 8acec907bb revert sbti image write 2025-04-10 10:43:24 +08:00
Concedo 27f575dc83 inpaining support completed, invert mask added 2025-04-09 23:50:17 +08:00
Concedo 23339ace9b inpainting works in kcpp! 2025-04-09 23:01:05 +08:00
Concedo fea3b2bd4a updated sdcpp prepare for inpaint
fixed img2img (+1 squashed commits)

Squashed commits:

[42c48f14] try update sdcpp, feels kind of buggy
2025-04-09 20:26:10 +08:00
Concedo e466ce65e2 updated sd metadata 2025-03-16 20:12:43 +08:00
Concedo bfc30066c9 fixed a clip processing bug 2025-03-15 17:49:49 +08:00
Concedo ca698f0cbe tweaked sd img metadata 2025-03-13 20:04:29 +08:00
Wagner Bruna 5413be2c1b sd: add generation parameters to image metadata (#1416)
Straight adaptation from stable-diffusion.cpp main.cpp.
2025-03-13 19:35:06 +08:00
Concedo 5f74ee3c3b merge sd fix 2025-02-21 11:16:26 +08:00
Concedo 72f0fdfe87 wip on hypervisor 2025-02-05 00:25:22 +08:00
Concedo 0e45d3bb7a quiet flags now set at load time 2025-01-25 16:46:56 +08:00
Concedo b3de1598e7 Fixed some GGUFv1 loading bugs, long overdue cleanup for compiling, integrated TTS
tts is functional (+6 squashed commit)

Squashed commit:

[22396311] wip tts

[3a883027] tts not yet working

[0dcfab0e] fix silly bug

[a378d9ef] some long overdue cleanup

[fc5a6fb5] Wip tts

[39f50497] wip TTS integration
2025-01-13 14:23:25 +08:00
Concedo e788b8289a You'll never take us alive
We swore that death will do us part
They'll call our crimes a work of art
2025-01-09 11:27:06 +08:00
Concedo 3732bb2686 taesd now supports flux and sd3 2025-01-08 22:35:50 +08:00
Concedo 568e476997 added toggle for vae tiling, use custom memory buffer 2025-01-08 13:12:03 +08:00
Concedo b4dc29f425 kobo cheats death again (+1 squashed commits)
Squashed commits:

[708e2429] kobo cheats death again
2025-01-04 01:06:41 +08:00
Concedo de64b9198c merge checkpoint 2 - functional merge without q4_0_4_4 (need regen shaders) 2024-12-13 17:04:19 +08:00
Concedo 2ba5949054 updated sdcpp, also set euler as default sampler 2024-12-01 17:00:20 +08:00
Concedo 409e393d10 fixed critical bug in image model loader 2024-11-30 23:28:24 +08:00
Concedo f75bbb945f speculative decoding initial impl completed (+6 squashed commit)
Squashed commit:

[0a6306ca0] draft wip dont use (will be squashed)

[a758a1c9c] wip dont use (will be squashed)

[e1994d3ce] wip dont use

[f59690d68] wip

[77228147d] wip on spec decoding. dont use yet

[2445bca54] wip adding speculative decoding (+1 squashed commits)

Squashed commits:

[50e341bb7] wip adding speculative decoding
2024-11-30 10:41:10 +08:00
Concedo 116879144c better error messages 2024-11-23 18:55:01 +08:00
Concedo 70aee82552 attempts a backflip, but does he stick the landing? 2024-11-16 17:05:45 +08:00
Concedo 8a7d53d838 declutter sdcpp adapter removed useless string literals 2024-11-14 00:27:39 +08:00
Concedo dd95f88c19 add e5m2 support for use in Kobo, also made a separate contribution PR https://github.com/leejet/stable-diffusion.cpp/pull/460 2024-11-13 11:35:49 +08:00
bebopkim bb6c8bc095 Correct compilation errors on macOS Metal (#1204) 2024-11-08 11:42:31 +08:00
Concedo 262437f393 fallback flux loader 2024-11-07 15:55:43 +08:00
Concedo ccbd630a42 allow custom t5, clipl and clipg 2024-11-06 19:05:48 +08:00