From 1eb1157490dd4a473cd518226c33519afebe4035 Mon Sep 17 00:00:00 2001 From: Karnav Shah Date: Mon, 15 Dec 2025 15:53:04 +0530 Subject: [PATCH] samples(python): fix argparse boolean flag for --try_cuda --- samples/python/stitching_detailed.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/python/stitching_detailed.py b/samples/python/stitching_detailed.py index 1daef4d314..b1ce15b9c4 100644 --- a/samples/python/stitching_detailed.py +++ b/samples/python/stitching_detailed.py @@ -95,10 +95,8 @@ parser.add_argument( ) parser.add_argument( '--try_cuda', - action='store', - default=False, + action='store_true', help="Try to use CUDA. The default value is no. All default values are for CPU mode.", - type=bool, dest='try_cuda' ) parser.add_argument( '--work_megapix', action='store', default=0.6,