parser.add_argument('--lfw_dir',type=str,default="/datasets/lfw_mtcnnpy_160",help='Path to the data directory containing aligned LFW face patches.')
parser.add_argument('--lfw_batch_size',type=int,help='Number of images to process in a batch in the LFW test set.',default=64)# Changed default to common ONNX batch size
parser.add_argument('--model_path',type=str,default="/home/sunzhq/workspace/yidong-infer/facenet/facenet/tools/onnx-models/facenet_static_bs64.mxr",help='Path to the ONNX model file.')
parser.add_argument('--image_size',type=int,help='Image size (height, width) in pixels.',default=160)
parser.add_argument('--lfw_pairs',type=str,help='The file containing the pairs to use for validation.',default='data/pairs.txt')
parser.add_argument('--lfw_dir',type=str,default="/datasets/lfw_mtcnnpy_160",help='Path to the data directory containing aligned LFW face patches.')
...
...
@@ -186,8 +234,9 @@ def parse_arguments_onnx():
parser.add_argument('--model_path',type=str,default="/home/sunzhq/workspace/yidong-infer/facenet/facenet/tools/onnx-models/facenet_static_bs64.mxr",help='Path to the ONNX model file.')
parser.add_argument('--image_size',type=int,help='Image size (height, width) in pixels.',default=160)
parser.add_argument('--lfw_pairs',type=str,help='The file containing the pairs to use for validation.',default='data/pairs.txt')
parser.add_argument('--use_flipped_images',action='store_true',help='Use flipped images for evaluation (original + flipped concatenated).')