decbad8a06f07b71f083d339d9132840907ba3bd,research/object_detection/builders/hyperparams_builder_test.py,HyperparamsBuilderTest,test_return_batch_norm_params_with_notrain_when_train_is_false,#HyperparamsBuilderTest#,241

Before Change


    scope_fn = hyperparams_builder.build(conv_hyperparams_proto,
                                         is_training=True)
    scope = scope_fn()
    conv_scope_arguments = scope.values()[0]
    self.assertEqual(conv_scope_arguments["normalizer_fn"], slim.batch_norm)
    batch_norm_params = conv_scope_arguments["normalizer_params"]
    self.assertAlmostEqual(batch_norm_params["decay"], 0.7)
    self.assertAlmostEqual(batch_norm_params["epsilon"], 0.03)
    self.assertFalse(batch_norm_params["center"])
    self.assertTrue(batch_norm_params["scale"])

After Change


    text_format.Merge(conv_hyperparams_text_proto, conv_hyperparams_proto)
    scope_fn = hyperparams_builder.build(conv_hyperparams_proto,
                                         is_training=True)
    scope = scope_fn()
    conv_scope_arguments = scope[_get_scope_key(slim.conv2d)]
    self.assertEqual(conv_scope_arguments["normalizer_fn"], slim.batch_norm)
    batch_norm_params = scope[_get_scope_key(slim.batch_norm)]
    self.assertAlmostEqual(batch_norm_params["decay"], 0.7)
    self.assertAlmostEqual(batch_norm_params["epsilon"], 0.03)
    self.assertFalse(batch_norm_params["center"])
    self.assertTrue(batch_norm_params["scale"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: tensorflow/models
Commit Name: decbad8a06f07b71f083d339d9132840907ba3bd
Time: 2018-04-13
Author: lzc@google.com
File Name: research/object_detection/builders/hyperparams_builder_test.py
Class Name: HyperparamsBuilderTest
Method Name: test_return_batch_norm_params_with_notrain_when_train_is_false


Project Name: tensorflow/models
Commit Name: decbad8a06f07b71f083d339d9132840907ba3bd
Time: 2018-04-13
Author: lzc@google.com
File Name: research/object_detection/builders/hyperparams_builder_test.py
Class Name: HyperparamsBuilderTest
Method Name: test_return_batch_norm_params_with_notrain_during_eval


Project Name: tensorflow/models
Commit Name: decbad8a06f07b71f083d339d9132840907ba3bd
Time: 2018-04-13
Author: lzc@google.com
File Name: research/object_detection/builders/hyperparams_builder_test.py
Class Name: HyperparamsBuilderTest
Method Name: test_return_batch_norm_params_with_notrain_when_train_is_false


Project Name: tensorflow/models
Commit Name: decbad8a06f07b71f083d339d9132840907ba3bd
Time: 2018-04-13
Author: lzc@google.com
File Name: research/object_detection/builders/hyperparams_builder_test.py
Class Name: HyperparamsBuilderTest
Method Name: test_return_non_default_batch_norm_params_with_train_during_train