The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Originals O3: elements show their Soul ID, take 80 photos and open on Fuobe Soul
Claude0e3d2c856f0a
diff --git a/src/components/element-studio.tsx b/src/components/element-studio.tsxindex 53a29dba..61f8759d 100644--- a/src/components/element-studio.tsx+++ b/src/components/element-studio.tsx@@ -11,6 +11,7 @@ import type { StudioConfig } from "@/components/studio/studio-context";import { TrainDialog } from "@/components/train-dialog";import { Button } from "@/components/ui/button";import { useElement } from "@/lib/api";+import { loraFamily, TRAINING_FAMILIES } from "@/lib/catalog/training";/*** A studio for one element: the prompt starts with its @handle, references are resolved by the@@ -23,6 +24,9 @@ export function ElementStudio({ id }: { id: string }) {const el = q.data;const config = useMemo<StudioConfig | null>(() => {if (!el) return null;+ // A trained Soul ID runs on its family's lead model (Fuobe Soul, or Soul HD) on both engines: start there.+ const fam = el.loras.filter((l) => !l.demo).map(loraFamily).find(Boolean);+ const soul = fam ? TRAINING_FAMILIES[fam].lead : null;return {feature: `element:${el.id}`,title: el.name,@@ -34,14 +38,16 @@ export function ElementStudio({ id }: { id: string }) {: el.kind === "prop"? `Where should ${el.name} show up?`: `What should look like ${el.name}?`,- subtitle: `Mention @${el.handle} in any studio to use ${el.kind === "character" ? "them" : "it"} there too.`,+ subtitle: soul+ ? `Trained: @${el.handle} uses its Soul ID on ${TRAINING_FAMILIES[fam!].name}. Mention it in any studio to use ${el.kind === "character" ? "them" : "it"} there too.`+ : `Mention @${el.handle} in any studio to use ${el.kind === "character" ? "them" : "it"} there too.`,placeholder: `Describe a scene with @${el.handle}…`,kind: "image",ops: ["t2i", "edit"],feed: { features: [`element:${el.id}`, `character:${el.id}`] },slots: [],multiRef: { label: "Add ref", max: 8 },- defaultModels: { cloud: "nano-banana-pro", open: "oss-qwen-edit" },+ defaultModels: soul ? { cloud: soul, open: soul } : { cloud: "nano-banana-pro", open: "oss-qwen-edit" },};}, [el]);@@ -69,6 +75,8 @@ export function ElementStudio({ id }: { id: string }) {);}if (!config || !el) return <StudioSkeleton />;+ const trained = el.loras.filter((l) => !l.demo && !l.referenceId).length;+ const trainLabel = el.status === "training" ? "Training…" : trained ? `Soul ID · ${trained}` : el.loras.some((l) => l.referenceId) ? "Retrain" : "Train";return (<><StudioPage@@ -78,14 +86,14 @@ export function ElementStudio({ id }: { id: string }) {<>{el.kind !== "voice" && (<Button- variant={el.loras.length ? "ghost" : "secondary"}+ variant={trained ? "ghost" : "secondary"}size="sm"onClick={() => setTraining(true)}// The label is hidden on phones.- aria-label={el.status === "training" ? "Training…" : el.loras.length ? `Trained · ${el.loras.length}` : "Train"}+ aria-label={trainLabel}>{el.status === "training" ? <Loader2 className="animate-spin" /> : <GraduationCap />}- <span className="hidden sm:inline">{el.status === "training" ? "Training…" : el.loras.length ? `Trained · ${el.loras.length}` : "Train"}</span>+ <span className="hidden sm:inline">{trainLabel}</span></Button>)}<Button variant="ghost" size="sm" onClick={() => setEditing(true)} aria-label={`Edit ${el.name}`}>diff --git a/src/components/elements-view.tsx b/src/components/elements-view.tsxindex 86eceeb5..b09eb653 100644--- a/src/components/elements-view.tsx+++ b/src/components/elements-view.tsx@@ -28,19 +28,20 @@ import { fileToSlot, MediaSlot, type SlotValue } from "@/components/studio/mediaimport { ELEMENT_ICONS } from "@/components/studio/prompt-input";import { VoiceRecorder } from "@/components/studio/voice-recorder";import { useDeleteElement, useElements, useSaveElement } from "@/lib/api";-import { ELEMENT_KINDS, elementKindInfo, handleFor, type ElementKind, type StudioElement } from "@/lib/catalog/elements";+import { ELEMENT_KINDS, elementKindInfo, handleFor, MAX_ELEMENT_PHOTOS, type ElementKind, type StudioElement } from "@/lib/catalog/elements";+import { isLegacySoulId, SOUL_ID_PHOTOS } from "@/lib/catalog/training";import { copyText } from "@/lib/clipboard";import { cn } from "@/lib/utils";const TIPS: Record<ElementKind, string> = {- character: "3–20 clear photos of one person: different angles, at least one full-body, no sunglasses, filters or group shots.",+ character: `3+ clear photos of one person (${SOUL_ID_PHOTOS.recommended}+ to train a Soul ID, up to ${SOUL_ID_PHOTOS.max}): different angles, at least one full-body, no sunglasses, filters or group shots.`,location: "1–6 photos of the place from a few viewpoints.",prop: "1–4 clean photos of the object, ideally on a plain background.",- style: "2–10 images that share the look you want: palette, lighting, grain, mood.",+ style: "2–10 images that share the look you want: palette, lighting, grain, mood (20+ to train it as a look).",voice: "One clean 10–60 second recording of the voice — just speech, no music. Record it here or upload a WAV or MP3.",};-const MAX_PHOTOS = 20;+const MAX_PHOTOS = MAX_ELEMENT_PHOTOS;function PhotoGrid({ photos, setPhotos }: { photos: SlotValue[]; setPhotos: React.Dispatch<React.SetStateAction<SlotValue[]>> }) {const addFiles = (files: FileList | File[]) => {@@ -110,7 +111,7 @@ interface ElementDialogProps {export function ElementDialog(props: ElementDialogProps) {return (<Dialog open={props.open} onOpenChange={props.onOpenChange}>- <DialogContent className="sm:max-w-[560px]">{props.open && <ElementForm {...props} />}</DialogContent>+ <DialogContent className="max-h-[90svh] overflow-y-auto sm:max-w-[560px]">{props.open && <ElementForm {...props} />}</DialogContent></Dialog>);}@@ -193,7 +194,10 @@ function ElementForm({ onOpenChange, element, defaultKind = "character", onSavedclassName="resize-none text-sm"/><div className="space-y-2">- <p className="text-[12px] text-muted-foreground">{TIPS[kind]}</p>+ <p className="text-[12px] text-muted-foreground">+ {TIPS[kind]}+ {kind !== "voice" && photos.length > 0 && <span className="tabular-nums"> · {photos.length}/{MAX_PHOTOS}</span>}+ </p>{kind === "voice" ? (<VoiceSample value={photos[0]} onChange={(v) => setPhotos(v ? [{ ...v, id: nanoid(6) }] : [])} />) : (@@ -244,6 +248,26 @@ function HandleCopy({ handle }: { handle: string }) {);}+/** Training, Soul ID (a LoRA that runs), Retrain (only a Higgsfield Soul ID) or Demo (only a demo training's stand-in). */+function TrainedBadge({ el }: { el: StudioElement }) {+ const real = el.loras.some((l) => !l.demo && !isLegacySoulId(l));+ const legacy = !real && el.loras.some(isLegacySoulId);+ const label = el.status === "training" ? "Training" : real ? "Soul ID" : legacy ? "Retrain" : el.loras.length ? "Demo" : null;+ if (!label) return null;+ return (+ <span+ className={cn(+ "pointer-events-none absolute top-2 left-2 inline-flex items-center gap-1 rounded-full bg-background/90 px-2 py-0.5 text-[11px] font-medium shadow-soft backdrop-blur",+ real || el.status === "training" ? "text-success" : "text-warning",+ )}+ title={legacy ? "A Higgsfield Soul ID: retrain it for Fuobe Soul on the same photos" : undefined}+ >+ {el.status === "training" ? <Loader2 className="size-3 animate-spin" /> : <GraduationCap className="size-3" />}+ {label}+ </span>+ );+}+function ElementCard({ el }: { el: StudioElement }) {const del = useDeleteElement();const Icon = ELEMENT_ICONS[el.kind];@@ -280,12 +304,7 @@ function ElementCard({ el }: { el: StudioElement }) {</div></Link>)}- {(el.loras.length > 0 || el.status === "training") && (- <span className="pointer-events-none absolute top-2 left-2 inline-flex items-center gap-1 rounded-full bg-background/90 px-2 py-0.5 text-[11px] font-medium text-success shadow-soft backdrop-blur">- {el.status === "training" ? <Loader2 className="size-3 animate-spin" /> : <GraduationCap className="size-3" />}- {el.status === "training" ? "Training" : "Trained"}- </span>- )}+ <TrainedBadge el={el} /><div className="flex items-start justify-between gap-2 p-3"><div className="min-w-0"><p className="truncate font-medium">{el.name}</p>