Skip to content

Commit

Permalink
fix(api): use correct var for diffusion scheduler cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Feb 12, 2023
1 parent feb7e7d commit aaf82a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/diffusion/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def load_pipeline(
last_pipeline_options = options
last_pipeline_scheduler = scheduler_type

if last_pipeline_scheduler != scheduler:
if last_pipeline_scheduler != scheduler_type:
logger.debug("loading new diffusion scheduler")
scheduler = scheduler_type.from_pretrained(
model,
Expand Down

0 comments on commit aaf82a4

Please sign in to comment.