unsloth/studio/frontend/src/components
Daniel Han 8772f81e75 Address Codex review findings on the image-workflows PR
Keep diffusion.py importable without torch: the compile/arch patch modules
import torch at module level, so import them lazily at their load/unload
call sites instead of at module load. This restores the torchless contract
so get_diffusion_backend() works on a CPU/native sd.cpp install.

Match family reject keywords and aliases as whole path/name segments, not
raw substrings, so an unrelated word like edited, edition, or kontextual no
longer misroutes or hides a valid base image model, while supported edit
families (Qwen-Image-Edit, FLUX Kontext) still resolve. Mirror the same
segment matching in the picker task filter.

Route FLUX.2-dev native guidance through --guidance like the other FLUX
families rather than --cfg-scale. Reject native upscale requests that have
no input image. Read image header dimensions and reject over-limit inputs
before decoding pixels, so a crafted small-payload image cannot spike
memory. Reject an upscale that would shrink the source below its input
size. Validate the model_kind against the filename extension before the
GPU handoff. Estimate a local diffusers pipeline's size from its on-disk
weights so auto memory planning does not skip offload and OOM. Report
workflows: [txt2img] from the native backend status so the Create tab
stays enabled for a loaded native model. Clamp the outpaint canvas to the
backend's 4096px decode limit.

Adds regression tests for segment matching and kind/extension validation.
2026-07-02 05:46:50 +00:00
..
assistant-ui Address Codex review findings on the image-workflows PR 2026-07-02 05:46:50 +00:00
layout Update license headers 2026-03-12 17:23:10 +00:00
markdown Update license headers 2026-03-12 17:23:10 +00:00
tauri Polish Studio desktop chrome (#6332) 2026-06-24 17:56:25 -07:00
ui Studio: restyle export source selector (#6562) 2026-06-22 03:52:11 -07:00
web Tidy update banner and auth button spacing (#6279) 2026-06-12 20:01:18 -07:00
app-sidebar.tsx Address review findings on the image-generation PR 2026-07-02 02:17:57 +00:00
example.tsx Update license headers 2026-03-12 17:23:10 +00:00
llama-update-banner.tsx Tighten comments for PR #6493 (#6539) 2026-06-21 05:49:07 -07:00
mascot-img.tsx Studio: mascot images degrade gracefully instead of showing alt text (#6146) 2026-06-10 08:22:17 -07:00
navbar.tsx Polish Studio desktop chrome (#6332) 2026-06-24 17:56:25 -07:00
section-card.tsx Update license headers 2026-03-12 17:23:10 +00:00
shutdown-dialog.tsx Studio frontend: reduce and tighten code comments (#6099) 2026-06-08 23:10:35 -07:00