Commit Graph

11 Commits (a6f6a37dea8a2ac9d0e936e7f830b7564ae25ca4)

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
vladmandic 59654d68ea add hqx and icb interpolations
Signed-off-by: vladmandic <mandic00@live.com>
2026-02-05 11:21:17 +01:00
Vladimir Mandic bc775f0530 add wan asymmetric vae upscaler
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-28 13:55:46 -04:00
Vladimir Mandic c559e26616 add builtin framepack
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-08 15:47:07 -04:00
Vladimir Mandic a12f8cbc8d improve infotext param parsing
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-06 17:31:21 -04:00
Vladimir Mandic d4dff967b3 asymmetric vae v2 and libvips support
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-03-16 19:51:38 -04:00
Vladimir Mandic 640aff898c global lancosz
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-02-10 11:24:05 -05:00
Vladimir Mandic 06ba03cf80 settings option to disable reference models
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-01-23 15:19:43 -05:00
Vladimir Mandic 0d67a6d979 add asymmetric vae upscaler
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-01-19 15:00:26 -05:00
Vladimir Mandic ae9b40c688 refactor to unify latent, resize and model based upscalers
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-01-18 14:29:40 -05:00