Skip to content

Commit

Permalink
fix(api): feather all edges by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Nov 12, 2023
1 parent 1fae41d commit c7cff78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/onnx_web/diffusers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,10 @@ def parse_region_group(group: Tuple[str, ...]) -> Region:

# break down the feather section
feather_radius, *feather_edges = feather.split("_")
feather_edges = "".join(feather_edges)
if len(feather_edges) == 0:
feather_edges = "TLBR"
else:
feather_edges = "".join(feather_edges)

return (
int(top),
Expand Down

0 comments on commit c7cff78

Please sign in to comment.