Facenet validate_on_lfw.py Error AssertionError: The number of LFW images must be an integer multip

When collecting Asian faces for model validation, run the following code:

python validate_on_lfw.py ../data/AsiaStar_160 ../20180402-114759 --lfw_pairs ../data/pairs_AsiaStar.txt

The error is as follows:

AssertionError: The number of LFW images must be an integer multiple of the LFW batch size

The number of pictures must be an integral multiple of the batch size. Batch size is 100, so the number of pictures must be an integral multiple of 100. In generating pairs. TXT, there must be 100 times of sample pairs.


Read More: