Fixed argument actions

Former-commit-id: 7f855d53668a576236b16670fd052d8caf816d80
This commit is contained in:
Chang Jo Kim 2018-07-10 11:19:03 +09:00 committed by GitHub
parent 14e0ff1c62
commit 179b08e6a3

View file

@ -85,10 +85,10 @@ def get_args():
parser.add_argument('--viz', '-v', action='store_true', parser.add_argument('--viz', '-v', action='store_true',
help="Visualize the images as they are processed", help="Visualize the images as they are processed",
default=False) default=False)
parser.add_argument('--no-save', '-n', action='store_false', parser.add_argument('--no-save', '-n', action='store_true',
help="Do not save the output masks", help="Do not save the output masks",
default=False) default=False)
parser.add_argument('--no-crf', '-r', action='store_false', parser.add_argument('--no-crf', '-r', action='store_true',
help="Do not use dense CRF postprocessing", help="Do not use dense CRF postprocessing",
default=False) default=False)
parser.add_argument('--mask-threshold', '-t', type=float, parser.add_argument('--mask-threshold', '-t', type=float,