sphereface_pytorch

repository·master·Indexed 20 days ago

https://github.com/clcarwin/sphereface_pytorch

A PyTorch implementation of SphereFace for deep hypersphere embeddings in face recognition. Includes scripts for training on the CASIA-Webface dataset and evaluating performance on the LFW benchmark using lfw_eval.py.

Tokens
314
Snippets
3
Records
4
Agent score
22%

What's inside sphereface_pytorch

  1. Evaluate a model on the LFW dataset

    master

    To evaluate a trained model's performance on the LFW (Labeled Faces in the Wild) dataset, use the lfw_eval.py script. You must provide the path to your model checkpoint using the --model flag.

    python lfw_eval.py --model model/sphere20a_20171020.pth
  2. Convert lfw.tgz to lfw.zip

    master

    If your LFW dataset is in .tgz format, use the following commands to extract it and repackage it into a .zip format required by the evaluation script:

    1. Extract the tarball: tar zxf lfw.tgz
    2. Enter the directory: cd lfw
    3. Zip the contents: zip -r ../lfw.zip *
    4. Return to the parent directory: cd ..
    tar zxf lfw.tgz; cd lfw; zip -r ../lfw.zip *; cd ..