Skip to content

Error Loading Weights in Krita with PyTorch #1674

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

Open
Shakira75 opened this issue Mar 22, 2025 · 0 comments
Open

Error Loading Weights in Krita with PyTorch #1674

Shakira75 opened this issue Mar 22, 2025 · 0 comments

Comments

@Shakira75
Copy link

Hello,

I am encountering an error while trying to load weights in Krita that uses PyTorch. The error message is as follows:

Server execution error: Weights only load failed. In PyTorch 2.6, we changed the default value of the weights_only argument in torch.load from False to True. Re-running torch.load with weights_only set to False will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source.
Please file an issue with the following so that we can make weights_only=True compatible with your use case: WeightsUnpickler error: Unsupported operand 60

Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html.

I would appreciate any guidance on how to resolve this issue, as I am unable to proceed with my work in Krita.

Thank you!

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