mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-20 22:13:43 +00:00
Make filenames always have the same size
This commit is contained in:
parent
748e2e55fd
commit
a7808f7f42
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue