Skip to content

Commit

Permalink
fix stablediffusion_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgzn committed Sep 27, 2024
1 parent e49e50e commit 2e113a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/agentscope/models/stablediffusion_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from abc import ABC
from typing import Any, Union, Sequence

from loguru import logger

try:
import webuiapi
except ImportError:
Expand Down Expand Up @@ -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 = (
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 2e113a8

Please sign in to comment.