Skip to content

Add option to name output files #965

@19wolf

Description

@19wolf

Is your feature request related to a problem? Please describe.
I've been rendering images in series of steps, it'd be helpful if I could include that information in the filename.

Describe the solution you'd like
A flag similar to --outdir but like --prefix, maybe some sort of templating capability?

Additional context
I currently generate batches using a simple bash script that writes to a prompts file like so

for seed in 1 2 3; do
for steps in 1 2 3; do
    echo prompt --steps $steps --seed $seed --iterations 1 --outdir outputs/$seed-$steps/ >> prompts.list
done
done

but I would prefer to

for seed in 1 2 3; do
for steps in 1 2 3; do
    echo prompt --steps $steps --seed $seed --iterations 1 --outdir outputs/folder/ --prefix hello-$steps-$seed >> prompts.list
done
done

Where --prefix is the the filename without the extension, and I would end up with outputs/folder/hello-1-2.png or whatever

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions