From 2e113a8e3e25feed911bfcfc7fef121cc3a71d47 Mon Sep 17 00:00:00 2001 From: cmgzn Date: Fri, 27 Sep 2024 17:22:29 +0800 Subject: [PATCH] fix stablediffusion_model.py --- src/agentscope/models/stablediffusion_model.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/agentscope/models/stablediffusion_model.py b/src/agentscope/models/stablediffusion_model.py index 2ab32d467..1d5d20f54 100644 --- a/src/agentscope/models/stablediffusion_model.py +++ b/src/agentscope/models/stablediffusion_model.py @@ -3,8 +3,6 @@ from abc import ABC from typing import Any, Union, Sequence -from loguru import logger - try: import webuiapi except ImportError: @@ -66,7 +64,6 @@ def __init__( # Set options if provided if options: self.api.set_options(options) - logger.info(f"Set webui options: {options}") # Get the default model name from the web-options model_name = ( @@ -97,7 +94,7 @@ def __call__( Args: prompt (`str`): The prompt string to generate images from. - save_local (`bool`, default `False`): + save_local (`bool`, default `True`): Whether to save the generated images locally. **kwargs (`Any`): The keyword arguments to SD-webui txt2img API, e.g.