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
3fa43052
Commit
3fa43052
authored
Apr 03, 2018
by
DefineFC
Browse files
xception_test on py3
parent
26c96542
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
research/deeplab/core/xception_test.py
research/deeplab/core/xception_test.py
+4
-3
No files found.
research/deeplab/core/xception_test.py
View file @
3fa43052
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
# ==============================================================================
# ==============================================================================
"""Tests for xception.py."""
"""Tests for xception.py."""
import
six
import
numpy
as
np
import
numpy
as
np
import
tensorflow
as
tf
import
tensorflow
as
tf
...
@@ -309,7 +310,7 @@ class XceptionNetworkTest(tf.test.TestCase):
...
@@ -309,7 +310,7 @@ class XceptionNetworkTest(tf.test.TestCase):
'xception/middle_flow/block1'
:
[
2
,
14
,
14
,
4
],
'xception/middle_flow/block1'
:
[
2
,
14
,
14
,
4
],
'xception/exit_flow/block1'
:
[
2
,
7
,
7
,
8
],
'xception/exit_flow/block1'
:
[
2
,
7
,
7
,
8
],
'xception/exit_flow/block2'
:
[
2
,
7
,
7
,
16
]}
'xception/exit_flow/block2'
:
[
2
,
7
,
7
,
16
]}
for
endpoint
,
shape
in
endpoint_to_shape
.
iteritems
(
):
for
endpoint
,
shape
in
six
.
iteritems
(
endpoint_to_shape
):
self
.
assertListEqual
(
end_points
[
endpoint
].
get_shape
().
as_list
(),
shape
)
self
.
assertListEqual
(
end_points
[
endpoint
].
get_shape
().
as_list
(),
shape
)
def
testFullyConvolutionalEndpointShapes
(
self
):
def
testFullyConvolutionalEndpointShapes
(
self
):
...
@@ -330,7 +331,7 @@ class XceptionNetworkTest(tf.test.TestCase):
...
@@ -330,7 +331,7 @@ class XceptionNetworkTest(tf.test.TestCase):
'xception/middle_flow/block1'
:
[
2
,
21
,
21
,
4
],
'xception/middle_flow/block1'
:
[
2
,
21
,
21
,
4
],
'xception/exit_flow/block1'
:
[
2
,
11
,
11
,
8
],
'xception/exit_flow/block1'
:
[
2
,
11
,
11
,
8
],
'xception/exit_flow/block2'
:
[
2
,
11
,
11
,
16
]}
'xception/exit_flow/block2'
:
[
2
,
11
,
11
,
16
]}
for
endpoint
,
shape
in
endpoint_to_shape
.
iteritems
(
):
for
endpoint
,
shape
in
six
.
iteritems
(
endpoint_to_shape
):
self
.
assertListEqual
(
end_points
[
endpoint
].
get_shape
().
as_list
(),
shape
)
self
.
assertListEqual
(
end_points
[
endpoint
].
get_shape
().
as_list
(),
shape
)
def
testAtrousFullyConvolutionalEndpointShapes
(
self
):
def
testAtrousFullyConvolutionalEndpointShapes
(
self
):
...
@@ -352,7 +353,7 @@ class XceptionNetworkTest(tf.test.TestCase):
...
@@ -352,7 +353,7 @@ class XceptionNetworkTest(tf.test.TestCase):
'xception/middle_flow/block1'
:
[
2
,
41
,
41
,
4
],
'xception/middle_flow/block1'
:
[
2
,
41
,
41
,
4
],
'xception/exit_flow/block1'
:
[
2
,
41
,
41
,
8
],
'xception/exit_flow/block1'
:
[
2
,
41
,
41
,
8
],
'xception/exit_flow/block2'
:
[
2
,
41
,
41
,
16
]}
'xception/exit_flow/block2'
:
[
2
,
41
,
41
,
16
]}
for
endpoint
,
shape
in
endpoint_to_shape
.
iteritems
(
):
for
endpoint
,
shape
in
six
.
iteritems
(
endpoint_to_shape
):
self
.
assertListEqual
(
end_points
[
endpoint
].
get_shape
().
as_list
(),
shape
)
self
.
assertListEqual
(
end_points
[
endpoint
].
get_shape
().
as_list
(),
shape
)
def
testAtrousFullyConvolutionalValues
(
self
):
def
testAtrousFullyConvolutionalValues
(
self
):
...
...
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