DB找不到检测框,EAST和SAST出现outputs index out of range错误
Created by: RONG-SONG
麻烦大佬看下,我该怎么解决检测不到,以及index out of range的问题?
复现如下:
1、下载样本图片,存放位置:"./doc/imgs/9.png"。 链接:https://pan.baidu.com/s/1WzNK3XwYyao1O_HkzzvfDg 提取码:2pwp
2、在PaddleOCR根目录下,直接建立smaple.py,依次修改det_algorithm为DB, EAST, SAST, 运行即可。 代码如下: ` import tools.infer.utility as utility from tools.infer.predict_system import main
def get_args(): args = utility.parse_args() args.det_model_dir = "./inference/ch_ppocr_server_v1.1_det_infer/" args.rec_model_dir = "./inference/ch_ppocr_server_v1.1_rec_infer/" args.cls_model_dir = "./inference/ch_ppocr_mobile_v1.1_cls_infer/" args.use_angle_cls = True args.use_space_char = False args.use_gpu = False args.det_algorithm = "DB"
return args
def run(): args = get_args() args.image_dir = "./doc/imgs/9.png" return main(args)
if name == 'main': print(run()) `