Skip to content

Conversation

@mbpeterson70
Copy link
Collaborator

for torch>2.4, weights_only default was changed from false to true, breaking FastSAM. Fix was to replace torch.load with a wrapper function that forces weights_only to be false.

for torch>2.4, weights_only default was changed from false to true,
breaking FastSAM. Fix was to replace torch.load with a wrapper function
that forces weights_only to be false.
@mbpeterson70 mbpeterson70 requested a review from liqyn January 20, 2026 16:28
@mbpeterson70
Copy link
Collaborator Author

@MultyXu adding this fix to main roman repo

@liqyn liqyn merged commit 5c78a7a into main Jan 20, 2026
1 check passed
@liqyn liqyn deleted the feature/torch-support branch January 20, 2026 22:02
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

Successfully merging this pull request may close these issues.

2 participants