Skip to content

Commit

Permalink
[Bug Fix] Re-Fix OCR Serving bug. PaddlePaddle#1516 (PaddlePaddle#2011)
Browse files Browse the repository at this point in the history
see PaddlePaddle#1516

Co-authored-by: DefTruth <[email protected]>
  • Loading branch information
bringyou and DefTruth authored Jun 9, 2023
1 parent 7b58387 commit 5f9e8b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def execute(self, requests):
index] > self.cls_threshold:
image_list[index] = cv2.rotate(
image_list[index].astype(np.float32), 1)
image_list[index] = np.astype(np.uint8)
image_list[index] = image_list[index].astype(np.uint8)

rec_pre_tensors = self.rec_preprocessor.run(image_list)
rec_dlpack_tensor = rec_pre_tensors[0].to_dlpack()
Expand Down

0 comments on commit 5f9e8b6

Please sign in to comment.