You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defparse_args():
parser=argparse.ArgumentParser(
description='A PyTorch project for face recognition.')
parser.add_argument('--image_dir', default='./face_alignment/test_images/',
help='path to the image directory')
parser.add_argument('--proj_dir', default='/workspace/SphereFacePlus_ms1m_sfnet64bn/20220429_154144',
help='the directory to load model')
args=parser.parse_args()
你好,我下载了reademe 中提供的预训练模型(sphereface2_vggface2_sfnet20、SphereFacePlus_ms1m_sfnet64bn),放到代码中执行main_inference.py ,其中parse_args的设置如下
但是我试了两个模型都报相同的错误,错误信息如下:
是哪里出现了问题呢?我发现是build_from_args函数在检查arg时 和 提供的预训练模型中的config.yaml不一致。我按照错误进行了一些修正,但是后续还是会报其他的关于net的错误,我不知道是哪里出现了问题
另外,我想知道符合最新提交代码的config.yaml是怎么样子的?和readme中提供的预训练模型中的config.yaml是否存在不一致现象?非常感谢!!!
The text was updated successfully, but these errors were encountered: