diff --git a/mmocr/apis/inferencers/base_mmocr_inferencer.py b/mmocr/apis/inferencers/base_mmocr_inferencer.py index 02ac643d9..816239531 100644 --- a/mmocr/apis/inferencers/base_mmocr_inferencer.py +++ b/mmocr/apis/inferencers/base_mmocr_inferencer.py @@ -295,7 +295,7 @@ def visualize(self, img_name = osp.splitext(osp.basename(pred.img_path))[0] if save_vis and img_out_dir: - out_file = osp.splitext(img_name)[0] + out_file = img_name out_file = f'{out_file}.jpg' out_file = osp.join(img_out_dir, out_file) else: