Description
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!