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
4f655acd
"...resnet50_tensorflow.git" did not exist on "ee35a03041b642a2c1e4e5e528e48c0ab0a8afd6"
Commit
4f655acd
authored
Jul 01, 2021
by
Abdullah Rashwan
Committed by
A. Unique TensorFlower
Jul 01, 2021
Browse files
Internal change
PiperOrigin-RevId: 382462213
parent
b1d973ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/vision/beta/serving/detection.py
official/vision/beta/serving/detection.py
+2
-2
No files found.
official/vision/beta/serving/detection.py
View file @
4f655acd
...
...
@@ -17,10 +17,10 @@
import
tensorflow
as
tf
from
cloud_tpu.models.detection.utils
import
box_utils
from
official.vision.beta
import
configs
from
official.vision.beta.modeling
import
factory
from
official.vision.beta.ops
import
anchor
from
official.vision.beta.ops
import
box_ops
from
official.vision.beta.ops
import
preprocess_ops
from
official.vision.beta.serving
import
export_base
...
...
@@ -140,7 +140,7 @@ class DetectionModule(export_base.ExportModule):
detection_boxes
=
(
detections
[
'detection_boxes'
]
/
tf
.
tile
(
image_info
[:,
2
:
3
,
:],
[
1
,
1
,
2
]))
detections
[
'detection_boxes'
]
=
box_
util
s
.
normalize_boxes
(
detections
[
'detection_boxes'
]
=
box_
op
s
.
normalize_boxes
(
detection_boxes
,
image_info
[:,
0
:
1
,
:])
# Cast num_detections and detection_classes to float. This allows the
...
...
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