### Install Project Dependencies Source: https://github.com/bytedance/lvface/blob/main/README.md Install all required Python packages listed in the requirements.txt file using pip. ```bash pip install -r requirements.txt ``` -------------------------------- ### Navigate to Project Directory Source: https://github.com/bytedance/lvface/blob/main/README.md Change the current directory to the cloned LVFace project folder. ```bash cd LVFace ``` -------------------------------- ### Run ONNX Inference with LVFace Source: https://github.com/bytedance/lvface/blob/main/README.md Initialize the inferencer and perform feature extraction from local images or URLs, then calculate similarity. Ensure model and image paths are correct. ```python ## Initialize the inferencer from inference_onnx.py inferencer = LVFaceONNXInferencer( model_path="./models/vit_b_dp005_mask_005.onnx", # Path to your ONNX model use_gpu=True # Set to False for CPU-only inference ) ## Extract feature from local image feat1 = inferencer.infer_from_image("path/to/image1.jpg") ## Extract feature from URL feat2 = inferencer.infer_from_url("https://example.com/image1.jpg") ## Calculate cosine similarity similarity = inferencer.calculate_similarity(feat1, feat2) print(f"Similarity score: {similarity:.6f}") # Output example: 0.892345 ``` -------------------------------- ### Run LVFace Model Evaluation Source: https://github.com/bytedance/lvface/blob/main/README.md Execute the evaluation script for LVFace models using pretrained weights. Specify the model prefix, result directory, and network architecture. Output is redirected to a log file. ```bash python eval_ijbc.py \ --model-prefix path/to/LVFace-B_Glint360K.pt \ --result-dir results \ --network vit_b_dp005_mask_005 > LVFace-B_Glint360K.log 2>&1 & ``` -------------------------------- ### Clone LVFace Repository Source: https://github.com/bytedance/lvface/blob/main/README.md Clone the LVFace repository from GitHub to your local machine. ```bash git clone https://github.com/bytedance/LVFace.git ``` -------------------------------- ### LVFace Research Paper Citation Source: https://github.com/bytedance/lvface/blob/main/README.md BibTeX entry for citing the LVFace paper in academic work. Includes title, authors, booktitle, and year. ```bibtex @inproceedings{you2025lvface, title={{LVFace}: Progressive Cluster Optimization for Large Vision Models in Face Recognition}, author={You, Jinghan and Li, Shanglin and Sun, Yuanrui and Wei, Jiangchuan and Guo, Mingyu and Feng, Chao and Ran, Jiao}, booktitle={ICCV}, year={2025} } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.