Skip to content

Commit

Permalink
fix img2img image_cfg_scale
Browse files Browse the repository at this point in the history
  • Loading branch information
mix1009 committed Feb 6, 2023
1 parent 1f8b41a commit 34593d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name="webuiapi",
version="0.3.2",
version="0.3.3",
description="Python API client for AUTOMATIC1111/stable-diffusion-webui",
url="https://github.com/mix1009/sdwebuiapi",
author="ChunKoo Park",
Expand Down
2 changes: 1 addition & 1 deletion webuiapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .webuiapi import WebUIApi, WebUIApiResult, Upscaler, HiResUpscaler, b64_img, ModelKeywordResult, ModelKeywordInterface, InstructPix2PixInterface

__version__ = "0.3.2"
__version__ = "0.3.3"

__all__ = [
"__version__",
Expand Down
4 changes: 2 additions & 2 deletions webuiapi/webuiapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ def txt2img(self,
batch_size=1,
n_iter=1,
cfg_scale=7.0,
image_cfg_scale=1.5,
width=512,
height=512,
restore_faces=False,
Expand Down Expand Up @@ -169,7 +168,6 @@ def txt2img(self,
"n_iter": n_iter,
"steps": steps,
"cfg_scale": cfg_scale,
"image_cfg_scale": image_cfg_scale,
"width": width,
"height": height,
"restore_faces": restore_faces,
Expand Down Expand Up @@ -211,6 +209,7 @@ def img2img(self,
batch_size=1,
n_iter=1,
cfg_scale=7.0,
image_cfg_scale=1.5,
width=512,
height=512,
restore_faces=False,
Expand Down Expand Up @@ -260,6 +259,7 @@ def img2img(self,
"n_iter": n_iter,
"steps": steps,
"cfg_scale": cfg_scale,
"image_cfg_scale": image_cfg_scale,
"width": width,
"height": height,
"restore_faces": restore_faces,
Expand Down

0 comments on commit 34593d0

Please sign in to comment.