"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "97760186d8ff0ab802f35f601c2cfc039a3a97ca"
Commit fd28870e authored by Vishnu Banna's avatar Vishnu Banna
Browse files

new lines

parent 9358b176
...@@ -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:
......
...@@ -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
...@@ -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
...@@ -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
...@@ -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
...@@ -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
...@@ -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
...@@ -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
...@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment