diff --git a/groundingdino/util/inference.py b/groundingdino/util/inference.py index 60e038d..f4c6c92 100644 --- a/groundingdino/util/inference.py +++ b/groundingdino/util/inference.py @@ -154,7 +154,7 @@ class Model: caption=caption, box_threshold=box_threshold, text_threshold=text_threshold, - device=self.model.device) + device=self.device) source_h, source_w, _ = image.shape detections = Model.post_process_result( source_h=source_h, @@ -197,7 +197,7 @@ class Model: caption=caption, box_threshold=box_threshold, text_threshold=text_threshold, - device=self.model.device) + device=self.device) source_h, source_w, _ = image.shape detections = Model.post_process_result( source_h=source_h,