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,
total_num_annotations_skipped = 0
if use_multiprocessing:
pool = mp.Pool()
pool = mp.Pool(z)
if unpack_arguments:
tf_example_iterator = pool.starmap(process_func, annotation_iterator)
else:
......
......@@ -682,4 +682,4 @@ def build_darknet(
norm_epsilon=norm_activation_config.norm_epsilon,
kernel_regularizer=l2_regularizer)
model.summary()
return model
\ No newline at end of file
return model
......@@ -126,4 +126,4 @@ class DarknetTest(parameterized.TestCase, tf.test.TestCase):
self.assertAllEqual(network.get_config(), new_network.get_config())
if __name__ == '__main__':
tf.test.main()
\ No newline at end of file
tf.test.main()
......@@ -475,4 +475,4 @@ class YoloDecoder(tf.keras.Model):
@classmethod
def from_config(cls, config, custom_objects=None):
return cls(**config)
\ No newline at end of file
return cls(**config)
......@@ -150,4 +150,4 @@ class YoloDecoderTest(parameterized.TestCase, tf.test.TestCase):
self.assertAllEqual(decoder.get_config(), decoder_from_config.get_config())
if __name__ == '__main__':
tf.test.main()
\ No newline at end of file
tf.test.main()
......@@ -119,4 +119,4 @@ class YoloHead(tf.keras.layers.Layer):
@classmethod
def from_config(cls, config, custom_objects=None):
return cls(**config)
\ No newline at end of file
return cls(**config)
......@@ -70,4 +70,4 @@ class YoloDecoderTest(parameterized.TestCase, tf.test.TestCase):
self.assertAllEqual(head.get_config(), head_from_config.get_config())
if __name__ == '__main__':
tf.test.main()
\ No newline at end of file
tf.test.main()
......@@ -1640,4 +1640,4 @@ class DarkRouteProcess(tf.keras.layers.Layer):
if self._csp_stack > 0:
return self._call_csp(inputs, training=training)
else:
return self._call_regular(inputs)
\ No newline at end of file
return self._call_regular(inputs)
......@@ -384,4 +384,4 @@ class DarkRouteProcessTest(tf.test.TestCase, parameterized.TestCase):
return
if __name__ == '__main__':
tf.test.main()
\ No newline at end of file
tf.test.main()
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