Skip to content

Commit 4207f09

Browse files
ichengzinicain
andauthored
fix arg type (#8844)
fix default arg type string to int Co-authored-by: nicain <[email protected]>
1 parent 726699b commit 4207f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vision/snippets/face_detection/faces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def main(input_filename, output_filename, max_results):
9797
'--out', dest='output', default='out.jpg',
9898
help='the name of the output file.')
9999
parser.add_argument(
100-
'--max-results', dest='max_results', default=4,
100+
'--max-results', dest='max_results', default=4, type=int,
101101
help='the max results of face detection.')
102102
args = parser.parse_args()
103103

0 commit comments

Comments
 (0)