Skip to content

Commit

Permalink
fix(api): add out channels to upscaling config
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Nov 19, 2023
1 parent c8dd85e commit e64e514
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/onnx_web/diffusers/pipelines/upscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ def preprocess(image):


class FakeConfig:
block_out_channels: List[int]
scaling_factor: float

def __init__(self) -> None:
self.block_out_channels = [
128,
256,
512
]
self.scaling_factor = 0.08333


Expand Down

0 comments on commit e64e514

Please sign in to comment.