22 Commits

Author SHA1 Message Date
Vladimir Mandic f75e38c4ef krea2 optional dense masking
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-17 10:18:32 +02:00
Vladimir Mandic 9f650367cb multiple cleanups
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-17 09:35:07 +02:00
QualiaRain 711d6018bf fix(api): IP-adapter mask accumulation, null params, colon-in-password, raw allowed path
generate.py: p.ip_adapter_masks was reinitialized inside the per-adapter loop, discarding all but the last adapter's masks; move it beside the other accumulators. process.py: req.params is dict|None, so a null params body crashed .items() in post_preprocess/post_mask. api.py: split(':') without maxsplit broke auth/auth-file entries whose password contains a colon. gallery.py: allowed_paths stored quote(path) but the membership check and path guards use the raw path, causing duplicate accumulation and an ineffective whitelist; also drop the unused FastAPI import (pylint W0611 surfaced when this file is linted).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-15 15:20:07 -04:00
vladmandic c86674047a fix state end
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-14 12:46:43 +01:00
vladmandic b388f7c582 merge: modules/api/generate.py 2026-03-12 14:16:50 +01:00
Vladimir Mandic bfe014f5da modernize typing 2026-02-19 09:15:37 +01:00
CalamitousFelicitousness 761ea1c327 feat(settings): add base path support for output folders
Change "Images folder" and "Grids folder" settings to act as base paths
that combine with specific folder settings, rather than replacing them.

- Add resolve_output_path() helper function to modules/paths.py
- Update all output path usages to use combined base + specific paths
- Update gallery API to return resolved paths with display labels
- Update gallery UI to show short labels with full path on hover

Example: If base is "C:\Database\" and specific is "outputs/text",
the resolved path becomes "C:\Database\outputs\text"

Edge cases handled:
- Empty base path: uses specific path directly (backward compatible)
- Absolute specific path: ignores base path
- Empty specific path: uses base path only
2026-01-16 16:24:05 +00:00
Vladimir Mandic 175e9cbe29 cleanup/refactor state history
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-12 16:12:45 -04:00
Vladimir Mandic c4d9338d2e major refactoring of modules
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-03 09:18:38 -04:00
Vladimir Mandic 00ebdf3476 fix api scripts callbacks
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-11-27 10:07:37 -05:00
Vladimir Mandic 9188ecf4d6 scripts cleanup
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-11-21 13:45:27 -05:00
Vladimir Mandic fa5de3dc22 api resiliency improvements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-11-21 11:28:19 -05:00
Vladimir Mandic a5c8bb57c7 improve api scripts resiliency
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-11-21 10:17:44 -05:00
Vladimir Mandic bdd885eab4 multiple param validation fixes
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-11-14 12:37:38 -05:00
Vladimir Mandic dab2827dab add api override field
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-11-08 09:49:46 -05:00
Vladimir Mandic 68a8ffa3cf ipadapter optional face autocrop input image 2024-08-29 14:10:38 -04:00
Vladimir Mandic 554e5c8224 torch dynamic profiling 2024-05-16 18:40:18 -04:00
Vladimir Mandic 49ea56059b ipadapter masks api support 2024-04-20 10:06:32 -04:00
Vladimir Mandic f2610c3936 ip adapter masking 2024-04-18 12:43:51 -04:00
Vladimir Mandic bd7ba768b1 add ip_adapter to api and fix control 2024-03-29 10:26:29 -04:00
Vladimir Mandic c29b76fde3 cleanup api 2024-03-02 08:59:35 -05:00
Vladimir Mandic 02336fdb36 refactor txt2img/img2img api 2024-02-16 08:49:42 -05:00