Improve LFW --lfwPairs error message.
This commit is contained in:
parent
7fd3746bec
commit
678c422894
|
@ -52,9 +52,14 @@ def main():
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if not os.path.isfile(args.lfwPairs):
|
if not os.path.isfile(args.lfwPairs):
|
||||||
print("Error: LFW pairs (--lfwPairs) file not found.")
|
print("""
|
||||||
print("Download from http://vis-www.cs.umass.edu/lfw/pairs.txt.")
|
Error in LFW evaluation code. (Source: <openface>/evaluation/lfw.py)
|
||||||
print("Default location:", pairsDefault)
|
|
||||||
|
The LFW evaluation requires a file containing pairs of faces to evaluate.
|
||||||
|
Download this file from http://vis-www.cs.umass.edu/lfw/pairs.txt
|
||||||
|
and place it in the default location ({})
|
||||||
|
or pass it as --lfwPairs.
|
||||||
|
""".format(pairsDefault))
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
print("Loading embeddings.")
|
print("Loading embeddings.")
|
||||||
|
|
Loading…
Reference in New Issue