awsr
fb853af4b0
RUF013 updates
2026-03-24 04:58:19 -07:00
Vladimir Mandic
bfe014f5da
modernize typing
2026-02-19 09:15:37 +01:00
vladmandic
da1cf2f996
refactor image methods
...
Signed-off-by: vladmandic <mandic00@live.com>
2026-02-11 12:29:00 +01:00
CalamitousFelicitousness
dc8ecb0a64
refactor: address remaining PR #4640 review comments
...
- Remove _get_device_dtype() indirection, inline device/dtype at call sites
- Remove commented-out fallback blocks and try/finally wrappers
- Add modules/sharpfin to ruff and pylint excludes in pyproject.toml
- Fix import ordering in joytag.py and pixelart.py
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
Disty0
91402c6e7c
update pixelart
2025-11-25 18:18:12 +03:00
Vladimir Mandic
d43091f1fa
lint set minimum to py310 and update rules
...
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-29 11:28:09 -04:00
Vladimir Mandic
e55d473374
lint
...
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-23 13:10:36 -04:00
Disty0
a073c63e09
pixelart fix np array as input
2025-08-22 22:53:29 +03:00
Disty0
6f96b17e6b
Make PixelArt run faster
2025-08-20 20:49:20 +03:00
Vladimir Mandic
c559e26616
add builtin framepack
...
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-08 15:47:07 -04:00
Disty0
d5d857aa96
Add sharpen filter to pixelart
2025-07-06 03:17:54 +03:00
Disty0
e255d89fd8
Add PixelArt filter to postprocess
2025-07-06 02:30:55 +03:00