Skip to content

Commit

Permalink
fix(rapidocr_onnxruntime): fix normalize value of det (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
SWHL committed Oct 31, 2024
1 parent 801bfae commit ce06654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/rapidocr_onnxruntime/ch_ppocr_det/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

class DetPreProcess:
def __init__(self, limit_side_len: int = 736, limit_type: str = "min"):
self.mean = np.array([0.485, 0.456, 0.406])
self.std = np.array([0.229, 0.224, 0.225])
self.mean = np.array([0.5, 0.5, 0.5])
self.std = np.array([0.5, 0.5, 0.5])
self.scale = 1 / 255.0

self.limit_side_len = limit_side_len
Expand Down

0 comments on commit ce06654

Please sign in to comment.