Commit Graph

23 Commits (9a63ec758ab262040139625a144b3d0c4e696ed9)

Author SHA1 Message Date
Vladimir Mandic d65a2d1ebc ruff lint 2026-02-19 11:13:44 +01:00
Vladimir Mandic e5c494f999 cleanup logger 2026-02-19 11:09:13 +01:00
Vladimir Mandic a3074baf8b unified logger 2026-02-19 09:46:42 +01:00
vladmandic da1cf2f996 refactor image methods
Signed-off-by: vladmandic <mandic00@live.com>
2026-02-11 12:29:00 +01:00
CalamitousFelicitousness 76aa949a26 refactor: integrate sharpfin for high-quality image resize
Vendor sharpfin library (Apache 2.0) and add centralized wrapper
module (images_sharpfin.py) replacing torchvision tensor/PIL
conversion and resize operations throughout the codebase.

- Add modules/sharpfin/ vendored library with MKS2021, Lanczos3,
  Mitchell, Catmull-Rom kernels and optional Triton sparse acceleration
- Add modules/images_sharpfin.py wrapper with to_tensor(), to_pil(),
  pil_to_tensor(), normalize(), resize(), resize_tensor()
- Add resize_quality and resize_linearize_srgb settings
- Add MKS2021 and Lanczos3 upscaler entries
- Replace torchvision.transforms.functional imports across 18 files
- to_pil() auto-detects HWC/BHWC layout, adds .round() before uint8
- Sparse Triton path falls back to dense GPU on compilation failure
- Mixed-axis resize splits into two single-axis scale() calls
- Masks and non-sRGB data always use linearize=False
2026-02-11 09:57:37 +01:00
vladmandic f9aa2591e5 fix gallery save/delete
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 09:53:20 +01:00
vladmandic cc0b0e8e3d cleanup todo
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-19 11:10:05 +01:00
Vladimir Mandic 30da7803b5 futureproof
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-01-15 09:29:26 +00:00
Vladimir Mandic e8b5ea3847 major refactor: remove backend original
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-05 13:16:46 -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 8473bae0fc 1000 papercuts
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-05-13 21:51:33 -04:00
Vladimir Mandic 0e10feaac3 sort and describe all scripts
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-11-08 11:32:49 -05:00
Vladimir Mandic e746871962 flux extra controlnets and differential diffusion
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-10-16 10:10:58 -04:00
Vladimir Mandic c376566fb6 fix compatibility with latest diffusers 2024-07-01 11:51:46 -04:00
Vladimir Mandic 5574833f0d refactor backend detection 2024-06-06 20:41:10 -04:00
Vladimir Mandic 0cedf950f2 update diffusers, release notes, lint fixes 2024-05-27 08:59:57 -04:00
Vladimir Mandic 35665cd719 new from_single_file compatibiltiy 2024-05-09 16:27:21 -04:00
Vladimir Mandic ed037bb48c error handling on incompatible batch-sizes 2024-04-09 14:45:49 -04:00
Vladimir Mandic 9d04255b54 reorganize js callbacks and startup sequence 2024-04-04 18:26:51 -04:00
23pennies afa3c6c4d1
fix mask defined by user in differential diffusion script 2024-03-10 12:56:34 +01:00
Vladimir Mandic 17f2f8d98f add include mask in output, improve model offload compatibility 2024-02-24 11:06:14 -05:00
Vladimir Mandic aec8f76c15 add differential-diffusion support for sd15 2024-02-20 13:14:32 -05:00
Vladimir Mandic 02394356e7 add differential diffusion 2024-02-20 10:06:42 -05:00