diff --git a/ppocr/data/lmdb_dataset.py b/ppocr/data/lmdb_dataset.py index ffa0522818cd305f624b5fed193e2387dd7e6216..e7bb6dd3c96d24b9dee723e1efdba299e83ad96d 100644 --- a/ppocr/data/lmdb_dataset.py +++ b/ppocr/data/lmdb_dataset.py @@ -11,13 +11,9 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -import copy import numpy as np import os -import random -import paddle from paddle.io import Dataset -import time import lmdb import cv2 diff --git a/ppocr/data/simple_dataset.py b/ppocr/data/simple_dataset.py index e9813cdc9ef9724648ebbf99d97176f31987b8de..e9a0a2ae4c2b77b5a390e7f196f364c529847d71 100644 --- a/ppocr/data/simple_dataset.py +++ b/ppocr/data/simple_dataset.py @@ -11,13 +11,10 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -import copy import numpy as np import os import random -import paddle from paddle.io import Dataset -import time from .imaug import transform, create_operators