Skip to content

Commit

Permalink
fix(script): missing get_ad_model
Browse files Browse the repository at this point in the history
  • Loading branch information
Bing-su committed Aug 25, 2024
1 parent 67793f0 commit fabb7de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/!adetailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,8 +818,9 @@ def _postprocess_image_inner(

else:
with change_torch_load():
ad_model = self.get_ad_model(args.ad_model)
pred = ultralytics_predict(
args.ad_model,
ad_model,
image=pp.image,
confidence=args.ad_confidence,
device=self.ultralytics_device,
Expand Down

0 comments on commit fabb7de

Please sign in to comment.