CalamitousFelicitousness
3dd0cd590c
fix(pipelines): restore clip-skip text encoding for transformers 5.6+
...
The vendored encode_prompt copies in the PAG, APG, ControlNet-XS and differential
diffusion pipelines dereference the .text_model wrapper that transformers 5.6
removed from CLIPTextModel, so their clip-skip path crashes on SD1.5 and SDXL TE1.
Apply the same getattr(te, 'text_model', te) fix as the core parser.
Mirrors upstream diffusers, which still carries this deref in pipeline
encode_prompt; only the single-file loader was fixed there.
2026-06-25 02:25:33 +01:00
Vladimir Mandic
5e99dee3c2
full codespell coverage
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-06-04 12:36:10 +02:00
Vladimir Mandic
feeafc6286
strict ruff without exclude
...
Co-authored-by: Copilot <copilot@github.com >
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-11 08:36:49 +02:00
Vladimir Mandic
c8d6fd5cf8
Revert "much stricter ruff linting"
...
This reverts commit 310dbf1574 .
2026-05-11 08:13:57 +02:00
Vladimir Mandic
310dbf1574
much stricter ruff linting
...
Co-authored-by: Copilot <copilot@github.com >
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-11 07:15:37 +02:00
vladmandic
b5e9fbc7b3
reorganize scripts/extensions
...
Signed-off-by: vladmandic <mandic00@live.com >
2026-03-27 14:00:46 +01:00
awsr
c3cce0ad76
PEP 484 scripts directory
2026-03-25 16:56:28 -07:00
Vladimir Mandic
d65a2d1ebc
ruff lint
2026-02-19 11:13:44 +01:00
Vladimir Mandic
e5c494f999
cleanup logger
2026-02-19 11:09:13 +01:00
Vladimir Mandic
a3074baf8b
unified logger
2026-02-19 09:46:42 +01:00
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
f9aa2591e5
fix gallery save/delete
...
Signed-off-by: vladmandic <mandic00@live.com >
2026-01-20 09:53:20 +01:00
vladmandic
cc0b0e8e3d
cleanup todo
...
Signed-off-by: vladmandic <mandic00@live.com >
2026-01-19 11:10:05 +01:00
Vladimir Mandic
30da7803b5
futureproof
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-01-15 09:29:26 +00:00
Vladimir Mandic
e8b5ea3847
major refactor: remove backend original
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-07-05 13:16:46 -04:00
Vladimir Mandic
c4d9338d2e
major refactoring of modules
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-07-03 09:18:38 -04:00
Vladimir Mandic
8473bae0fc
1000 papercuts
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-05-13 21:51:33 -04:00
Vladimir Mandic
0e10feaac3
sort and describe all scripts
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2024-11-08 11:32:49 -05:00
Vladimir Mandic
e746871962
flux extra controlnets and differential diffusion
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2024-10-16 10:10:58 -04:00
Vladimir Mandic
c376566fb6
fix compatibility with latest diffusers
2024-07-01 11:51:46 -04:00
Vladimir Mandic
5574833f0d
refactor backend detection
2024-06-06 20:41:10 -04:00
Vladimir Mandic
0cedf950f2
update diffusers, release notes, lint fixes
2024-05-27 08:59:57 -04:00
Vladimir Mandic
35665cd719
new from_single_file compatibiltiy
2024-05-09 16:27:21 -04:00
Vladimir Mandic
ed037bb48c
error handling on incompatible batch-sizes
2024-04-09 14:45:49 -04:00
Vladimir Mandic
9d04255b54
reorganize js callbacks and startup sequence
2024-04-04 18:26:51 -04:00
23pennies
afa3c6c4d1
fix mask defined by user in differential diffusion script
2024-03-10 12:56:34 +01:00
Vladimir Mandic
17f2f8d98f
add include mask in output, improve model offload compatibility
2024-02-24 11:06:14 -05:00
Vladimir Mandic
aec8f76c15
add differential-diffusion support for sd15
2024-02-20 13:14:32 -05:00
Vladimir Mandic
02394356e7
add differential diffusion
2024-02-20 10:06:42 -05:00