feat: adding filename format template #968
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This proposal is for a feature to let a user define the filename format.
The use case would look like this:
Documentation:
Filename Format
The argument
--fnformatallows to specify the filename of the image. Supported wildcards are all arguments what can be set such asperlin,seed,threshold,height,width,gfpgan_strength,sampler_name,steps,model,upscale,prompt,cfg_scale,prefix.The following prompt
dream> a red car --steps 25 -C 9.8 --perlin 0.1 --fnformat {prompt}_steps.{steps}_cfg.{cfg_scale}_perlin.{perlin}.pnggenerates a file with the name:
outputs/img-samples/a red car_steps.25_cfg.9.8_perlin.0.1.png