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
2 changed files
with
2 additions
and
2 deletions
+2
-2
official/vision/detection/utils/object_detection/target_assigner.py
...ision/detection/utils/object_detection/target_assigner.py
+1
-1
official/vision/detection/utils/object_detection/visualization_utils.py
...n/detection/utils/object_detection/visualization_utils.py
+1
-1
No files found.
official/vision/detection/utils/object_detection/target_assigner.py
View file @
b807ff86
...
@@ -31,7 +31,7 @@ Note that TargetAssigners only operate on detections from a single
...
@@ -31,7 +31,7 @@ Note that TargetAssigners only operate on detections from a single
image at a time, so any logic for applying a TargetAssigner to multiple
image at a time, so any logic for applying a TargetAssigner to multiple
images must be handled externally.
images must be handled externally.
"""
"""
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
box_list
from
official.vision.detection.utils.object_detection
import
shape_utils
from
official.vision.detection.utils.object_detection
import
shape_utils
...
...
official/vision/detection/utils/object_detection/visualization_utils.py
View file @
b807ff86
...
@@ -31,7 +31,7 @@ import PIL.ImageColor as ImageColor
...
@@ -31,7 +31,7 @@ import PIL.ImageColor as ImageColor
import
PIL.ImageDraw
as
ImageDraw
import
PIL.ImageDraw
as
ImageDraw
import
PIL.ImageFont
as
ImageFont
import
PIL.ImageFont
as
ImageFont
import
six
import
six
import
tensorflow
.compat.v2
as
tf
import
tensorflow
as
tf
from
official.vision.detection.utils
import
box_utils
from
official.vision.detection.utils
import
box_utils
from
official.vision.detection.utils.object_detection
import
shape_utils
from
official.vision.detection.utils.object_detection
import
shape_utils
...
...
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