Imported from https://github.com/foamliu/InsightFace-PyTorch