Update SPEC.md: add direction_in optional input, direction output
This commit is contained in:
2
SPEC.md
2
SPEC.md
@@ -56,6 +56,7 @@ When `direction` is left blank, the direction folder is omitted:
|
||||
| `frame` | `STRING` | Text | `""` | Frame index as string. Empty string or whitespace-only = load all images as a batch. `"0"` = first image (0-based). |
|
||||
| `width` | `INT` | Number | `0` | Target resize width in pixels. `0` = leave original width. |
|
||||
| `height` | `INT` | Number | `0` | Target resize height in pixels. `0` = leave original height. |
|
||||
| `direction_in` | `STRING` | Optional input | `""` | Optional STRING input that, if connected, takes precedence over `direction`. Enables chaining a direction output from another node into this input. |
|
||||
|
||||
### Resize Behavior
|
||||
- If `width == 0` and `height == 0`: no resize.
|
||||
@@ -73,6 +74,7 @@ When `direction` is left blank, the direction folder is omitted:
|
||||
|------|------|-------------|
|
||||
| `IMAGE` | `IMAGE` | Tensor of shape `(B, H, W, C)` where `B` = batch size. `B = 1` for a single frame; `B = N` when `frame` is empty (all images loaded as a batch). |
|
||||
| `path` | `STRING` | The resolved file system path. For single frame: absolute path to the image file. For batch mode: absolute path to the directory containing the images. |
|
||||
| `direction` | `STRING` | The resolved direction string (`"n"`, `"s"`, `"nw"`, `""`, etc.). Can be fed into the `direction_in` input of another `CompassImageLoader` node to chain direction values. |
|
||||
| `width` | `INT` | Final width in pixels after any resizing. |
|
||||
| `height` | `INT` | Final height in pixels after any resizing. |
|
||||
| `frame_count` | `INT` | Number of frames loaded. `1` for single frame, `N` for batch mode. |
|
||||
|
||||
Reference in New Issue
Block a user