-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Traceback (most recent call last):
File "D:\git\PaddleOCR-v3-onnxrun-cpp-py\python\main.py", line 21, in <module>
box_list = detect_model.detect(srcimg)
File "D:\git\PaddleOCR-v3-onnxrun-cpp-py\python\text_det.py", line 189, in detect
box_list, score_list = self.decode(batch, mask)
File "D:\git\PaddleOCR-v3-onnxrun-cpp-py\python\text_det.py", line 22, in __call__
boxes, scores = self.boxes_from_bitmap(pred, segmentation, width, height)
File "D:\git\PaddleOCR-v3-onnxrun-cpp-py\python\text_det.py", line 85, in boxes_from_bitmap
score = self.box_score_fast(pred, contour)
File "D:\git\PaddleOCR-v3-onnxrun-cpp-py\python\text_det.py", line 133, in box_score_fast
xmin = np.clip(np.floor(box[:, 0].min()).astype(np.int), 0, w - 1)
File "D:\git\PaddleOCR-v3-onnxrun-cpp-py\python\venv\lib\site-packages\numpy\__init__.py", line 410, in __getattr__
raise AttributeError(__former_attrs__[attr], name=None)
AttributeError: module 'numpy' has no attribute 'int'.
`np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Metadata
Metadata
Assignees
Labels
No labels