fix bug
parent
0dc5ece5a2
commit
a4dcf5d411
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue