Commit Graph

14 Commits (0ed64ec19585d3de09d5d85ea8db565b6043b02d)

Author SHA1 Message Date
vladmandic 3ae9909b2a update sharpfin usage
Signed-off-by: vladmandic <mandic00@live.com>
2026-02-11 09:57:37 +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 f4b0656dbb reduce requirements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-12 19:24:47 -05:00
Vladimir Mandic 7c5d1505b8 set defaults for version dct
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-12 14:18:45 -05:00
Vladimir Mandic 69180202d3 kanvas integration
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-08 15:41:52 -05:00
Vladimir Mandic 4cec2db9a3 allow resize non-pil
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-12 09:44:42 -04:00
Vladimir Mandic 1b2d4286b5 add remote vae
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-02-22 14:25:58 -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
Vladimir Mandic bb97e695da log cleanup
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-12-31 09:15:36 -05:00
Vladimir Mandic ea6d3107ab update all todo statements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-12-22 08:39:31 -05:00
Vladimir Mandic ecf6aff1c2 update wiki
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-12-18 08:29:14 -05:00
Vladimir Mandic 814161cb21 major controlnet work, xinsir promax and tiling support
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-12-14 17:29:51 -05:00
Vladimir Mandic ea0dfebe2d better handle any quant lib requirements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-10-12 13:36:16 -04:00
Vladimir Mandic 0b665fe4ae add reprocess image 2024-09-21 11:38:54 -04:00