```csharp
jsonRAM += String.Format("{{'byteSize':'{0}','mmap_tag_name':'{1}'}},", bytes.Length, aa_nam);
jsonRAM = jsonRAM.Substring(0, jsonRAM.Length - 1);
string strCmdText = string.Format(@"--pb_path ""{0}"" --ram_image_list ""{1}""", modelNames[0], jsonRAM);
ProcessStartInfo startInfo = new ProcessStartInfo()
{
FileName = trainingExe,
Arguments = strCmdText,
CreateNoWindow = createNoWindow//不要显示窗口
};
exeProcess = System.Diagnostics.Process.Start(startInfo);
exeProcess.WaitForExit();
def parse_args():
"""
Parse input arguments
"""
parser = argparse.ArgumentParser(description='Predict a Fast R-CNN network')
parser.add_argument('--data_path', dest='data_path',
help='path data',
default='D:\\workSpace\\pythonDataset\\predict_pb_model_config.json', type=str)
parser.add_argument('--pb_path', dest='pb_path',
help='pb_path',
default="E:\\Inspection_pb_tensorflowNet\\pb_model\\saved_model.pb", type=str)
parser.add_argument('--image_list', dest='image_list',
help='image_list',
default='["D:\\workSpace\\pythonDataset\\luntai\\images\\Image_20220719142757596_3750_0.jpg","D:\\workSpace\\pythonDataset\\luntai\\images\\Image_20220719142757596_3750_2048.jpg"]', type=ast.literal_eval)
parser.add_argument('--ram_image_list', dest='ram_image_list',
help='ram_image_list',nargs='+',
default='{"byteSize": "46336","mmap_tag_name": "test_img1_1"},{"byteSize": "46336","mmap_tag_name": "test_img1_2"}', type=ast.literal_eval)
parser.add_argument('--code_list', dest='code_list',
help='code_list',
default="['OK', 'NG']", type=ast.literal_eval)
parser.add_argument('--test_img_scales', dest='test_img_scales',
help='path data',
default=640, type=int)
parser.add_argument('--conf_thresh', dest='conf_thresh',
help='conf_thresh',
default=0.5, type=float)
parser.add_argument('--nms_thresh', dest='nms_thresh',
help='nms_thresh',
default=0.5, type=float)
parser.add_argument('--readImgType', dest='readImgType',
help='readImgType',
default=1, type=int)
args = parser.parse_args()
return args