mirror of
https://github.com/brycedrennan/imaginAIry
synced 2024-11-05 12:00:15 +00:00
feature: have initial generated images in their own folder
This commit is contained in:
parent
30a80faf47
commit
2eec756fab
@ -124,8 +124,8 @@ def imagine_image_files(
|
|||||||
):
|
):
|
||||||
prompt = result.prompt
|
prompt = result.prompt
|
||||||
basefilename = f"{base_count:06}_{prompt.seed}_{prompt.sampler_type}{prompt.steps}_PS{prompt.prompt_strength}_{prompt_normalized(prompt.prompt_text)}"
|
basefilename = f"{base_count:06}_{prompt.seed}_{prompt.sampler_type}{prompt.steps}_PS{prompt.prompt_strength}_{prompt_normalized(prompt.prompt_text)}"
|
||||||
filepath = os.path.join(outdir, f"{basefilename}.jpg")
|
filepath = os.path.join(outdir, "generated", f"{basefilename}.jpg")
|
||||||
|
os.makedirs(filepath, exist_ok=True)
|
||||||
result.save(filepath)
|
result.save(filepath)
|
||||||
logger.info(f" 🖼 saved to: {filepath}")
|
logger.info(f" 🖼 saved to: {filepath}")
|
||||||
if result.upscaled_img:
|
if result.upscaled_img:
|
||||||
|
Loading…
Reference in New Issue
Block a user