Skip to content

Commit

Permalink
fix(api): make sure UNet wrapper always has embeds defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Apr 27, 2023
1 parent bc946bb commit b8b73d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/onnx_web/diffusers/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,11 @@ def optimize_pipeline(


class UNetWrapper(object):
prompt_embeds: Optional[List[np.ndarray]] = None
prompt_index: int = 0
server: ServerContext
wrapped: OnnxRuntimeModel

def __init__(
self,
server: ServerContext,
Expand Down

0 comments on commit b8b73d8

Please sign in to comment.