Arcface Architecture | Comparison of Loss | Arcface formula |
- python V # python version : 3.8.13
- timm
- tqdm
- torch==1.9.1
- torchvision==0.10.1
- torchaudio==0.9.1
- torchtext==0.10.1
- pandas
- fsspec==0.3.3
- scipy
- scikit-learn
The install cmd is:
conda create -n your_prjname python=3.8
conda activate your_prjname
cd {Repo Directory}
pip install -r requirements.txt
- your_prjname : Name of the virtual environment to create
To view the test results, we first embed the entire DB images, and then learn and store the ANN algorithm. Afterwards, the stored annoy (ANN) predicts the pseudo group of the test set and saves it as a pkl Finally, the mAP is obtained by obtaining an intersection between the predicted group and the correct answer.
The testing cmd is:
python3 generate_DBembedding.py
python3 eval_savingANN.py
python3 eval_testsetPrediction.py
python3 evaluation_performance.py
If you want to proceed with the new learning, adjust the parameters and set the directory and proceed with the command below.
The Training cmd is:
python3 training_.py
- Our Model Performance Table
Group criteria | Dataset | mAP@K(=50) | mAP@K(=10) |
---|---|---|---|
category+color | train(139,637)/valid(17,339)/test(17,936) | 82.6% | 47.28% |
- Example Result for Arcface model's query items
K-Neareast Neighbors Result |