diff --git a/doctr/models/backbones/resnet/__init__.py b/doctr/models/backbones/resnet/__init__.py index f5cc7c647c..059f261e82 100644 --- a/doctr/models/backbones/resnet/__init__.py +++ b/doctr/models/backbones/resnet/__init__.py @@ -1,4 +1,4 @@ -from doctr import is_tf_available, is_torch_available +from doctr.file_utils import is_tf_available, is_torch_available if is_tf_available(): from .tensorflow import * diff --git a/doctr/models/backbones/vgg/__init__.py b/doctr/models/backbones/vgg/__init__.py index f5cc7c647c..059f261e82 100644 --- a/doctr/models/backbones/vgg/__init__.py +++ b/doctr/models/backbones/vgg/__init__.py @@ -1,4 +1,4 @@ -from doctr import is_tf_available, is_torch_available +from doctr.file_utils import is_tf_available, is_torch_available if is_tf_available(): from .tensorflow import * diff --git a/doctr/models/recognition/sar/__init__.py b/doctr/models/recognition/sar/__init__.py index f5cc7c647c..059f261e82 100644 --- a/doctr/models/recognition/sar/__init__.py +++ b/doctr/models/recognition/sar/__init__.py @@ -1,4 +1,4 @@ -from doctr import is_tf_available, is_torch_available +from doctr.file_utils import is_tf_available, is_torch_available if is_tf_available(): from .tensorflow import *