Skip to content

Commit 585eedc

Browse files
committed
fix: cor ct ratio inpaint sdxl
1 parent a622f04 commit 585eedc

5 files changed

Lines changed: 425 additions & 423 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The goal of this project is to make Stable Diffusion more accessible, simple and
66

77
**Installation:**
88
```
9-
pip install stablepy==0.4.0
9+
pip install stablepy==0.4.1
1010
```
1111

1212
**Usage:**

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "stablepy"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
description = "A tool for easy use of stable diffusion"
55
authors = ["Roger Condori(R3gm) <rocondoriflores@gmail.com>"]
66
readme = "README.md"

stablepy/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.4.0"
1+
__version__ = "0.4.1"

stablepy/diffusers_vanilla/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,6 +1959,8 @@ def __call__(
19591959
if self.task_name == "inpaint":
19601960
pipe_params_config["strength"] = strength
19611961
pipe_params_config["mask_image"] = control_mask
1962+
pipe_params_config["height"] = control_image.size[1]
1963+
pipe_params_config["width"] = control_image.size[0]
19621964
elif self.task_name not in ["txt2img", "inpaint", "img2img"]:
19631965
if "t2i" not in self.task_name:
19641966
pipe_params_config[

0 commit comments

Comments
 (0)