Commit Graph

9 Commits (9de84792b4c4ae644fe84df73e97ecffac01a163)

Author SHA1 Message Date
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
Vladimir Mandic c608674fb0 styles support parsed and upparsed save and apply
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-02-11 11:33:37 -05:00
Vladimir Mandic 640aff898c global lancosz
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-02-10 11:24:05 -05:00
Vladimir Mandic 2acb883dda jumbo update, see changelog 2024-09-18 13:48:30 -04:00
Vladimir Mandic 9a7a5ba81c lint cleanup 2024-05-28 10:48:27 -04:00
Vladimir Mandic 61c3eb85e0 bfloat16 to float 2024-02-27 14:45:03 -05:00
Vladimir Mandic edf1dc68f4 add depth-anything controlnet 2024-01-23 14:15:07 -05:00
Vladimir Mandic 927ad16c05 add lama to control masking options 2024-01-20 15:43:38 -05:00