train_prepare_dataset
Stage training images and captions into a dataset directory for the trainer. Provide image paths with optional captions and a default fallback caption.
Instructions
Stage training images + captions into a dataset dir the trainer consumes. Each item is an image path with an optional caption (a missing caption falls back to defaultCaption — typically the trigger word). Returns the datasetPath to pass to train_start. Character LoRA guidance: 10-30 varied images; caption what changes between images, keep the trigger word constant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Dataset name (becomes the staging dir name). | |
| items | Yes | ||
| defaultCaption | No | Fallback caption for items without one — usually the trigger word. |