From 2cdf723fe130b8a71155df8a6e821efebc8e93e4 Mon Sep 17 00:00:00 2001 From: wanghaoshuang Date: Mon, 20 Aug 2018 06:35:21 +0000 Subject: [PATCH] Remove v2 api. --- fluid/ocr_recognition/ctc_reader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluid/ocr_recognition/ctc_reader.py b/fluid/ocr_recognition/ctc_reader.py index a272e91a..fcf9bd8c 100644 --- a/fluid/ocr_recognition/ctc_reader.py +++ b/fluid/ocr_recognition/ctc_reader.py @@ -4,8 +4,8 @@ import tarfile import numpy as np from PIL import Image from os import path -from paddle.v2.image import load_image -import paddle.v2 as paddle +from paddle.dataset.image import load_image +import paddle NUM_CLASSES = 95 DATA_SHAPE = [1, 48, 512] -- GitLab