diff --git a/ppocr/postprocess/rec_postprocess.py b/ppocr/postprocess/rec_postprocess.py index 0ffe917b0eb519cb0dc15efd69ccb40962a308b8..3bc7bcdf9b388bb8da6c656682e2e06a18a0f4fb 100644 --- a/ppocr/postprocess/rec_postprocess.py +++ b/ppocr/postprocess/rec_postprocess.py @@ -93,7 +93,6 @@ class CTCLabelDecode(BaseRecLabelDecode): preds = preds[-1] if isinstance(preds, paddle.Tensor): preds = preds.numpy() - print(preds.shape) preds_idx = preds.argmax(axis=2) preds_prob = preds.max(axis=2) text = self.decode(preds_idx, preds_prob, is_remove_duplicate=True) diff --git a/tools/infer/utility.py b/tools/infer/utility.py index 1b282a0112a96a74f1f0b539c29ca8142191564e..fd2605d963db38ed74908f4e069fa480cfd01baf 100644 --- a/tools/infer/utility.py +++ b/tools/infer/utility.py @@ -313,12 +313,6 @@ def create_predictor(args, mode, logger): for name in input_names: input_tensor = predictor.get_input_handle(name) output_tensors = get_output_tensors(args, mode, predictor) - #output_names = predictor.get_output_names() - #output_tensors = [] - #print("output names", output_names) - #for output_name in output_names: - # output_tensor = predictor.get_output_handle(output_name) - # output_tensors.append(output_tensor) return predictor, input_tensor, output_tensors, config