Skip to content

Commit

Permalink
fix(scripts): fix default scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
Bing-su committed Jul 17, 2024
1 parent a7d9611 commit a17f976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/!adetailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def get_sampler(self, p, args: ADetailerArgs) -> str:
def get_scheduler(self, p, args: ADetailerArgs) -> dict[str, str]:
"webui >= 1.9.0"
if not args.ad_use_sampler:
return {}
return {"scheduler": getattr(p, "scheduler", "Automatic")}

if args.ad_scheduler == "Use same scheduler":
value = getattr(p, "scheduler", "Automatic")
Expand Down

0 comments on commit a17f976

Please sign in to comment.