Set --Args_show type to str in coco tools

own
Bobholamovic 2 years ago
parent ce7863b61d
commit aaee5465e1
  1. 7
      tools/coco_tools/json_AnnoSta.py
  2. 7
      tools/coco_tools/json_Img2Json.py
  3. 7
      tools/coco_tools/json_ImgSta.py
  4. 7
      tools/coco_tools/json_InfoShow.py
  5. 7
      tools/coco_tools/json_Merge.py
  6. 7
      tools/coco_tools/json_Split.py

@ -234,15 +234,14 @@ def get_args():
default='annotations',
help='annotation key name in json, default annotations')
parser.add_argument(
'-Args_show',
'--Args_show',
type=bool,
default=True,
type=str,
default='True',
help='Args_show(default: True), if True, show args info')
args = parser.parse_args()
if args.Args_show:
if args.Args_show.lower() == 'true':
print('Args'.center(100, '-'))
for k, v in vars(args).items():
print('%s = %s' % (k, v))

@ -82,15 +82,14 @@ def get_args():
default='categories',
help='categories key name in json, default categories')
parser.add_argument(
'-Args_show',
'--Args_show',
type=bool,
default=True,
type=str,
default='True',
help='Args_show(default: True), if True, show args info')
args = parser.parse_args()
if args.Args_show:
if args.Args_show.lower() == 'true':
print('Args'.center(100, '-'))
for k, v in vars(args).items():
print('%s = %s' % (k, v))

@ -103,15 +103,14 @@ def get_args():
default='images',
help='image key name in json, default images')
parser.add_argument(
'-Args_show',
'--Args_show',
type=bool,
default=True,
type=str,
default='True',
help='Args_show(default: True), if True, show args info')
args = parser.parse_args()
if args.Args_show:
if args.Args_show.lower() == 'true':
print('Args'.center(100, '-'))
for k, v in vars(args).items():
print('%s = %s' % (k, v))

@ -60,15 +60,14 @@ def get_args():
default=5,
help='show number of each sub record')
parser.add_argument(
'-Args_show',
'--Args_show',
type=bool,
default=True,
type=str,
default='True',
help='Args_show(default: True), if True, show args info')
args = parser.parse_args()
if args.Args_show:
if args.Args_show.lower() == 'true':
print('Args'.center(100, '-'))
for k, v in vars(args).items():
print('%s = %s' % (k, v))

@ -67,15 +67,14 @@ def get_args():
default=['images', 'annotations'],
help='json keys that need to merge')
parser.add_argument(
'-Args_show',
'--Args_show',
type=bool,
default=True,
type=str,
default='True',
help='Args_show(default: True), if True, show args info')
args = parser.parse_args()
if args.Args_show:
if args.Args_show.lower() == 'true':
print('Args'.center(100, '-'))
for k, v in vars(args).items():
print('%s = %s' % (k, v))

@ -128,15 +128,14 @@ def get_args():
default='annotations',
help='annotation key name in json, default annotations')
parser.add_argument(
'-Args_show',
'--Args_show',
type=bool,
default=True,
type=str,
default='True',
help='Args_show(default: True), if True, show args info')
args = parser.parse_args()
if args.Args_show:
if args.Args_show.lower() == 'true':
print('Args'.center(100, '-'))
for k, v in vars(args).items():
print('%s = %s' % (k, v))

Loading…
Cancel
Save