default raw_scale in python scripts to ImageNet model value
authorEvan Shelhamer <shelhamer@imaginarynumber.net>
Sun, 10 Aug 2014 03:43:40 +0000 (20:43 -0700)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Sun, 10 Aug 2014 03:43:40 +0000 (20:43 -0700)
python/classify.py
python/detect.py

index d3d239c..ddc5429 100755 (executable)
@@ -66,11 +66,12 @@ def main(argv):
     parser.add_argument(
         "--input_scale",
         type=float,
-        help="Multiply input features by this scale to finish input preprocessing."
+        help="Multiply input features by this scale to finish preprocessing."
     )
     parser.add_argument(
         "--raw_scale",
         type=float,
+        default=255.0,
         help="Multiply raw input by this scale before preprocessing."
     )
     parser.add_argument(
index 77f4676..4598fc7 100755 (executable)
@@ -76,11 +76,12 @@ def main(argv):
     parser.add_argument(
         "--input_scale",
         type=float,
-        help="Multiply input features by this scale to finish input preprocessing."
+        help="Multiply input features by this scale to finish preprocessing."
     )
     parser.add_argument(
         "--raw_scale",
         type=float,
+        default=255.0,
         help="Multiply raw input by this scale before preprocessing."
     )
     parser.add_argument(