Commit Graph

14187 Commits

Author SHA1 Message Date
Vladimir Mandic dcdfa5534f Rename workflow to 'Edit Readme Sponsors' 2026-08-22 11:20:07 +02:00
Vladimir Mandic 3b7fce9c69 Merge pull request #5035 from kirtasshh/claude/sdnext-detailer-class-prompts-sunhax
Detailer: per-class prompts via [CLASS=name] tags
2026-08-18 17:36:00 +02:00
Claude 80d575f9ab Remove standalone doc file, per maintainer request
Maintainer asked for this to go into wiki/Detailer.md via a PR comment
instead of a separate file at the repo root.
2026-08-18 11:07:22 +00:00
Claude ddbbd15a25 docs: document per-tag granularity, chain scalability, and stress test results
Adds everything validated in the latest round of testing:
- multiple detections of the same class share one identical template
- a full tag's text runs to the next newline, never implicitly split
- typo detection is per-tag (not per-model or all-or-nothing), verified
  within a single multi-class model's own detections too
- no code-level cap on chain length; verified with 7 chained models
- 800-generation stress test: ~0.24ms/generation, ~0 net memory growth,
  fully deterministic, zero log output when everything resolves cleanly
- no stale cross-generation state; removing a model from the chain
  produces an accurate orphaned-tag warning, not a false positive
2026-08-17 20:04:36 +00:00
Claude f782eea23e docs: note that "Sort detections" was checked against the fallback trap
Brief aside in the fallback-pool section: the pre-existing left-to-right
sort option doesn't affect [CLASS=...]-tagged classes and only slightly
stabilizes the untagged fallback pool, so the existing guidance stands.
2026-08-16 20:16:51 +00:00
Claude 80fe9aa268 docs: mention the existing "Include detections" option as a debugging aid
Pre-existing SD.Next feature, unrelated to this patch, that overlays
each detection with its class name and confidence score on a second
output image. Worth calling out here since it pairs directly with
[CLASS=name] tagging as a visual way to confirm labels without reading
logs.
2026-08-16 20:04:11 +00:00
Claude c9e0183066 docs: clarify the typo warning's dual nature (typo vs. genuine miss)
Notes explicitly that the warning can't distinguish a misspelled
[CLASS=name] tag from a correctly-spelled one that simply found no
matching detection this generation - both produce identical warning
text. Also notes the practical upside either way: it reliably signals
"this class's prompt was not applied this run," which is useful on its
own even without knowing the cause.
2026-08-16 18:11:34 +00:00
Claude 41ebe9e978 docs: add authorship disclosure
Notes that the code was written by Claude Code under my direction and
review, rather than leaving that ambiguous to readers.
2026-08-16 17:07:46 +00:00
Claude d9f550d45a docs: document merge() incompatibility with per-class prompts
Detailer.merge() (pre-existing, unrelated to this patch) collapses all
detections from a model pass into one box and keeps only the first
detection's label, order-dependent. Verified with the real merge() code:
tagging two classes on a model that can report both in one pass, with
"Merge detailers" enabled, silently drops one class's prompt and the
surviving one flips between runs. Conceptually incompatible with
per-class tagging, not something to "fix" here.
2026-08-16 16:49:26 +00:00
Claude d2995d6311 docs: document that multiple untagged fallback lines re-create positional order risk
Clarifies that the fallback pool is filled positionally with no
understanding of a line's content, so relying on two or more untagged
lines to land on distinct classes reproduces the exact order-instability
problem [CLASS=name] tags exist to solve. Expected behavior, not a bug.
2026-08-16 16:33:58 +00:00
Claude a5876b6496 detailer: skip blank lines when building the fallback prompt pool
A blank spacer line between a [CLASS=...] line and a plain fallback
line (common when formatting the prompt for readability) was being
counted as an empty fallback entry, silently pushing the real fallback
text out of position and handing untagged detections an empty prompt.
2026-08-16 16:26:20 +00:00
Claude f66748b478 docs: add write-up for the [CLASS=name] Detailer prompt patch
Explains the problem, syntax, fallback/typo-warning behavior, and the
implementation, so it's readable directly on the branch instead of only
in an external write-up.
2026-08-16 16:00:03 +00:00
Claude 14e11116f9 detailer: aggregate class-tag warning across the whole model chain
Previously each detailer model in the chain warned independently about
[CLASS=name] tags absent from its own detections, so a tag meant for a
different model in the same chain (e.g. [CLASS=pussy] when the current
pass is a face-only model) was flagged as if it were a typo.

