TreB1eN / InsightFace_Pytorch

Pytorch0.4.1 codes for InsightFace
MIT License
1.72k stars 418 forks source link

No such file facebank.pth #172

Open apophatique opened 3 years ago

apophatique commented 3 years ago

What is a facebank.pth? I thought database is just a directory with images of faces, but in face_verify targets, names = load_facebank(conf)

i see

def load_facebank(conf):
    embeddings = torch.load(conf.facebank_path/'facebank.pth')

Is this a model? Or what? Also i've got an error:


embeddings = torch.load(conf.facebank_path/'facebank.pth')
TypeError: unsupported operand type(s) for /: 'str' and 'str'

What should i pass to the load_facebank and how to correctly get targens, names? Please tell me, thank you

ravichopra0107 commented 3 years ago

Hey! I got the same error. Use --update flag with face_verify.py for the first time to build facebank.pth. Hope you get it!