Files
insightface/recognition/partial_fc/pytorch/config.py
xiaoyang-coder 3a79f4cb64 Update config.py
2020-11-11 13:15:13 +08:00

23 lines
583 B
Python

from easydict import EasyDict as edict
config = edict()
config.dataset = "emore"
config.embedding_size = 512
config.sample_rate = 1.0
config.fp16 = False
config.momentum = 0.9
config.weight_decay = 5e-4
config.batch_size = 64
config.lr = 0.1
if config.dataset == "emore":
config.rec = "/train_tmp/faces_emore"
config.num_classes = 85742
config.num_epoch = 16
def lr_step_func(epoch):
return ((epoch + 1) / (4 + 1))**2 if epoch < -1 else 0.1**len(
[m for m in [8, 14] if m - 1 <= epoch])
config.lr_func = lr_step_func