Now prompt/negative are resolved once before the model loop (they don't
vary per model), and matched class names are accumulated across every
model's detections. Only tags that never matched anywhere in the whole
chain trigger a single warning at the end, so legitimate multi-model
class targeting stays silent while genuine typos are still caught.
2026-08-16 14:29:46 +00:00
Claude feb323a965 detailer: warn on [CLASS=name] tags with no matching detection
Catches typos in class tags (e.g. [CLASS=hnad] vs an actual detected
label of "hand") by logging a warning listing which tags went unmatched
and which labels were actually detected in that pass, instead of
silently falling back to the positional prompt with no signal.
2026-08-16 14:06:00 +00:00
Claude c11de41774 detailer: assign prompt per detected class via [CLASS=name] tag
Detailer prompts previously mapped to multi-class YOLO detections purely
by line order/index, so results were unstable when detection order
varied between runs. Lines prefixed with [CLASS=name] (comma-separated
for multiple classes) now target detections by their YOLO label
directly; untagged lines remain the positional fallback for detections
with no matching class tag, preserving prior behavior when no tags are
used.
2026-08-16 13:32:25 +00:00
Vladimir Mandic ea889af1ca Merge pull request #5011 from vladmandic/dev
dev merge
2026-08-07 18:51:39 +02:00
Vladimir Mandic d77bb29bc1 Merge pull request #5010 from vladmandic/master
dev update
2026-08-07 18:50:54 +02:00
Vladimir Mandic 22a119ffbf pre-merge update
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-07 18:43:42 +02:00
Vladimir Mandic 48cf0166f3 separate progress monitoring from live preview, live preview improvements, progress details
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-07 11:41:40 +02:00
Vladimir Mandic b092cf7318 unauthenticated path traversal in /thumbs
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-06 18:45:06 +02:00
Vladimir Mandic 0b64c4f981 update changelog
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-06 18:34:37 +02:00
Dity0 08b2729c22 AMD takes forever to compile with num_stages > 1 2026-08-06 15:20:14 +03:00
Vladimir Mandic 5d71061946 Merge pull request #5007 from liutyi/dev
Microsoft Mage 4B reference images
2026-08-06 13:38:42 +02:00
Oleksandr Liutyi d00e64e0be Microsoft Mage 4B reference images 2026-08-06 11:29:33 +00:00
Vladimir Mandic 6e448de56c switch to internally managed uvicorn
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-06 13:24:48 +02:00
Vladimir Mandic 0efd18aed5 skip sdnq openvino on non-cpu devices
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-05 20:10:51 +02:00
Vladimir Mandic 7fdaefda0b aux prevent race condition
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-05 14:38:37 +02:00
Vladimir Mandic c26149b80e krea2 add inpaint and detailer support
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-05 13:07:24 +02:00
Vladimir Mandic 84905f77da improve server monitor and profiling
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-05 12:19:07 +02:00
Vladimir Mandic a1df374773 add support for nunchaku-lite models and engine
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-04 15:31:05 +02:00
Dity0 9a7fa12218 SDNQ add minimum_allowed_channel_size 2026-08-04 15:46:38 +03:00
Vladimir Mandic a83795273e prompt enhance and caption use llm-context
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-04 14:21:53 +02:00
Vladimir Mandic 808a25749f update sefi model and add rl variant
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-04 12:40:55 +02:00
Dity0 beacd02487 cleanup 2026-08-04 13:09:07 +03:00
Dity0 c55a1f1e11 lazy init ov_core 2026-08-04 13:01:11 +03:00
Vladimir Mandic 55ba386941 torch reset dynamo cache on model reload
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-04 10:58:32 +02:00
Dity0 b76ec32ac0 cleanup 2026-08-04 11:18:54 +03:00
Dity0 89d2bef078 Add device checks on kernel_wrappers and support OpenVINO MM for CPU and Triton MM for GPU at the same time 2026-08-04 11:16:53 +03:00
Vladimir Mandic 514a68b1af add storage analyzer
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-02 11:22:12 +02:00
Vladimir Mandic 78f843f969 networks avoid slow yield
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-01 09:10:15 +02:00
Vladimir Mandic 37dfedb8ff update changelog
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-31 15:20:45 +02:00
Vladimir Mandic 81ea0a835a test flag also test linked previews
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-31 15:20:45 +02:00
Vladimir Mandic b96456bb2c add sefi-image model
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-31 15:20:45 +02:00
Vladimir Mandic 2b442bfabb add mage-flow
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-31 15:20:45 +02:00
Dity0 e532958ad4 cleanup openvino mm 2026-07-31 08:44:45 +03:00
Vladimir Mandic 59f077604c rembg add lucida
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-30 14:39:30 +02:00
Dity0 1b1f6c5863 Update SDNQ and Diffusers to support SDNQ in native upstream Diffusers 2026-07-30 11:24:27 +03:00
Vladimir Mandic 6941122a96 update packages
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-29 08:57:52 +02:00
Vladimir Mandic 9056b88f69 fix select network checkpoint
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-29 08:13:45 +02:00
Vladimir Mandic c6dc750a81 remove resolution from some reference models
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-28 14:18:55 +02:00