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
|
68708b6b8f
|
refactor codeformer
Signed-off-by: Vladimir Mandic <mandic00@live.com>
|
2025-07-05 18:33:55 -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
|
e26de8cdba
|
detailer support for face restorer models
Signed-off-by: Vladimir Mandic <mandic00@live.com>
|
2025-01-18 14:29:40 -05:00 |
Vladimir Mandic
|
0d02a2e16c
|
fix codeformer
Signed-off-by: Vladimir Mandic <mandic00@live.com>
|
2024-10-11 08:17:35 -04:00 |
Vladimir Mandic
|
a722ed30d9
|
fix face restore dependend extensions
Signed-off-by: Vladimir Mandic <mandic00@live.com>
|
2024-10-08 13:11:34 -04:00 |
Vladimir Mandic
|
04a5071249
|
face-hires -> detailer refactor
Signed-off-by: Vladimir Mandic <mandic00@live.com>
|
2024-10-06 11:23:33 -04:00 |
Vladimir Mandic
|
47755dce6b
|
refactor devices
Signed-off-by: Vladimir Mandic <mandic00@live.com>
|
2024-09-29 20:17:03 -04:00 |
Vladimir Mandic
|
0f7bb8a1f4
|
add facehires
|
2024-03-10 13:17:13 -04:00 |
Vladimir Mandic
|
bf14e6ed6d
|
fix mask missing options and system paths
|
2024-02-10 08:10:24 -05:00 |
Vladimir Mandic
|
204853afea
|
global crlf to lf
|
2024-01-10 09:45:26 -05:00 |
Vladimir Mandic
|
9a96477111
|
optimize json parsing and extension register
|
2024-01-04 12:17:33 -05:00 |
Vladimir Mandic
|
079f5c9f2a
|
add compatibility reexport for codeformers
|
2023-10-18 13:01:26 -04:00 |
Vladimir Mandic
|
ef0e8a5161
|
upscaler caching and ti model detection
|
2023-09-27 08:49:04 -04:00 |
Vladimir Mandic
|
8ca79ad9b5
|
refactor upscalers
|
2023-09-20 13:07:29 -04:00 |