Skip to content

Commit

Permalink
fix(api): use pipeline class name in cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Mar 6, 2023
1 parent 55576ae commit 339868d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/diffusers/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def load_pipeline(
lpw: bool,
inversion: Optional[str],
):
pipe_key = (pipeline, model, device.device, device.provider, lpw, inversion)
pipe_key = (pipeline.__name__, model, device.device, device.provider, lpw, inversion)
scheduler_key = (scheduler_name, model)
scheduler_type = get_pipeline_schedulers()[scheduler_name]

Expand Down

0 comments on commit 339868d

Please sign in to comment.