Commit Graph

13020 Commits

Author SHA1 Message Date
Vladimir Mandic a26cdca849 Merge pull request #4767 from vladmandic/feat/zimage-native-adapters
Feat/zimage native adapters
2026-04-15 09:36:57 +02:00
Vladimir Mandic c7521f4da4 Merge pull request #4756 from vladmandic/feat/civitai-base-models
feat(civitai): enrich base-model discovery with github constants
2026-04-15 09:34:04 +02:00
Vladimir Mandic 3739456639 Merge pull request #4766 from awsr/patch-1
Support upcoming Civit AI frontend split
2026-04-15 09:32:50 +02:00
Vladimir Mandic 4da4fb94ae Merge pull request #4763 from resonantsky/dev
sd_samplers_diffuse.py patch in response to issue #4761
2026-04-15 09:13:16 +02:00
CalamitousFelicitousness ac78d904b3 refactor(civitai): split base-model helpers into basemodels_civitai
Addresses #4756 review: keeps client_civitai focused on the HTTP client
surface. Behavior unchanged.
2026-04-14 23:26:01 +01:00
CalamitousFelicitousness 5d9b8d2e34 feat(civitai): enrich base-model discovery with github constants
CivitAI removed enum validation from /api/v1/models?baseModels=X (now
returns 200 with empty items on unknown values), which left the
base-model filter dropdown empty. Fix in two parts.

1. Point the base_models discovery probe at /images instead of /models.
   /images still returns a ZodError with the full enum list (82 names
   at time of writing). The existing parser handles the shape unchanged.

2. Also fetch civitai/civitai's base-model.constants.ts from GitHub and
   merge per-name metadata (group, ecosystem, engine, family, hidden)
   into a new base_models_info field on the response. The live probe
   remains authoritative for which names exist; GitHub provides the
   metadata and doubles as a fallback name list if the probe comes back
   empty.

Backward compatible: the existing base_models list keeps the same
shape. Clients that want grouped dropdowns, hidden-flag filtering, or
image/video separation can consume base_models_info instead.

The GitHub fetch has a separate 6h cache since these constants change
much less often than the probes it sits alongside.
2026-04-14 23:26:01 +01:00
CalamitousFelicitousness 65e59e7224 feat(lora): z-image native lokr, loha and oft loaders
Add three adapter families to the z-image native loader and chain them
with the existing lora path through load_safetensors. Mixed-family
files (for example gta6_amateur_photography_zimagebase_v2.safetensors,
which carries lora and lokr groups in the same file) now load
completely instead of having one family silently dropped.

Shared helpers in pipelines/z_image/zimage_lora.py parse keys by
suffix list, rename legacy attention.out and attention.wo to
attention.to_out.0, and split fused attention.qkv into to_q/k/v. For
lora the split chunks the up weight along dim 0. For lokr the split
emits three NetworkModuleLokrChunk entries that share the tensors and
slice the kronecker product at apply time.

Fused attention.qkv for loha and oft is skipped with a warning. No
NetworkModuleHadaChunk exists, oft rotations are tied to out_features
and cannot be cleanly split across q/k/v, and no real z-image adapter
in that layout exists today.

load_safetensors for zimage chains try_load_lora, try_load_lokr,
try_load_loha and try_load_oft and merges their module dicts into a
single Network so mixed files load every module.
2026-04-14 21:48:19 +01:00
CalamitousFelicitousness c35adc4d0d feat(lora): native z-image lora loader
Add zimage to allow_native so lora_force_diffusers picks between
native and diffusers. Before this, zimage always took the diffusers
path regardless of the setting.

pipelines/z_image/zimage_lora.py reads the safetensors and writes
directly into network_layer_mapping, so Z-Image LoRAs no longer go
through the diffusers PEFT converter that raised KeyError on
state dicts with partial alpha keys.

Key formats handled: ai-toolkit, kohya lora_unet_, bare transformer.
and no-prefix. Pre-refactor fused attention.qkv is split into
to_q/k/v; attention.out and attention.wo are renamed to
attention.to_out.0. Alpha and dora_scale are preserved.
2026-04-14 21:13:23 +01:00
awsr 03486deca6 Support upcoming site frontend split
API endpoints are supposed to remain the same, so those don't need updating.
2026-04-14 12:46:12 -07:00
resonantsky 512051bafa samplers: fix UniPCMultistepScheduler sigmas device mismatch at step >= 2
upstream UniPCMultistepScheduler.set_timesteps unconditionally moves self.sigmas to CPU after building them. multistep_uni_p_bh_update / multistep_uni_c_bh_update then constructs a torch.ones(..., device=sample.device) tensor and calls torch.stack([..., self.sigmas[...]]) — crashing at inference step >= 2 whenever the model runs on a non-CPU device (CUDA, ROCm, MPS).

