fix: arg_opt is not defined

This commit is contained in:
jonyguo 2020-09-01 10:08:32 +08:00
parent 79b117fe02
commit 314fef8ecc
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ def run_general_distill():
if args_opt.dataset_type == "tfrecord": if args_opt.dataset_type == "tfrecord":
dataset_type = DataType.TFRECORD dataset_type = DataType.TFRECORD
elif arg_opt.dataset_type == "mindrecord": elif args_opt.dataset_type == "mindrecord":
dataset_type = DataType.MINDRECORD dataset_type = DataType.MINDRECORD
else: else:
raise Exception("dataset format is not supported yet") raise Exception("dataset format is not supported yet")

View File

@ -125,9 +125,9 @@ def run_predistill():
rank = 0 rank = 0
device_num = 1 device_num = 1
if arg_opt.dataset_type == "tfrecord": if args_opt.dataset_type == "tfrecord":
dataset_type = DataType.TFRECORD dataset_type = DataType.TFRECORD
elif arg_opt.dataset_type == "mindrecord": elif args_opt.dataset_type == "mindrecord":
dataset_type = DataType.MINDRECORD dataset_type = DataType.MINDRECORD
else: else:
raise Exception("dataset format is not supported yet") raise Exception("dataset format is not supported yet")