mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-28 03:14:43 +01:00
Make filenames always have the same size
This commit is contained in:
parent
748e2e55fd
commit
a7808f7f42
|
|
@ -140,7 +140,7 @@ def save_generated_images(images, state, actual_seed):
|
|||
|
||||
for idx, img in enumerate(images):
|
||||
timestamp = datetime.now().strftime("%H-%M-%S")
|
||||
filename = f"{timestamp}_{actual_seed}_{idx}.png"
|
||||
filename = f"{timestamp}_{actual_seed:010d}_{idx:03d}.png"
|
||||
filepath = os.path.join(folder_path, filename)
|
||||
|
||||
# Create PNG metadata
|
||||
|
|
|
|||
Loading…
Reference in a new issue