Files
koboldcpp/otherarch
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
..
2025-03-12 18:58:27 +08:00
2023-09-16 18:52:09 +08:00
2023-05-20 15:58:33 +08:00
2024-09-19 13:56:19 +08:00
2025-05-21 21:47:40 +08:00
2023-05-24 00:20:43 +08:00
2023-09-16 18:52:09 +08:00
2023-09-16 18:52:09 +08:00
2025-01-13 23:26:54 +08:00
2025-01-13 23:26:54 +08:00
2023-05-24 00:20:43 +08:00
2023-05-27 22:45:28 +08:00
2024-08-25 23:15:38 +08:00
2023-07-10 18:23:25 +08:00
2024-05-14 19:17:01 +08:00
2025-04-14 23:05:36 +08:00
2025-04-14 23:05:36 +08:00