From 0f667da98b8abecc970848bf3d1f84db9d802d76 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Thu, 2 Jul 2026 04:23:24 +0000 Subject: [PATCH] Train LoRA dialog: stop suggesting absolute paths the backend rejects The dataset and output placeholders showed /path/to/... examples, but the training routes resolve those fields inside the Studio home and reject absolute paths outside the approved roots, so following the placeholder produced a 400. Use folder-name placeholders and say in the labels and the dialog description where each folder resolves. --- .../src/features/images/diffusion-train-dialog.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/studio/frontend/src/features/images/diffusion-train-dialog.tsx b/studio/frontend/src/features/images/diffusion-train-dialog.tsx index cf8fdb4b90..85fe0dd99b 100644 --- a/studio/frontend/src/features/images/diffusion-train-dialog.tsx +++ b/studio/frontend/src/features/images/diffusion-train-dialog.tsx @@ -166,8 +166,9 @@ export function DiffusionTrainDialog({ Train a LoRA (SDXL) Fine-tune an SDXL LoRA on a folder of images. Captions come from a metadata.jsonl, - per-image .txt sidecars, or the instance prompt below. The adapter is saved to the - output folder shown after the run. + per-image .txt sidecars, or the instance prompt below. Folders resolve inside the + Studio home: datasets under its datasets folder, the adapter under its outputs + folder (the exact save path is shown after the run). @@ -182,20 +183,20 @@ export function DiffusionTrainDialog({ />
- + setDataDir(e.target.value)} className="h-8 text-xs" />
- + setOutputDir(e.target.value)} className="h-8 text-xs"