From de27ac200da03895232665afc8ec5bfe15d61778 Mon Sep 17 00:00:00 2001 From: ScreenGlass Date: Fri, 4 Oct 2024 18:45:52 +0200 Subject: [PATCH] Fix default for `neg` in sample config fix https://github.com/ostris/ai-toolkit/issues/190 --- toolkit/config_modules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/config_modules.py b/toolkit/config_modules.py index bdb36fa0..290fd240 100644 --- a/toolkit/config_modules.py +++ b/toolkit/config_modules.py @@ -45,7 +45,7 @@ def __init__(self, **kwargs): self.width: int = kwargs.get('width', 512) self.height: int = kwargs.get('height', 512) self.prompts: list[str] = kwargs.get('prompts', []) - self.neg = kwargs.get('neg', False) + self.neg = kwargs.get('neg', '') self.seed = kwargs.get('seed', 0) self.walk_seed = kwargs.get('walk_seed', False) self.guidance_scale = kwargs.get('guidance_scale', 7) @@ -878,4 +878,4 @@ def log_image(self, image, count: int = 0, max_count=0): if self.logger is None: return - self.logger.log_image(image, count, self.prompt) \ No newline at end of file + self.logger.log_image(image, count, self.prompt)