Skip to content

Commit

Permalink
refactor: Removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fg-mindee committed Sep 20, 2021
1 parent 6a572a0 commit 1bcbbe4
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion doctr/models/predictor/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from typing import List, Any, Union

from doctr.io.elements import Document
from doctr.models.preprocessor import PreProcessor
from doctr.models.builder import DocumentBuilder
from doctr.models.detection.predictor import DetectionPredictor
from doctr.models.recognition.predictor import RecognitionPredictor
Expand Down
1 change: 0 additions & 1 deletion doctr/models/predictor/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from doctr.io.elements import Document
from doctr.utils.repr import NestedObject
from doctr.models.preprocessor import PreProcessor
from doctr.models.builder import DocumentBuilder
from doctr.models.detection.predictor import DetectionPredictor
from doctr.models.recognition.predictor import RecognitionPredictor
Expand Down
1 change: 0 additions & 1 deletion doctr/models/recognition/predictor/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import numpy as np
import tensorflow as tf
from tensorflow import keras
from typing import List, Any, Union, Tuple

from doctr.utils.repr import NestedObject
Expand Down
2 changes: 0 additions & 2 deletions scripts/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
gpu_devices = tf.config.experimental.list_physical_devices('GPU')
if any(gpu_devices):
tf.config.experimental.set_memory_growth(gpu_devices[0], True)
else:
import torch


def main(args):
Expand Down
3 changes: 1 addition & 2 deletions test/common/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import requests
import cv2

from doctr.io import reader, Document, DocumentFile
from doctr import models
from doctr.io import reader, DocumentFile
from doctr.models._utils import extract_crops, extract_rcrops, get_bitmap_angle, estimate_orientation


Expand Down

0 comments on commit 1bcbbe4

Please sign in to comment.