Commit Graph

12737 Commits

Author SHA1 Message Date
vladmandic 3261e2eeae update requirements and introduce constraints
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-23 07:27:50 +01:00
vladmandic 57990fd8c0 add FireRed-Image-Edit-1.1
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-23 06:41:46 +01:00
Vladimir Mandic a6cae50a67 Merge pull request #4700 from vladmandic/feat/flux2-klein-lora
add Flux2/Klein LoRA support
2026-03-23 06:36:31 +01:00
CalamitousFelicitousness 9719290ceb fix(lora): handle kohya-format alpha keys in Flux2/Klein LoRA loading 2026-03-23 02:14:07 +00:00
CalamitousFelicitousness 091f31d4bf add Flux2/Klein LoRA support
- detect f2 model type for LoRAs via metadata, architecture, and filename/folder
- preprocess bare BFL-format keys with diffusion_model prefix for Flux2LoraLoaderMixin
- handle LoKR format via native NetworkModuleLokr with on-the-fly kron(w1, w2)
- add NetworkModuleLokrChunk for fused QKV split into separate Q/K/V modules
- activate native modules loaded via diffusers path
- improve error message for Flux1/Flux2 architecture mismatch
2026-03-23 02:14:07 +00:00
CalamitousFelicitousness 0d248c45e7 fix(upscaler): convert non-RGB images before ESRGAN forward pass 2026-03-23 02:12:59 +00:00
vladmandic deb45c49b3 add rocm config prototype
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-22 17:32:47 +01:00
vladmandic e87fcd1bc5 latent correction hints
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-22 11:27:36 +01:00
vladmandic b2b4e13bab lint
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-22 11:17:41 +01:00
vladmandic e572364766 update modernui
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-22 11:09:45 +01:00
vladmandic afe3786f5f add unet/dir to networks
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-22 11:09:45 +01:00
CalamitousFelicitousness 9a5e908ddf fix(ui): initialize max_length before tokenizer block 2026-03-21 23:27:46 +00:00
vladmandic a54e9b3311 update readme and some debug functions
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-21 09:08:53 +01:00
CalamitousFelicitousness 5e4819c3e9 run enso extension installer after clone and update
After deletion and re-clone, enso.install() runs after
install_extensions() has already passed, so install.py
was never triggered and the frontend was not built.
2026-03-20 21:43:44 +00:00
vladmandic 79bf0f8c1d update changelog/todo
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-20 18:06:27 +01:00
vladmandic 93947d3901 update changelog/todo
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-20 10:14:00 +01:00
Vladimir Mandic ab7c780c9f Merge pull request #4657 from awsr/detailed-token-counts
Add detailed token counts
2026-03-20 10:04:54 +01:00
Vladimir Mandic 8311add607 Merge pull request #4687 from awsr/gallery-sort
Gallery: Decouple sort button icon value from sorting logic
2026-03-20 10:03:16 +01:00
Vladimir Mandic f86b0e69ef Merge pull request #4691 from awsr/errorlimiter-update
Update Errorlimiter to be thread-safe
2026-03-20 10:02:28 +01:00
vladmandic 295fe6fbd3 handle script errors
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-20 09:30:17 +01:00
vladmandic 7588ec0636 cleanup rembg
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-20 09:10:28 +01:00
vladmandic c10472f37a cleanup rembg
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-20 09:10:19 +01:00
Vladimir Mandic 24c4f2599e Merge pull request #4695 from vladmandic/fb-merge
merge feature branch to dev
2026-03-20 08:56:57 +01:00
vladmandic f83e9e7943 deregister rembg submodule
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-20 08:14:01 +01:00
vladmandic 4b998e3866 deregister rembg submodule
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-20 08:13:28 +01:00
vladmandic 760b0121bc update register_api
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-20 08:07:05 +01:00
vladmandic d679fbb8fb move rembg to internal
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-20 08:04:21 +01:00
Vladimir Mandic 6a282d904b Merge pull request #4694 from vladmandic/feat/civitai-browser-overhaul
Feat/civitai browser overhaul
2026-03-20 07:39:06 +01:00
CalamitousFelicitousness 813b61eda8 test: add api tests for generation params and detailer endpoints
Generation tests cover scheduler params, color grading, and latent
corrections. Detailer tests cover model enumeration and object
detection. Both require a running SD.Next instance.
2026-03-20 04:33:51 +00:00
CalamitousFelicitousness 0ec1e9bca2 test: add offline unit tests for color grading and latent corrections
Covers pixel-space color grading and latent-space corrections with
synthetic inputs, no running server required.
2026-03-20 04:33:51 +00:00
CalamitousFelicitousness 9cf2ab08a0 feat(civitai): add url parsing to cli search tool
Extract model ID from civitai.com URLs pasted as the query argument,
matching the same behavior added to the main search module.
2026-03-20 04:33:51 +00:00
CalamitousFelicitousness e7f2b63814 style(ui): add disabled-look class for civitai mutual exclusivity 2026-03-20 04:33:51 +00:00
CalamitousFelicitousness 0be7678ea4 feat(ui): extend civitai download bridge with model/version ids and mutual exclusivity
Add selectedModelId and selectedVersionId to the download bridge so
metadata JSON and preview images are fetched alongside model files.
Pass model_id and version_id from card detail view through
startCivitDownload and downloadCivitModel. Add keyword/tag mutual
exclusivity via disabled-look CSS class toggle.
2026-03-20 04:33:39 +00:00
CalamitousFelicitousness c220e2858c feat(ui): overhaul civitai browser with browse/discover capabilities
Add Sort and Time period dropdowns, change Type from textbox to
dropdown. Rename Advanced accordion to Options. Layout: Model type +
Base model in one row, Sort + Time period in another. Add subfolder
toggle with template auto-fill. Wire tab-enter auto-browse with lazy
API discovery for dynamic dropdown refresh. Set Sort and Time period
values to match the initial auto-browse query. Fix duplicate elem_id
bug on tag field. Pass model_id, version_id, and base_model through
download handler to enable sidecar metadata and preview fetching.
2026-03-20 04:33:31 +00:00
CalamitousFelicitousness 202862fb64 feat(civitai): wire subfolder resolution and sidecar metadata into download
Add base_model, model_id, version_id params to download_civit_model.
Call resolve_save_path when subfolder sorting is enabled. Pass model_id
and version_id to DownloadManager.enqueue so _fetch_sidecar downloads
metadata JSON and preview images alongside the model file. Extract
version_id from the download URL as fallback when not provided.
2026-03-20 04:33:20 +00:00
CalamitousFelicitousness 91d21eefb6 feat(civitai): allow tag-only and sort-only browsing
Relax the empty-query guard so search works with tag, sort, or period
alone. Skip exact-match name filtering when no keyword is provided so
browse results return the full API response.
2026-03-20 04:33:12 +00:00
awsr ef0573a409 Fix TypeError
`func` is optional for `Array.prototype.sort()`, but `undefined` needs to be used.
2026-03-19 14:57:18 -07:00
vladmandic 87659823fc gpu info for xpu and log exclude list
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-19 15:01:49 +01:00
awsr d34896028d Make elimit kwarg optional 2026-03-19 04:41:37 -07:00
Vladimir Mandic 97a16e5eb9 Merge pull request #4690 from vladmandic/fix/color-grading-and-latent-corrections
Fix/color grading and latent corrections
2026-03-19 12:36:02 +01:00
awsr 6e3c187b3f Rework to only use contextmanager system 2026-03-19 04:28:11 -07:00
awsr 615c74fd05 Minor organization 2026-03-19 03:53:06 -07:00
awsr 867960f4ef Minor typing update 2026-03-19 01:50:36 -07:00
awsr 4f40a9c8dd Fix threading compatibility 2026-03-19 01:49:42 -07:00
vladmandic 5a5e3cc381 use rate-limit for api logging
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-19 08:52:10 +01:00
CalamitousFelicitousness e4cb96f6a4 fix(ui): widen latent correction slider ranges
brightness and sharpen: ±1.0 → ±4.0
color: 0-4.0 → 0-16.0
tint strength: ±1.0 → ±4.0
2026-03-19 04:03:20 +00:00
CalamitousFelicitousness 423c3ef8b7 fix(correction): step-based progress and multi-channel latent support
replace hardcoded timestep thresholds with step-based progress percentages
so corrections work with flow-match schedulers (Flux 2, etc.)
adapt brightness, color and tint corrections for multi-channel latents:
- brightness uses multiplicative scaling instead of additive offset
- color applies to all channels instead of skipping channel 0
- tint falls back to uniform offset when TAESD encoding is unavailable
pass step parameter through correction_callback for progress calculation
2026-03-19 04:03:13 +00:00
CalamitousFelicitousness ee2fc75619 fix(grading): color grading type coercion, CLAHE, sharpness and tone scaling
- add __post_init__ to GradingParams to coerce Gradio int returns to float
- apply CLAHE to L channel in Lab space instead of per-RGB channel
- fix sharpness scaling (kornia factor 1.0=no change, map 0-based slider)
- increase shadows/midtones/highlights gamma strength 2x for visible effect
- reduce CLAHE clip slider range to 0-5 with finer 0.25 step
2026-03-19 04:00:12 +00:00
CalamitousFelicitousness cb943919eb fix(devices): triton version detection always reporting false
triton_version was initialized to False instead of None, causing
the `is None` checks to be skipped and torch_info to report triton=false
even when triton is functional
2026-03-18 20:14:02 +00:00
vladmandic fb2f9ea650 new server info panel
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-18 15:37:57 +01:00