fix bug
This commit is contained in:
@@ -154,7 +154,7 @@ class Model:
|
|||||||
caption=caption,
|
caption=caption,
|
||||||
box_threshold=box_threshold,
|
box_threshold=box_threshold,
|
||||||
text_threshold=text_threshold,
|
text_threshold=text_threshold,
|
||||||
device=self.model.device)
|
device=self.device)
|
||||||
source_h, source_w, _ = image.shape
|
source_h, source_w, _ = image.shape
|
||||||
detections = Model.post_process_result(
|
detections = Model.post_process_result(
|
||||||
source_h=source_h,
|
source_h=source_h,
|
||||||
@@ -197,7 +197,7 @@ class Model:
|
|||||||
caption=caption,
|
caption=caption,
|
||||||
box_threshold=box_threshold,
|
box_threshold=box_threshold,
|
||||||
text_threshold=text_threshold,
|
text_threshold=text_threshold,
|
||||||
device=self.model.device)
|
device=self.device)
|
||||||
source_h, source_w, _ = image.shape
|
source_h, source_w, _ = image.shape
|
||||||
detections = Model.post_process_result(
|
detections = Model.post_process_result(
|
||||||
source_h=source_h,
|
source_h=source_h,
|
||||||
|
Reference in New Issue
Block a user