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

A confusion in hubconf.py #494

Open
coconut0713 opened this issue Apr 30, 2024 · 0 comments
Open

A confusion in hubconf.py #494

coconut0713 opened this issue Apr 30, 2024 · 0 comments

Comments

@coconut0713
Copy link

coconut0713 commented Apr 30, 2024

  • code:

state_dict = torch.hub.load_state_dict_from_url(checkpoint, progress=True)
if 'mask_values' in state_dict: state_dict.pop('mask_values')
net.load_state_dict(state_dict)

Generally, ‘state_dict’ contains module names & parameters, but not mask values. What is the purpose of 'state_dict.pop('mask_values') '?

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

1 participant