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
f858af81
Commit
f858af81
authored
Nov 10, 2020
by
A. Unique TensorFlower
Committed by
TF Object Detection Team
Nov 10, 2020
Browse files
Bugfix in resize_to_range to allow image with arbitrary number of channels.
PiperOrigin-RevId: 341573525
parent
0b7646e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/object_detection/core/preprocessor.py
research/object_detection/core/preprocessor.py
+1
-1
No files found.
research/object_detection/core/preprocessor.py
View file @
f858af81
...
@@ -2937,7 +2937,7 @@ def resize_to_range(image,
...
@@ -2937,7 +2937,7 @@ def resize_to_range(image,
for
i
in
range
(
len
(
channels
))
for
i
in
range
(
len
(
channels
))
],
],
axis
=
2
)
axis
=
2
)
new_image
.
set_shape
([
max_dimension
,
max_dimension
,
3
])
new_image
.
set_shape
([
max_dimension
,
max_dimension
,
len
(
channels
)
])
result
=
[
new_image
]
result
=
[
new_image
]
if
masks
is
not
None
:
if
masks
is
not
None
:
...
...
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