From 5094b46653be4c61efcab1f65903a0c5b661bbcc Mon Sep 17 00:00:00 2001 From: chengzi Date: Fri, 30 Dec 2022 18:14:51 +0800 Subject: [PATCH] fix arg type fix default arg type string to int --- vision/snippets/face_detection/faces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vision/snippets/face_detection/faces.py b/vision/snippets/face_detection/faces.py index 25014048a79..7b1a90f509a 100755 --- a/vision/snippets/face_detection/faces.py +++ b/vision/snippets/face_detection/faces.py @@ -97,7 +97,7 @@ def main(input_filename, output_filename, max_results): '--out', dest='output', default='out.jpg', help='the name of the output file.') parser.add_argument( - '--max-results', dest='max_results', default=4, + '--max-results', dest='max_results', default=4, type=int, help='the max results of face detection.') args = parser.parse_args()