Studio ControlNet: show the picker on the Create tab (workflow id is 'create', not 'txt2img')
The ControlNet control gated on workflow === 'txt2img', but the Images workflow tab ids are create/transform/inpaint/extend/upscale/reference/edit -- there is no 'txt2img'. So the picker never rendered even with a ControlNet-capable model loaded. Gate on 'create' (the text-to-image tab) for both the picker and the request wiring. Found via a live Playwright capture of the running Studio.
This commit is contained in:
parent
4cbb7ceecd
commit
29f61de01e
1 changed files with 2 additions and 2 deletions
|
|
@ -1425,7 +1425,7 @@ export function ImagesPage() {
|
|||
// ControlNet: sent only when a model + control image are chosen; v1 conditions plain
|
||||
// text-to-image only, so skip it for image-conditioned workflows.
|
||||
controlnet:
|
||||
controlnetCapable && controlnetId && controlImage && workflow === "txt2img"
|
||||
controlnetCapable && controlnetId && controlImage && workflow === "create"
|
||||
? {
|
||||
id: controlnetId,
|
||||
image: controlImage,
|
||||
|
|
@ -1971,7 +1971,7 @@ export function ImagesPage() {
|
|||
{/* ControlNet: shown when the loaded model supports it, a model is discoverable, and
|
||||
the plain text-to-image workflow is active (v1 conditions txt2img only). Pick a
|
||||
model, add a control image, choose how to derive the map, and set the strength. */}
|
||||
{controlnetCapable && availableControlNets.length > 0 && workflow === "txt2img" && (
|
||||
{controlnetCapable && availableControlNets.length > 0 && workflow === "create" && (
|
||||
<Field
|
||||
label="ControlNet"
|
||||
hint="Condition the image on a control map (edges / depth / pose). Union models cover many types. Use 'Canny' to trace edges from your image, or 'Passthrough' if it is already a control map."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue