Lower the version of paddlepaddle from 2.2.0 to 2.1.3 and you’re done. Note that there are two commands to run:
python tools/export_model.py -c configs/det/det_r50_vd_sast_totaltext.yml -o Global.checkpoints="./models/sast_r50_vd_total_text/best_accuracy" Global.save_inference_dir="./inference/det_sast_tt" python3 tools/infer/predict_det.py --det_algorithm="SAST" --image_dir="./doc/imgs_en/img_10.jpg" --det_model_dir="./inference/det_sast_tt/" --det_sast_polygon=True --use_gpu=False
/home/PaddleOCR {release/2.3} python3 tools/infer/predict_det.py --det_algorithm="SAST" --image_dir="./doc/imgs_en/img623.jpg" --det_model_dir="./inference/det_sast_tt/" --det_sast_polygon=True --use_gpu=False grep: warning: GREP_OPTIONS is deprecated; please use an alias or script /usr/local/lib/python3.8/site-packages/setuptools/depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp --- Fused 0 subgraphs into layer_norm op. --- fused 0 pairs of fc gru patterns Traceback (most recent call last): File "tools/infer/predict_det.py", line 242, in <module> res = text_detector(img) File "tools/infer/predict_det.py", line 218, in __call__ post_result = self.postprocess_op(preds, shape_list) File "/home/PaddleOCR/ppocr/postprocess/sast_postprocess.py", line 341, in __call__ poly_list = self.detect_sast( File "/home/PaddleOCR/ppocr/postprocess/sast_postprocess.py", line 237, in detect_sast instance_count, instance_label_map = self.cluster_by_quads_tco( File "/home/PaddleOCR/ppocr/postprocess/sast_postprocess.py", line 164, in cluster_by_quads_tco pred_tc = xy_text - tco ValueError: operands could not be broadcast together with shapes (43093,2) (43093,8)
Read More:
- [Solved] Python Keras Error: AttributeError: ‘Sequential‘ object has no attribute ‘predict_classes‘
- `Model.XXX` is not supported when the `Model` instance was constructed with eager mode enabled
- [Solved] AttributeError: ‘NoneType‘ object has no attribute ‘astype‘
- Pytorch ValueError: Expected more than 1 value per channel when training, got input size [1, 768
- [Solved] ParserError: NULL byte detected. This byte cannot be processed in Python‘s native csv library
- KeyError: b ‘TEST’ problem in python3 conversion from csn-rcnn code
- OSError libespeak.so.1 error: no such file or directory [How to Solve]
- Tensorflow import Error: ImportError: libcuda.so.1: cannot open shared object file: No such file or dire
- Python PIP TypeError: expected str, bytes or os.PathLike object, not int
- [Solved] socketio.exceptions.ConnectionError: OPEN packet not returned by server
- [Solved] django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.Did you install mysqlclie
- [Solved] AttributeError: module ‘logging‘ has no attribute ‘Handler‘
- [Solved] HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/saved_model
- [Solved] ValueError: Error when checking input: expected conv2d_input to have 4 dimensions
- How to Solve PIP3 error After upgrading pip3 install –upgrade pip
- [Solved] mmdetection Error: ImportError: /home/user/repos/mmdetection/mmdet/ops/dcn/deform_conv_cuda.cpython-37m-x
- linux ubuntu pip search Fault: <Fault -32500: “RuntimeError: PyPI‘s XMLRPC API is currently disab
- RuntimeError: Address already in use [How to Solve]
- [Solved] RuntimeError: cublas runtime error : resource allocation failed at
- Keras import a custom metric model error: unknown metric function: Please ensure this object is passed to`custom_object‘