Commit Graph

60 Commits

Author SHA1 Message Date
Wagner Bruna 635beb6891 sd: sync to master-678-dfb2390 (#2251)
* sd: sync to master-666-7948df8

* sd: sync to master-672-1f9ee88

* sd: sync to master-676-b9254dd

* sd: sync to master-678-dfb2390
2026-06-07 22:18:03 +08:00
Wagner Bruna 2f100fe3d1 sd: sync to master-660-d2797b8 (#2241)
* sd: sync to master-659-d3b2cb0

* sd: sync to master-660-d2797b8
2026-05-31 14:04:25 +08:00
Concedo d4b513c19d mmap fix from https://github.com/leejet/stable-diffusion.cpp/pull/1575 2026-05-30 16:12:34 +08:00
Wagner Bruna 541034d72d sd: sync to master-652-92dc726 (#2234)
* sd: sync to master-650-1ceb5bd

* sd: add LongCat-Image support

* sd: sync to master-652-92dc726

* sd: add Lens support

* sd: split gpt-oss vocab and merge files
2026-05-28 01:21:57 +08:00
Wagner Bruna c28c50e441 sd: sync to master-621-baf7eda 2026-05-23 09:05:35 -03:00
Wagner Bruna 90326f8585 sd: sync to master-612-d7ecbe1 (#2213) 2026-05-18 21:19:12 +08:00
Wagner Bruna 1ae9a79ecc sd: sync to master-607-fd1a279 (#2212) 2026-05-17 11:37:16 +08:00
Wagner Bruna f273fd35b9 sd: sync to master-601-eeac950 (#2206)
* sd: sync to master-601-eeac950

* sd: add mmap support
2026-05-16 11:23:10 +08:00
Wagner Bruna 276c651a12 sd: sync to master-593-3d6064b (#2175)
* sd: sync to master-593-3d6064b

* sd: use the same sdtype_adapter object for all builds

Since master-592-b8079e2, no sd.cpp source depends on the ggml
backend build anymore.

* sd: fix main_gpu selection

* sd: report backend devices to the Python layer
2026-05-04 14:05:34 +08:00
Wagner Bruna e2bdd6d7aa sd: sync to master-591-331cfa5 (#2155)
* sd: sync to master-585-44cca3d

* sd: sync to master-587-b8bdffc

* sd: sync to master-591-331cfa5
2026-05-01 16:33:28 +08:00
Wagner Bruna bad9b61064 sd: sync to master-582-7023fc4 (#2150)
* sd: remove sampler alias handling from the C++ layer

It's already handled at the Python layer.

* sd: sync to master-580-7d33d4b

* sd: sync to master-582-7023fc4
2026-04-21 23:01:33 +08:00
Wagner Bruna f371bb14d4 sd: sync to master-560-e8323ca (#2082)
* sd: sync to master-540-f16a110

* tae post-merge fixes

* build fixes

* restore image mask for non-inpainting models

* sd: sync to master-551-99c1de3

* avoid nlohmann/json.hpp include diffs

* Euler A now works on Flux

* sd: sync to master-555-7397dda

avi_writer.h got removed upstream, but I've simply kept the local
copy for now.

* sd: sync to master-558-8afbeb6

* sd: sync to master-560-e8323ca
2026-04-09 14:44:59 +08:00
Wagner Bruna 9158bd8b4d sd: sync to master-520-d950627 (#2006)
* sd: sync to master-509-4cdfff5

* sd: Anima support

* sd: sync to master-514-5792c66

* sd: additional workaround for Anima .safetensors model

* sd: sync to master-517-ba35dd7

* sd: sync to master-520-d950627
2026-03-08 01:23:03 +08:00
Wagner Bruna ae5183be10 sd: sync to master-504-636d3cb (#1969)
* sd: sync to master-504-636d3cb

* sd: fix and simplify limit calculation

- restore the "arbitrarily high" 8192 limit, since it's used to turn
off the img_hard_limit (and if each side was always limited by 2048,
we wouldn't need hard_megapixel_res_limit)
- avoid changing the config cfg_square_limit during a generation
- apply the hard_megapixel_res_limit only in the configuration-changed
path, since the default path uses constants
- clean up comments

The calculation itself remains the same:
- default area limit: 832² for SD1.5/SD2, 1024² otherwise
- configured limit always between 64 and 2048
2026-02-14 08:12:08 +08:00
Wagner Bruna 1f01d54848 sd: sync to master-487-43e829f (#1947) 2026-01-29 21:37:30 +08:00
Wagner Bruna 715a76ce5f sd: sync to master-480-b87fe13 (#1932) 2026-01-21 20:49:35 +08:00
Concedo cdd6578a9a esrgan added 2026-01-20 22:10:37 +08:00
Wagner Bruna 10851f223d sd: sync to master-473-9565c7f (#1927)
* sd: sync to master-473-9565c7f

* sd: add support for flux2 klein
2026-01-19 01:04:34 +08:00
Wagner Bruna c91fc850c1 sd: sync to master-467-0e52afc (#1916) 2026-01-15 23:06:51 +08:00
Wagner Bruna 0ef55844d3 sd: sync to master-453-4ff2c8c (#1907) 2026-01-03 15:28:27 +08:00
Wagner Bruna 84765f5967 sd: sync to master-447-ccb6b0a (#1898)
* sd: sync to master-438-298b110

* sd: sync to master-440-3e81246

* sd: sync to master-444-a0adcfb

* sd: sync to master-447-ccb6b0a
2025-12-27 16:30:52 +08:00
Wagner Bruna 44ce1a80b3 sd: sync to master-431-23fce0b (#1893)
* sd: sync to master-427-78e15bd

* add kl_optimal to the available schedulers list

* more robust workaround to avoid stb linkage issues

* sd: sync to master-431-23fce0b

* add TAEHV support and disable TAE if the model isn't found
2025-12-22 15:07:09 +08:00
Wagner Bruna 78bbe89956 sd: sync to master-417-43a70e8 (#1889)
* sd: sync to master-417-43a70e8

* fix sdmain build

* switch to upstream apply_loras()

* refactor u8 path conversions and add it to the gguf reader
2025-12-16 16:16:48 +08:00
Wagner Bruna 801840d3bd sd: sync to master-391-5865b5e (#1878) 2025-12-08 19:53:52 +08:00
Wagner Bruna 510508e7da sd: sync to master-391-5865b5e (#1872) 2025-12-04 16:29:38 +08:00
Wagner Bruna fcb86f22df sd: sync to master-387-e4c50f1 2025-12-01 19:15:38 -03:00
Wagner Bruna 53407c866d fix mistral vocab filename and qwen2vl tensor name 2025-12-01 17:31:02 -03:00
Wagner Bruna 3db48a1536 sd: sync to master-383-20eb674 2025-12-01 17:04:56 -03:00
Wagner Bruna 8ef66e90c1 sd: sync to master-366-f532972 2025-11-23 19:29:01 -03:00
Wagner Bruna 3318b73c94 sd: sync to master-355-694f0d9 2025-11-23 19:28:34 -03:00
Wagner Bruna c652d08f02 sd: sync to master-340-9e28be6 (#1816) 2025-10-27 21:47:48 +08:00
Wagner Bruna 2cab657c60 sd: sync to master-336-917f7bf (#1810) 2025-10-25 21:19:35 +08:00
tsite 97867f1990 add alt umt5xxl tensor name (#1813) 2025-10-25 12:48:08 +08:00
Wagner Bruna fef73919ea sd: clean up changes against stable-diffusion.cpp 90ef5f8 (#1804)
* sd: clean up changes against stable-diffusion.cpp 90ef5f8

Clean up the diff, and include a few missing changes, mainly from
the upscaler and model weight type statistics.

* added line clear again

* remove excess spaces

---------

Co-authored-by: LostRuins Concedo <39025047+LostRuins@users.noreply.github.com>
2025-10-23 22:00:33 +08:00
Concedo 49535fdfed rename define 2025-10-20 10:08:39 +08:00
Wagner Bruna d7da1eb35c invert KCPP_BAKE_SD_VOCAB logic, move define to sdtype_adapter.cpp (#1803)
Using KCPP_BAKE_SD_VOCAB to turn off the change to not embed the
vocabulary files makes testing new upstream merges harder, because
we then need to set that macro on the sd.cpp original build.

So, revert the tests, making the define turn the change on. Also,
since model.cpp is always built by Koboldcpp as part of the
sdtype_adapter.cpp, it's enough to set the macro on that file.
2025-10-20 10:07:37 +08:00
Concedo f6916ba864 updated sdui 2025-10-17 13:56:45 +08:00
Concedo 80f88eb703 wip qwen image edit. not working yet 2025-10-11 11:24:17 +08:00
Concedo f282362414 added qwen image support (+1 squashed commits)
Squashed commits:

[92df28061] added qwen image support (+1 squashed commits)

Squashed commits:

[1485c71ed] wip adding qwen image
2025-10-03 18:58:48 +08:00
Concedo 4f8f0e5949 move embeds into their own dir, detach sd vocab into separate files 2025-10-03 14:21:09 +08:00
Wagner Bruna 42087c3622 update stable-diffusion.cpp to master-306-2abe945 (#1732)
* update stable-diffusion.cpp to master-52a97b3

* update stable-diffusion.cpp to master-0ebe6fe

* update stable-diffusion.cpp to master-301-fd693ac

* update stable-diffusion.cpp to master-306-2abe945

* fix taesd file selection
2025-09-27 16:52:58 +08:00
Wagner Bruna 5de7ed3d56 WIP: update stable-diffusion.cpp to 5900ef6605c6 (new API) (#1669)
* Update stable-diffusion.cpp to 5900ef6605c6 (new API)

* Clean up pending LoRA code and simplify LoRA changes to upstream

* Move VAE tiling disabling for TAESD to sdtype_adapter.cpp

* Move auxiliary ctx functions to sdtype_adapter.cpp

* Use ref_images parameter for Kontext images

* Drop clip skip workaround (fixed upstream)

* Workaround for flash attention with img2img

leejet/stable-diffusion.cpp#756

* Workaround for Chroma with flash attention, debug prints

* Disable forcing CLIP weights to F32 for reduced memory usage
2025-08-12 23:25:02 +08:00
Concedo f841b29c41 fixed unicode paths 2025-05-11 14:05:54 +08:00
Concedo b2719268df merge sdcpp fixes 2025-04-17 00:52:49 +08:00
Concedo 7e1289ade8 fixes for sdcpp 2025-04-12 10:08:23 +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 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 b4dc29f425 kobo cheats death again (+1 squashed commits)
Squashed commits:

[708e2429] kobo cheats death again
2025-01-04 01:06:41 +08:00
Concedo 2ba5949054 updated sdcpp, also set euler as default sampler 2024-12-01 17:00:20 +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