Commit Graph

135 Commits (9de84792b4c4ae644fe84df73e97ecffac01a163)

Author SHA1 Message Date
Vladimir Mandic 6fdd3a53cf reduce mandatory requirements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-02-18 17:53:08 +01:00
Vladimir Mandic d6bbfe3dc2 experimental python==3.14 support
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-02-17 22:08:36 +01:00
vladmandic ccd3e2e489 cleanup settings
Signed-off-by: vladmandic <mandic00@live.com>
2026-02-12 10:30:39 +01:00
vladmandic da1cf2f996 refactor image methods
Signed-off-by: vladmandic <mandic00@live.com>
2026-02-11 12:29:00 +01:00
vladmandic 1b4f94660f cleanup
Signed-off-by: vladmandic <mandic00@live.com>
2026-02-11 11:15:59 +01:00
Vladimir Mandic 41f206dec9
Merge pull request #4637 from CalamitousFelicitousness/refactor/remove-face-restoration
Refactor/remove face restoration
2026-02-11 11:12:34 +01:00
CalamitousFelicitousness 8563e2a853 refactor: restore codeformer_model.py to avoid merge conflicts 2026-02-11 09:59:55 +00: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
CalamitousFelicitousness 356505cab2 refactor: remove ONNX face upscaler support from detailer
- Remove codeformer, restoreformer, GFPGANv1.4, and GPEN-BFR ONNX
  model URLs from the predefined list
- Remove the .fp16 ONNX restorer code path that bypassed detailer
  processing to run face restoration directly
2026-02-08 22:59:45 +00:00
CalamitousFelicitousness 1e23495039 refactor: delete CodeFormer, GFPGAN, and face restoration modules
Remove all vendored face restoration code that is no longer maintained:

- modules/postprocess/codeformer_model.py, codeformer_arch.py, vqgan_arch.py
- modules/postprocess/gfpgan_model.py, restorer.py
- modules/face_restoration.py (base class and dispatcher)
- scripts/postprocessing_codeformer.py, postprocessing_gfpgan.py
- modules/facelib/ (vendored face detection/parsing library)

These were the only two backends registered in shared.face_restorers,
making the entire face restoration infrastructure dead code.
2026-02-08 22:58:33 +00:00
vladmandic 9df9b84752 fix anima
Signed-off-by: vladmandic <mandic00@live.com>
2026-02-05 16:55:06 +01:00
vladmandic 59654d68ea add hqx and icb interpolations
Signed-off-by: vladmandic <mandic00@live.com>
2026-02-05 11:21:17 +01:00
vladmandic a4671045b6 lint and crlf
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-24 10:28:46 +01:00
vladmandic 0073fa55e3 fix detailer double save
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-22 19:38:37 +01:00
Vladimir Mandic c1f9646eaa
Merge pull request #4541 from awsr/save-update
Update config saving
2026-01-11 13:05:29 +01:00
awsr 0faabffc14
Simplify options init/save/load 2026-01-10 13:27:38 -08:00
vladmandic 2cba0d8fe0 explictly disable hires for detailer pass
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-10 10:26:51 +01:00
vladmandic 3ec1f604d2 cleanup label
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-06 10:57:45 +01:00
vladmandic dde91321b9 genai exception handling and lint all
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-22 20:29:50 +01:00
vladmandic e2fb70d4a1 detailer draw segmentation overlays
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-17 10:03:17 +01:00
vladmandic a7956d0c5c detailer support for segmentation models and use of segmentation masks
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-16 22:51:52 +01:00
vladmandic 7bd04e0b5c add /detailers api endpoint
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-06 12:33:52 +01:00
Disty0 91402c6e7c update pixelart 2025-11-25 18:18:12 +03:00
vladmandic 246bfcb453 fix multi-detailer
Signed-off-by: vladmandic <mandic00@live.com>
2025-11-24 10:52:10 -05:00
Vladimir Mandic a5c5635968 detailer validate if model is compatible
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-10 07:53:45 -05:00
Vladimir Mandic c6593ac180 fix detailer with lora
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-09 09:14:26 -05:00
Vladimir Mandic 1c95960fb0 fix detailer with face-restorers
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-08 08:12:33 -05:00
Vladimir Mandic db3f5ff01b detailer expert mode enhance parsing
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-04 10:41:23 -05:00
Vladimir Mandic dcdb8d3a29 merge detailer annotations
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-03 13:50:38 -05:00
Vladimir Mandic f4400adb74 detailer improvements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-01 21:38:48 -04: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 85a58ed5bf seedvr enable quant
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-14 10:23:12 -04:00
Vladimir Mandic f3b4ef2551 simplify seedvr depedencies
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-13 10:20:42 -04:00
Vladimir Mandic 32014fbb9d seedvr requirements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-13 10:04:01 -04:00
Vladimir Mandic 2e4e741d47 seedvt2
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-12 15:35:08 -04:00
Vladimir Mandic eaa7dc119b prototype seedvr
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-11 18:35:43 -04:00
Vladimir Mandic 0f7d2e95ca fix state interrupted checks
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-14 13:03:03 -04:00
Vladimir Mandic 175e9cbe29 cleanup/refactor state history
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-12 16:12:45 -04:00
Disty0 ba7d76eb41 update gfpgan and basicsr commits 2025-09-11 21:18:24 +03:00
Vladimir Mandic 4093b6c040 allow custom detailer resolution
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-10 16:32:50 -04:00
Vladimir Mandic 65287eb402 add detailer prompt styling
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-10 15:48:45 -04:00
Disty0 4b76049aed fix basicsr and gfpgan 2025-09-10 19:13:08 +03:00
Vladimir Mandic b2dbef53e5 restyled all toolbuttons to be modernui native
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-31 15:01:50 -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 2c740697c4 guard against null prompt
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-18 10:29:01 -04:00
Vladimir Mandic ba4bff08d6 remove ldsr and refactor sdnq device map
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-06 09:27:54 -04:00
Vladimir Mandic 7dcc5b67f6 fix yolo model refresh
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-29 06:04:14 -04:00