Monkey-patch set_timesteps so that, after the upstream call, self.sigmas is moved back to the requested device. Applied once at import time inside the existing sampler-load try/except block so failures are silent-logged and never break the rest of the sampler registry.
2026-04-14 14:35:29 +02:00
vladmandic 101bd64b8c update todo/changelog
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 14:05:32 +02:00
vladmandic 58649a7935 trivial prompt-to-json
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 13:59:56 +02:00
vladmandic 0a15030067 error checks for fibo
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 13:45:33 +02:00
vladmandic afd246d062 fix vibe installer
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 13:24:09 +02:00
vladmandic 6f471f9050 install vibe on-demand
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 13:20:12 +02:00
vladmandic 0a2462154c step1x
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 13:03:26 +02:00
vladmandic 020bc7a569 cleanup hijacks
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 12:52:51 +02:00
vladmandic f033eaf58a add explicit vae method=none and allow images in history
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 11:51:27 +02:00
CalamitousFelicitousness d04915a83f fix(grading): skip None kwargs so dataclass defaults apply 2026-04-14 00:10:43 +01:00
CalamitousFelicitousness a9a33b2bfa fix(civitai): probe /images for baseModels enum discovery
Civitai stopped validating baseModels on /api/v1/models (returns 200 with
empty items on unknown values), which left API clients without a way to
discover the values. Right now /images still does, I will get a separate
PR to put something more robust in place.
2026-04-13 22:46:52 +01:00
vladmandic a42fc62ede well-known api logging
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-13 16:40:03 +02:00
vladmandic 0b4deb80a4 cleanup
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-13 16:22:56 +02:00
vladmandic defe85df6d update todo
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-13 15:40:25 +02:00
vladmandic 7a6b0bdcc9 bria-fibo prompt-to-json
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-13 12:41:57 +02:00
vladmandic 84c2ddc5ca linting
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-13 12:18:05 +02:00
Vladimir Mandic 522352bac2 Merge pull request #4753 from resonantsky/dev
FP16 Clamp fix for Z-Image-Turbo, enable FP16 on ZiT.
2026-04-13 12:06:55 +02:00
Vladimir Mandic 58354cff07 Merge pull request #4754 from liutyi/dev
BRIA FIBO cover images
2026-04-13 12:02:38 +02:00
Vladimir Mandic b3f09aa417 Merge pull request #4707 from vladmandic/feat/tag-dictionaries
Feat/tag dictionaries
2026-04-13 11:57:48 +02:00
vladmandic a6c726f8d6 update tag-autocomplete
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-13 11:54:59 +02:00
resonantsky 0c9e865641 Restructure FP16 clamp patch into pipelines/z_image/patch_fp16.py subpackage 2026-04-13 11:18:56 +02:00
Oleksandr Liutyi fd70a17e08 BRIA FIBO cover images 2026-04-13 08:58:32 +00:00
resonantsky 407c54dc47 FP16 Clamp fix for Z-Image-Turbo, enable FP16 on ZiT. 2026-04-13 10:37:13 +02:00
vladmandic 1c79467f1e update changelog and todo
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-13 09:28:42 +02:00
Vladimir Mandic e3e0435d89 Merge pull request #4752 from vladmandic/feat/gallery-ux
Feat/gallery ux
2026-04-13 09:27:27 +02:00
CalamitousFelicitousness 5c08821bc0 fix(ui): navigate to Control on right-click prompt/params transfer 2026-04-12 22:39:05 +01:00
CalamitousFelicitousness afff6c1852 feat(ui): right-click send-to-control for prompt/params transfer
Right-clicking the "Send to Images" button now offers two entries:
one copies the prompt only, the other copies all generation parameters
except the image itself. Available in gallery, txt2img, img2img, and
extras. Keeps the results toolbar compact.

- extend ParamBinding with skip_image and only_prompt flags
- create prompt/params variants in all four output panels
- register per-tab context menu entries scoped to #{tab}_tabitem
- match menu selectors via e.target.closest for nested-icon clicks
- document the right-click surface in the "➠ Control" locale hint
2026-04-12 21:51:29 +01:00
Disty0 607ea1f6b0 OpenVINO autodetect FP16 2026-04-12 22:01:30 +03:00
vladmandic a424955542 error handling for undefined pipeline
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 19:47:50 +02:00
vladmandic e5edfbc8c8 openvino test fp16/bf16 force false
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 19:46:30 +02:00
vladmandic 8070e51777 openvino backend
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 19:07:20 +02:00
vladmandic d1a40b3ba7 openvino device selecrtion
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 19:07:20 +02:00
vladmandic 1e38ff4623 update packages
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 19:06:09 +02:00
vladmandic 93f948af13 control add error handling
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 19:06:09 +02:00
vladmandic f06eb21d52 add hf-info
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 19:06:09 +02:00
vladmandic 49b0fa360f error handler for same-device
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 19:06:09 +02:00
vladmandic a00ea46114 add step1x-edit and vibe-edit
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 19:06:08 +02:00
vladmandic b103c2c1ff add gemma-4 heretic variant
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 19:06:08 +02:00
vladmandic da01e6ced2 add lumina-dimoo
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 19:06:08 +02:00
vladmandic 9b54bc5c85 update skills
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 19:06:08 +02:00
vladmandic 5f659553a0 add bria-fibo
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 19:06:08 +02:00