Batch Outfit Swap
Batch AI outfit replacement for portraits. Supports text description of the target outfit or uploading a reference clothing image. Preserves the person's identity while only swapping the clothes.
meitu batch image-outfit-swap
Note: Batch processing is available from meitu-cli v2.1.1 onward. Please upgrade if you're on an older version.
Usage Examples
# Config file mode (config file required)
meitu batch image-outfit-swap \
--config ./batch.image-outfit-swap.yaml \
--output-dir ./outfit \
--jsonConfig File Example
version: 1
defaults:
outputDir: ./outfit
items:
- input: ./images/person1.jpg
prompt: casual jeans and t-shirt
- input: ./images/person2.jpg
clothes: ./clothes/dress.jpg
prompt: dress from the reference imageParameter Reference
| Parameter | Required | Description |
|---|---|---|
--output-dir | Yes | Output directory |
--config | Yes | Path to YAML/JSON config file (config file required) |
--concurrency | No | Type: number; Default: 3; Number of parallel tasks |
--max-retries | No | Type: number; Default: 0; Number of retries on failure |
--skip-exist | No | Skip existing output files |
--dry-run | No | Preview the plan without execution |
--no-progress | No | Disable per-task progress logging |
--json | No | Output results in JSON format |
--json-output | No | Write results to a specified JSON file |
--skill-name | No | Skill name for server-side attribution |