From 014c0574cf9e51bab8db9b8d0467f6d555c2a4fb Mon Sep 17 00:00:00 2001 From: Ean Garvey Date: Mon, 5 Jun 2023 02:44:16 -0500 Subject: [PATCH] use sortable image filenames. --- apps/stable_diffusion/src/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/stable_diffusion/src/utils/utils.py b/apps/stable_diffusion/src/utils/utils.py index ddf444e788..604c0b0bb0 100644 --- a/apps/stable_diffusion/src/utils/utils.py +++ b/apps/stable_diffusion/src/utils/utils.py @@ -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