facenet
facenet copied to clipboard
command not found error (while trying align the LFW dataset)
My computer is Ubuntu Linux. I wrote below command to align the LFW dataset for validate on LFW.
for N in {1..4}; do
python /home/islab/facenet/src/align/align_dataset_mtcnn.py /home/islab/facenet/datasets/lfw/raw /home/islab/facenet/datasets/lfw/lfw_mtcnnpy_160 --image_size 160 --margin 32 --random_order --gpu_memory_fraction 0.25 done
But there are some issues like below.
usage: align_dataset_mtcnn.py [-h] [--image_size IMAGE_SIZE] [--margin MARGIN] [--random_order] [--gpu_memory_fraction GPU_MEMORY_FRACTION] [--detect_multiple_faces DETECT_MULTIPLE_FACES] input_dir output_dir align_dataset_mtcnn.py: error: the following arguments are required: input_dir, output_dir bash: /home/islab/facenet/datasets/lfw/raw: Is a directory bash: /home/islab/facenet/datasets/lfw/lfw_mtcnnpy_160: Is a directory --image_size: command not found --margin: command not found --random_order: command not found --gpu_memory_fraction: command not found
I checked that there are raw folder and lfw_mtcnpy_160 folder. How can I align the LFW dataset correctly?