forked from TreB1eN/InsightFace_Pytorch
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
F
committed
Aug 9, 2018
1 parent
188fb72
commit d7b70d4
Showing
3 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from pathlib import Path | ||
from config import get_config | ||
from data.data_pipe import load_bin, load_mx_rec | ||
import argparse | ||
|
||
if __name__ == '__main__': | ||
parser = argparse.ArgumentParser(description='for face verification') | ||
parser.add_argument("-r", "--rec_path", help="mxnet record file path",default='faces_emore', type=str) | ||
args = parser.parse_args() | ||
conf = get_config() | ||
rec_path = conf.data_path/args.rec_path | ||
load_mx_rec(rec_path) | ||
|
||
bin_files = ['agedb_30', 'cfp_fp', 'lfw', 'calfw', 'cfp_ff', 'cplfw', 'vgg2_fp'] | ||
|
||
for i in range(len(bin_files)): | ||
load_bin(rec_path/(bin_files[i]+'.bin'), rec_path/bin_files[i], conf.test_transform) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters