Skip to content

Commit

Permalink
use sortable image filenames.
Browse files Browse the repository at this point in the history
  • Loading branch information
monorimet committed Jun 13, 2023
1 parent 0a4c8fc commit 014c057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/stable_diffusion/src/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ def save_output_img(output_img, img_seed, extra_info={}):

prompt_slice = re.sub("[^a-zA-Z0-9]", "_", args.prompts[0][:15])
out_img_name = (
f"{prompt_slice}_{img_seed}_{dt.now().strftime('%y%m%d_%H%M%S')}"
f"{dt.now().strftime('%H%M%S')}_{prompt_slice}_{img_seed}"
)

img_model = args.hf_model_id
Expand Down

0 comments on commit 014c057

Please sign in to comment.