You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usage: generate_rec.py [-h] [--datasets_images_dir DATASETS_IMAGES_DIR]
[--output_path OUTPUT_PATH] [--image_size IMAGE_SIZE]
[--image_ext IMAGE_EXT] [--color {-1,0,1}]
Create an image list or make a record database by reading from an image list
optional arguments:
-h, --help show this help message and exit
--datasets_images_dir DATASETS_IMAGES_DIR
is your dataset images directory.
(default:../../../../Deep Learning/InsightFace/Python/Dataset/faces_emore_mask/images)
--output_path OUTPUT_PATH
is where you want to save .rec
(default:../../../../Deep Learning/InsightFace/Python/Dataset/faces_emore_mask/train.rec)
--image_size IMAGE_SIZE
is dataset image size.
(default: 112,112)
--image_ext IMAGE_EXT
is dataset images extension.
(default: jpg)
--color {-1,0,1} specify the color mode of the loaded image.
1: Loads a color image. Any transparency of image will be neglected. It is the default flag.
0: Loads image in grayscale mode.
-1:Loads image as such including alpha channel. (default: 1)
usage: generate_pairs.py [-h] [--datasets_images_dir DATASETS_IMAGES_DIR] [--output_path OUTPUT_PATH]
[--pairs_num PAIRS_NUM] [--image_ext IMAGE_EXT]
Generate pairs.txt
optional arguments:
-h, --help show this help message and exit
--datasets_images_dir DATASETS_IMAGES_DIR
is your dataset images directory.
--output_path OUTPUT_PATH
is where you want to save pairs.txt.
--pairs_num PAIRS_NUM
is how many pairs that you want to create.
--image_ext IMAGE_EXT
is dataset images extension.
usage: generate_bin.py [-h] [--pairs_txt_path PAIRS_TXT_PATH]
[--output_bin_path OUTPUT_BIN_PATH]
Generate pin
optional arguments:
-h, --help show this help message and exit````
--pairs_txt_path PAIRS_TXT_PATH
where is the pairs.txt.
--output_bin_path OUTPUT_BIN_PATH
where to save the output .bin.