diff --git a/pyproject.toml b/pyproject.toml index 1595efe..5bb675c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "dddetailer" -version = "23.4.4" +version = "23.4.5" description = "An object detection and auto-mask extension for Stable Diffusion web UI." authors = [ {name = "dowon", email = "ks2515@naver.com"}, diff --git a/scripts/ddetailer.py b/scripts/ddetailer.py index 42ae7d8..7e0f143 100644 --- a/scripts/ddetailer.py +++ b/scripts/ddetailer.py @@ -16,7 +16,7 @@ from modules import ( scripts, shared, ) -from modules.paths import models_path +from modules.paths import data_path, models_path from modules.processing import ( Processed, StableDiffusionProcessingImg2Img, @@ -748,6 +748,11 @@ class DetectionDetailerScript(scripts.Script): state.job = f"Generation {n + 1} out of {state.job_count}" + if dd_prompt or dd_neg_prompt: + params_txt = os.path.join(data_path, "params.txt") + with open(params_txt, "w", encoding="utf-8") as file: + file.write(infotexts[0]) + return Processed( p, output_images,