Skip to content

Commit

Permalink
Set default grow/feather to 5%
Browse files Browse the repository at this point in the history
  • Loading branch information
Acly committed Feb 15, 2024
1 parent 113639d commit 207ca81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ai_diffusion/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Settings(QObject):
"Server Path",
str(Path(__file__).parent / ".server"),
"Directory where ComfyUI will be installed. At least 10GB of free disk space is required"
" for a full installation.",
" for a minimal installation.",
)

server_url: str
Expand All @@ -94,12 +94,12 @@ class Settings(QObject):

selection_grow: int
_selection_grow = Setting(
"Selection Grow", 7, "Selection area is expanded by a fraction of its size"
"Selection Grow", 5, "Selection area is expanded by a fraction of its size"
)

selection_feather: int
_selection_feather = Setting(
"Selection Feather", 7, "The border is blurred by a fraction of selection size"
"Selection Feather", 5, "The border is blurred by a fraction of selection size"
)

selection_padding: int
Expand Down
2 changes: 1 addition & 1 deletion tests/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def test_scaled_extent_upscale():
def test_scaled_extent_upscale_small():
e = ScaledExtent(Extent(100, 50), Extent(100, 50), Extent(140, 70), Extent(144, 72))
assert e.initial_scaling is ScaleMode.none
assert e.refinement_scaling is ScaleMode.upscale_latent
assert e.refinement_scaling is ScaleMode.upscale_small
assert e.target_scaling is ScaleMode.resize
assert e.convert(Extent(140, 70), "desired", "target") == Extent(144, 72)
assert e.convert(Extent(140, 70), "desired", "initial") == Extent(100, 50)
Expand Down

0 comments on commit 207ca81

Please sign in to comment.