You need to create a data profile for the facenet
project.
Assume that the file structure is as follows:
data-root/
cls_1/
img_1.jpg
img_2.jpg
...
cls_2/
img_1.jpg
img_2.jpg
...
...
$ python tools/create_train_test_data.py -h
usage: create_train_test_data.py [-h] [--test] data_root save_root
positional arguments:
data_root Data ROOT. Default: None
save_root Save ROOT. Default: None
optional arguments:
-h, --help show this help message and exit
--test Separate training and test set
- Create training and test files separately.
$ python tools/create_train_test_data.py train_data_root train_save_root
$ python tools/create_train_test_data.py test_data_root test_save_root
- Create training and test files at the same time
python tools/create_train_test_data.py data_root save_root --test