deepinsight / deepinsight/insightface

Unable to Replicate ViT+WebFace42M model results

Open
#2,043 21 comments 0 reactions 1 assignee Claimed by @anxiangsir View on GitHub
Dominant language
Python
Stars
29.7k
Forks
6.1k
PR merge metrics
No merged PRs in 30d

Description

I tried to replicate the results for ViT Base model trained on WebFace42M but the model does not seem to converge. The loss starts at 53 and stagnates at about 22 after a few epochs of training. I have used the exact same config, with the max. learning rate scaled according to my batch size. I am using 4 GPUs for training and the config variables are as below:

`
config.network = "vit_b"

config.embedding_size = 256

#Partial FC
config.sample_rate = 1

config.fp16 = True
config.batch_size = 1500

#For AdamW
config.optimizer = "adamw"
config.lr = 0.00025
config.weight_decay = 0.1

config.verbose = 1415
config.dali = False

config.rec = "/media/data/Webface42M_rec"
config.num_classes = 2059906
config.num_epoch = 40
config.warmup_epoch = config.num_epoch//10
`

Do you have any insights on why this could be happening?

Any help would be highly appreciated @anxiangsir

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.