Restore missing required asset/flow packages from the pinned nigig revision; retain upstream script isolation, X11 hover, and widget-core fixes. Validated makepad-widgets data feature with Rust 1.97.1.
15 lines
638 B
Text
15 lines
638 B
Text
use mod.flow.*
|
|
|
|
/** Body options: combine `hands`, `detect`, and `persons=N` as needed. */
|
|
let prompt = Input{ type: @text default: "hands detect persons=1" }
|
|
/** The person image to analyse. */
|
|
let image = Input{ type: @image }
|
|
let body = Body{ prompt: prompt.text() image: image.image() model: "sam3dbody" }
|
|
/** Publish the structured body-pose packet into the flow asset library. */
|
|
let published = Publish{ value: body.json() namespace: "flows" tags: ["flow", "body", "pose"] }
|
|
|
|
Flow{
|
|
label: "Body pose"
|
|
brief: "Recovers a structured SAM 3D Body pose packet from a supplied person image."
|
|
prompt, image, body, published
|
|
}
|