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

The arcface model cannot be loaded #51

Open
alan525 opened this issue Jul 16, 2021 · 3 comments
Open

The arcface model cannot be loaded #51

alan525 opened this issue Jul 16, 2021 · 3 comments

Comments

@alan525
Copy link

alan525 commented Jul 16, 2021

It's a great project. I follow the instructions to configure the environment. When the code runs to netArc_checkpoint=torch.load(netArc_checkpoint) an error is reported.
..torch/serialization.py line 702, in _legacy_load
result = unpickler.load()
AttributeError: Can't get attribute 'ArcMarginModel' on <module 'models' from 'SimSwap-main/models/init.py'>
How to solve it? Is the model incorrect?

@NNNNAI
Copy link
Collaborator

NNNNAI commented Jul 17, 2021

Could you share the command line you used?

@alan525
Copy link
Author

alan525 commented Jul 18, 2021

command python test_one_image.py --isTrain false --name people --Arc_path arcface_model/arcface_checkpoint.tar --pic_a_path crop_224/6.jpg --pic_b_path crop_224/ds.jpg --output_path output/

I'm sure the download model and path are correct.However, the model loading still failed.
SimSwap/models/fs_model.py line 64
netArc_checkpoint=torch.load(netArc_checkpoint)

@woctezuma
Copy link

woctezuma commented Jul 18, 2021

SimSwap/models/fs_model.py line 64
netArc_checkpoint=torch.load(netArc_checkpoint)

#9, #10, #24

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