Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where the pre-trained teacher model? #6

Open
xiakj opened this issue May 17, 2022 · 2 comments
Open

where the pre-trained teacher model? #6

xiakj opened this issue May 17, 2022 · 2 comments

Comments

@xiakj
Copy link

xiakj commented May 17, 2022

`backbone_teacher = iresnet100(num_features=cfg.embedding_size).to(local_rank)
try:
backbone_teacher_pth = os.path.join(cfg.teacher_pth, str((epoch + 1)*11372) + "backbone.pth")
backbone_teacher.load_state_dict(torch.load(backbone_teacher_pth, map_location=torch.device(local_rank)))

        if rank == 0:
            logging.info("backbone teacher loaded for epoch {} successfully!".format(epoch))
    except (FileNotFoundError, KeyError, IndexError, RuntimeError):
        logging.info("load teacher backbone for epoch {} init, failed!".format(epoch))
        break`

I can not find the teacher model.

@fdbtrs
Copy link
Owner

fdbtrs commented May 24, 2022

You can use the pretrained model from ElasticFace

@soulyiran
Copy link

soulyiran commented May 30, 2022

You can use the pretrained model from ElasticFace
@fdbtrs
I have download the pretrained model from ElasticFace, but it seems like the embedding_size of these model are 512.
Could you please provide the 128d version? or where could i find these pretrained model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants