File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
research/object_detection/models Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 18
18
from __future__ import absolute_import
19
19
from __future__ import division
20
20
from __future__ import print_function
21
+ from keras .applications import resnet
21
22
22
23
import tensorflow .compat .v1 as tf
23
24
24
25
from object_detection .core import freezable_batch_norm
25
26
from object_detection .models .keras_models import model_utils
26
27
27
- try :
28
- from keras .applications import resnet # pylint:disable=g-import-not-at-top
29
- except ImportError :
30
- from tensorflow .python .keras .applications import resnet # pylint:disable=g-import-not-at-top
31
-
32
28
33
29
def _fixed_padding (inputs , kernel_size , rate = 1 ): # pylint: disable=invalid-name
34
30
"""Pads the input along the spatial dimensions independently of input size.
Original file line number Diff line number Diff line change 19
19
from __future__ import print_function
20
20
21
21
from absl import logging
22
+ from keras import backend as keras_backend
22
23
from six .moves import range
23
24
from six .moves import zip
24
25
import tensorflow .compat .v2 as tf
25
26
26
- from tensorflow .python .keras import backend as keras_backend
27
27
from object_detection .meta_architectures import ssd_meta_arch
28
28
from object_detection .models import bidirectional_feature_pyramid_generators as bifpn_generators
29
29
from object_detection .utils import ops
30
30
from object_detection .utils import shape_utils
31
31
from object_detection .utils import tf_version
32
+
32
33
# pylint: disable=g-import-not-at-top
33
34
if tf_version .is_tf2 ():
34
35
try :
You can’t perform that action at this time.
0 commit comments