default raw_scale in python scripts to ImageNet model value

This commit is contained in:
Evan Shelhamer 2014-08-09 20:43:40 -07:00
Родитель f072600bb1
Коммит 978c81a4ab
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -66,11 +66,12 @@ def main(argv):
parser.add_argument( parser.add_argument(
"--input_scale", "--input_scale",
type=float, 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( parser.add_argument(
"--raw_scale", "--raw_scale",
type=float, type=float,
default=255.0,
help="Multiply raw input by this scale before preprocessing." help="Multiply raw input by this scale before preprocessing."
) )
parser.add_argument( parser.add_argument(

Просмотреть файл

@ -76,11 +76,12 @@ def main(argv):
parser.add_argument( parser.add_argument(
"--input_scale", "--input_scale",
type=float, 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( parser.add_argument(
"--raw_scale", "--raw_scale",
type=float, type=float,
default=255.0,
help="Multiply raw input by this scale before preprocessing." help="Multiply raw input by this scale before preprocessing."
) )
parser.add_argument( parser.add_argument(