deepinsight / deepinsight/insightface

Question for Preprocessing Input of ArcFace Model

Open
#2,660 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
29.7k
Forks
6.1k
PR merge metrics
No merged PRs in 30d

Description

Hi, I just want to make sure of the preprocessing method for the arcface model is the one [here](https://github.com/deepinsight/insightface/blob/4f8c54a09b7341a757657adbccfe1f8751f6548c/recognition/arcface_paddle/deploy/pdserving/web_service.py#L25) below or the one named inv_preprocess [here](https://github.com/deepinsight/insightface/blob/4f8c54a09b7341a757657adbccfe1f8751f6548c/parsing/dml_csr/utils/utils.py#L65)

Because, when i tried to use the preprocessing the 512 embedding output is always random, but when i tried to use for example facenet preprocessing input, the embedding output is similar each time its generated.

I am looking forward to hear the explanation, Thank You !

Contributor guide

No contributing guide indexed for this repository

Research direction

Read the preprocessing in recognition/arcface_paddle/deploy/pdserving/web_service.py and compare it with inv_preprocess in parsing/dml_csr/utils/utils.py. Reproduce the differing preprocessing paths and check whether repeated inputs produce consistent 512-dimensional embeddings. Done means identifying which preprocessing ArcFace expects and explaining the source of the inconsistent output.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.