Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
b807ff86
Commit
b807ff86
authored
May 06, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
May 06, 2020
Browse files
tensorflow.compat.v2 is no longer needed.
PiperOrigin-RevId: 310289012
parent
e2a41868
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
19 additions
and
44 deletions
+19
-44
official/vision/detection/ops/nms.py
official/vision/detection/ops/nms.py
+1
-1
official/vision/detection/ops/postprocess_ops.py
official/vision/detection/ops/postprocess_ops.py
+1
-1
official/vision/detection/ops/roi_ops.py
official/vision/detection/ops/roi_ops.py
+1
-1
official/vision/detection/ops/spatial_transform_ops.py
official/vision/detection/ops/spatial_transform_ops.py
+1
-1
official/vision/detection/ops/target_ops.py
official/vision/detection/ops/target_ops.py
+1
-1
official/vision/detection/utils/autoaugment_utils.py
official/vision/detection/utils/autoaugment_utils.py
+0
-25
official/vision/detection/utils/box_utils.py
official/vision/detection/utils/box_utils.py
+1
-1
official/vision/detection/utils/dataloader_utils.py
official/vision/detection/utils/dataloader_utils.py
+1
-1
official/vision/detection/utils/object_detection/argmax_matcher.py
...vision/detection/utils/object_detection/argmax_matcher.py
+1
-1
official/vision/detection/utils/object_detection/balanced_positive_negative_sampler.py
...ls/object_detection/balanced_positive_negative_sampler.py
+1
-1
official/vision/detection/utils/object_detection/box_coder.py
...cial/vision/detection/utils/object_detection/box_coder.py
+1
-1
official/vision/detection/utils/object_detection/box_list.py
official/vision/detection/utils/object_detection/box_list.py
+1
-1
official/vision/detection/utils/object_detection/box_list_ops.py
...l/vision/detection/utils/object_detection/box_list_ops.py
+1
-1
official/vision/detection/utils/object_detection/faster_rcnn_box_coder.py
...detection/utils/object_detection/faster_rcnn_box_coder.py
+1
-1
official/vision/detection/utils/object_detection/matcher.py
official/vision/detection/utils/object_detection/matcher.py
+1
-1
official/vision/detection/utils/object_detection/minibatch_sampler.py
...ion/detection/utils/object_detection/minibatch_sampler.py
+1
-1
official/vision/detection/utils/object_detection/ops.py
official/vision/detection/utils/object_detection/ops.py
+1
-1
official/vision/detection/utils/object_detection/preprocessor.py
...l/vision/detection/utils/object_detection/preprocessor.py
+1
-1
official/vision/detection/utils/object_detection/region_similarity_calculator.py
...on/utils/object_detection/region_similarity_calculator.py
+1
-1
official/vision/detection/utils/object_detection/shape_utils.py
...al/vision/detection/utils/object_detection/shape_utils.py
+1
-1
No files found.
official/vision/detection/ops/nms.py
View file @
b807ff86
...
...
@@ -18,7 +18,7 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
from
official.vision.detection.utils
import
box_utils
...
...
official/vision/detection/ops/postprocess_ops.py
View file @
b807ff86
...
...
@@ -19,7 +19,7 @@ from __future__ import division
from
__future__
import
print_function
import
functools
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
from
official.vision.detection.ops
import
nms
from
official.vision.detection.utils
import
box_utils
...
...
official/vision/detection/ops/roi_ops.py
View file @
b807ff86
...
...
@@ -18,7 +18,7 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
from
official.vision.detection.ops
import
nms
from
official.vision.detection.utils
import
box_utils
...
...
official/vision/detection/ops/spatial_transform_ops.py
View file @
b807ff86
...
...
@@ -18,7 +18,7 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
_EPSILON
=
1e-8
...
...
official/vision/detection/ops/target_ops.py
View file @
b807ff86
...
...
@@ -18,7 +18,7 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
from
official.vision.detection.ops
import
spatial_transform_ops
from
official.vision.detection.utils
import
box_utils
...
...
official/vision/detection/utils/autoaugment_utils.py
deleted
100644 → 0
View file @
e2a41868
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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.
# ==============================================================================
"""AutoAugment util file."""
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
import
tensorflow.compat.v2
as
tf
def
distort_image_with_autoaugment
(
image
,
bboxes
,
augmentation_name
):
raise
NotImplementedError
(
"Not TF 2.0 ready."
)
official/vision/detection/utils/box_utils.py
View file @
b807ff86
...
...
@@ -20,7 +20,7 @@ from __future__ import division
from
__future__
import
print_function
import
numpy
as
np
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
EPSILON
=
1e-8
BBOX_XFORM_CLIP
=
np
.
log
(
1000.
/
16.
)
...
...
official/vision/detection/utils/dataloader_utils.py
View file @
b807ff86
...
...
@@ -14,7 +14,7 @@
# ==============================================================================
"""Utility functions for dataloader."""
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
from
official.vision.detection.utils
import
input_utils
...
...
official/vision/detection/utils/object_detection/argmax_matcher.py
View file @
b807ff86
...
...
@@ -26,7 +26,7 @@ This matcher is used in Fast(er)-RCNN.
Note: matchers are used in TargetAssigners. There is a create_target_assigner
factory function for popular implementations.
"""
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
from
official.vision.detection.utils.object_detection
import
matcher
from
official.vision.detection.utils.object_detection
import
shape_utils
...
...
official/vision/detection/utils/object_detection/balanced_positive_negative_sampler.py
View file @
b807ff86
...
...
@@ -32,7 +32,7 @@ when number of examples set to True in indicator is less than batch_size.
This is originally implemented in TensorFlow Object Detection API.
"""
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
from
official.vision.detection.utils.object_detection
import
minibatch_sampler
from
official.vision.detection.utils.object_detection
import
ops
...
...
official/vision/detection/utils/object_detection/box_coder.py
View file @
b807ff86
...
...
@@ -30,7 +30,7 @@ from abc import ABCMeta
from
abc
import
abstractmethod
from
abc
import
abstractproperty
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
# Box coder types.
...
...
official/vision/detection/utils/object_detection/box_list.py
View file @
b807ff86
...
...
@@ -34,7 +34,7 @@ Some other notes:
* Tensors are always provided as (flat) [N, 4] tensors.
"""
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
class
BoxList
(
object
):
...
...
official/vision/detection/utils/object_detection/box_list_ops.py
View file @
b807ff86
...
...
@@ -28,7 +28,7 @@ from __future__ import division
from
__future__
import
print_function
from
six.moves
import
range
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
from
official.vision.detection.utils.object_detection
import
box_list
from
official.vision.detection.utils.object_detection
import
ops
...
...
official/vision/detection/utils/object_detection/faster_rcnn_box_coder.py
View file @
b807ff86
...
...
@@ -28,7 +28,7 @@ Faster RCNN box coder follows the coding schema described below:
See http://arxiv.org/abs/1506.01497 for details.
"""
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
from
official.vision.detection.utils.object_detection
import
box_coder
from
official.vision.detection.utils.object_detection
import
box_list
...
...
official/vision/detection/utils/object_detection/matcher.py
View file @
b807ff86
...
...
@@ -34,7 +34,7 @@ to query the results.
from
abc
import
ABCMeta
from
abc
import
abstractmethod
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
class
Match
(
object
):
...
...
official/vision/detection/utils/object_detection/minibatch_sampler.py
View file @
b807ff86
...
...
@@ -33,7 +33,7 @@ This is originally implemented in TensorFlow Object Detection API.
from
abc
import
ABCMeta
from
abc
import
abstractmethod
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
from
official.vision.detection.utils.object_detection
import
ops
...
...
official/vision/detection/utils/object_detection/ops.py
View file @
b807ff86
...
...
@@ -18,7 +18,7 @@
This is originally implemented in TensorFlow Object Detection API.
"""
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
from
official.vision.detection.utils.object_detection
import
shape_utils
...
...
official/vision/detection/utils/object_detection/preprocessor.py
View file @
b807ff86
...
...
@@ -39,7 +39,7 @@ we pass it to the functions. At the end of the preprocess we expand the image
back to rank 4.
"""
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
import
numpy
as
np
...
...
official/vision/detection/utils/object_detection/region_similarity_calculator.py
View file @
b807ff86
...
...
@@ -21,7 +21,7 @@ between the boxes in two BoxLists.
from
abc
import
ABCMeta
from
abc
import
abstractmethod
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
def
area
(
boxlist
,
scope
=
None
):
...
...
official/vision/detection/utils/object_detection/shape_utils.py
View file @
b807ff86
...
...
@@ -15,7 +15,7 @@
"""Utils used to manipulate tensor shapes."""
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
def
assert_shape_equal
(
shape_a
,
shape_b
):
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment