Skip to content

Commit

Permalink
default raw_scale in python scripts to ImageNet model value
Browse files Browse the repository at this point in the history
  • Loading branch information
shelhamer committed Aug 11, 2014
1 parent f072600 commit 978c81a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/classify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 2 additions & 1 deletion python/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 978c81a

Please sign in to comment.