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
fd28870e
"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "97760186d8ff0ab802f35f601c2cfc039a3a97ca"
Commit
fd28870e
authored
Jun 15, 2021
by
Vishnu Banna
Browse files
new lines
parent
9358b176
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
9 deletions
+9
-9
official/vision/beta/data/tfrecord_lib.py
official/vision/beta/data/tfrecord_lib.py
+1
-1
official/vision/beta/projects/yolo/modeling/backbones/darknet.py
...l/vision/beta/projects/yolo/modeling/backbones/darknet.py
+1
-1
official/vision/beta/projects/yolo/modeling/backbones/darknet_test.py
...ion/beta/projects/yolo/modeling/backbones/darknet_test.py
+1
-1
official/vision/beta/projects/yolo/modeling/decoders/yolo_decoder.py
...sion/beta/projects/yolo/modeling/decoders/yolo_decoder.py
+1
-1
official/vision/beta/projects/yolo/modeling/decoders/yolo_decoder_test.py
...beta/projects/yolo/modeling/decoders/yolo_decoder_test.py
+1
-1
official/vision/beta/projects/yolo/modeling/heads/yolo_head.py
...ial/vision/beta/projects/yolo/modeling/heads/yolo_head.py
+1
-1
official/vision/beta/projects/yolo/modeling/heads/yolo_head_test.py
...ision/beta/projects/yolo/modeling/heads/yolo_head_test.py
+1
-1
official/vision/beta/projects/yolo/modeling/layers/nn_blocks.py
...al/vision/beta/projects/yolo/modeling/layers/nn_blocks.py
+1
-1
official/vision/beta/projects/yolo/modeling/layers/nn_blocks_test.py
...sion/beta/projects/yolo/modeling/layers/nn_blocks_test.py
+1
-1
No files found.
official/vision/beta/data/tfrecord_lib.py
View file @
fd28870e
...
@@ -139,7 +139,7 @@ def write_tf_record_dataset(output_path, annotation_iterator,
...
@@ -139,7 +139,7 @@ def write_tf_record_dataset(output_path, annotation_iterator,
total_num_annotations_skipped
=
0
total_num_annotations_skipped
=
0
if
use_multiprocessing
:
if
use_multiprocessing
:
pool
=
mp
.
Pool
()
pool
=
mp
.
Pool
(
z
)
if
unpack_arguments
:
if
unpack_arguments
:
tf_example_iterator
=
pool
.
starmap
(
process_func
,
annotation_iterator
)
tf_example_iterator
=
pool
.
starmap
(
process_func
,
annotation_iterator
)
else
:
else
:
...
...
official/vision/beta/projects/yolo/modeling/backbones/darknet.py
View file @
fd28870e
...
@@ -682,4 +682,4 @@ def build_darknet(
...
@@ -682,4 +682,4 @@ def build_darknet(
norm_epsilon
=
norm_activation_config
.
norm_epsilon
,
norm_epsilon
=
norm_activation_config
.
norm_epsilon
,
kernel_regularizer
=
l2_regularizer
)
kernel_regularizer
=
l2_regularizer
)
model
.
summary
()
model
.
summary
()
return
model
return
model
\ No newline at end of file
official/vision/beta/projects/yolo/modeling/backbones/darknet_test.py
View file @
fd28870e
...
@@ -126,4 +126,4 @@ class DarknetTest(parameterized.TestCase, tf.test.TestCase):
...
@@ -126,4 +126,4 @@ class DarknetTest(parameterized.TestCase, tf.test.TestCase):
self
.
assertAllEqual
(
network
.
get_config
(),
new_network
.
get_config
())
self
.
assertAllEqual
(
network
.
get_config
(),
new_network
.
get_config
())
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
tf
.
test
.
main
()
tf
.
test
.
main
()
\ No newline at end of file
official/vision/beta/projects/yolo/modeling/decoders/yolo_decoder.py
View file @
fd28870e
...
@@ -475,4 +475,4 @@ class YoloDecoder(tf.keras.Model):
...
@@ -475,4 +475,4 @@ class YoloDecoder(tf.keras.Model):
@
classmethod
@
classmethod
def
from_config
(
cls
,
config
,
custom_objects
=
None
):
def
from_config
(
cls
,
config
,
custom_objects
=
None
):
return
cls
(
**
config
)
return
cls
(
**
config
)
\ No newline at end of file
official/vision/beta/projects/yolo/modeling/decoders/yolo_decoder_test.py
View file @
fd28870e
...
@@ -150,4 +150,4 @@ class YoloDecoderTest(parameterized.TestCase, tf.test.TestCase):
...
@@ -150,4 +150,4 @@ class YoloDecoderTest(parameterized.TestCase, tf.test.TestCase):
self
.
assertAllEqual
(
decoder
.
get_config
(),
decoder_from_config
.
get_config
())
self
.
assertAllEqual
(
decoder
.
get_config
(),
decoder_from_config
.
get_config
())
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
tf
.
test
.
main
()
tf
.
test
.
main
()
\ No newline at end of file
official/vision/beta/projects/yolo/modeling/heads/yolo_head.py
View file @
fd28870e
...
@@ -119,4 +119,4 @@ class YoloHead(tf.keras.layers.Layer):
...
@@ -119,4 +119,4 @@ class YoloHead(tf.keras.layers.Layer):
@
classmethod
@
classmethod
def
from_config
(
cls
,
config
,
custom_objects
=
None
):
def
from_config
(
cls
,
config
,
custom_objects
=
None
):
return
cls
(
**
config
)
return
cls
(
**
config
)
\ No newline at end of file
official/vision/beta/projects/yolo/modeling/heads/yolo_head_test.py
View file @
fd28870e
...
@@ -70,4 +70,4 @@ class YoloDecoderTest(parameterized.TestCase, tf.test.TestCase):
...
@@ -70,4 +70,4 @@ class YoloDecoderTest(parameterized.TestCase, tf.test.TestCase):
self
.
assertAllEqual
(
head
.
get_config
(),
head_from_config
.
get_config
())
self
.
assertAllEqual
(
head
.
get_config
(),
head_from_config
.
get_config
())
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
tf
.
test
.
main
()
tf
.
test
.
main
()
\ No newline at end of file
official/vision/beta/projects/yolo/modeling/layers/nn_blocks.py
View file @
fd28870e
...
@@ -1640,4 +1640,4 @@ class DarkRouteProcess(tf.keras.layers.Layer):
...
@@ -1640,4 +1640,4 @@ class DarkRouteProcess(tf.keras.layers.Layer):
if
self
.
_csp_stack
>
0
:
if
self
.
_csp_stack
>
0
:
return
self
.
_call_csp
(
inputs
,
training
=
training
)
return
self
.
_call_csp
(
inputs
,
training
=
training
)
else
:
else
:
return
self
.
_call_regular
(
inputs
)
return
self
.
_call_regular
(
inputs
)
\ No newline at end of file
official/vision/beta/projects/yolo/modeling/layers/nn_blocks_test.py
View file @
fd28870e
...
@@ -384,4 +384,4 @@ class DarkRouteProcessTest(tf.test.TestCase, parameterized.TestCase):
...
@@ -384,4 +384,4 @@ class DarkRouteProcessTest(tf.test.TestCase, parameterized.TestCase):
return
return
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
tf
.
test
.
main
()
tf
.
test
.
main
()
\ No newline at end of file
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