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

Use weights_only for loading #2

Merged
merged 2 commits into from
Oct 1, 2024
Merged

Conversation

kit1980
Copy link
Contributor

@kit1980 kit1980 commented Jul 29, 2024

sam2/build_sam.py:81:14: TOR102 [*] torch.load without weights_only parameter is unsafe. Explicitly set weights_only to False only if you trust the data you load and full pickle functionality is needed, otherwise set weights_only=True.

Found with https://github.com/pytorch-labs/torchfix/

sam2/build_sam.py:81:14: TOR102 [*] `torch.load` without `weights_only` parameter is unsafe. Explicitly set `weights_only` to False only if you trust the data you load and full pickle functionality is needed, otherwise set `weights_only=True`.

Found with https://github.com/pytorch-labs/torchfix/
@kit1980
Copy link
Contributor Author

kit1980 commented Sep 20, 2024

@haithamkhedr can you merge this?

@haithamkhedr haithamkhedr merged commit 52198ea into facebookresearch:main Oct 1, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants