Replies: 1 comment
-
Added this discussion to the issues as its a code problem not really topic for discusion |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been playing with RFDiffusion using the collab notebook (as I don't have access to GPUs here), and was working great for months. Now I get an error when setting up the notebook at the stage of "downloading RFdiffusion params...". As a python newbie I'm a bit lost here, any help would be greatly appreciated, error message is:
downloading RFdiffusion params...
UnpicklingError Traceback (most recent call last)
in
/content/RFdiffusion/inference/utils.py in
15 import logging
16 import string
---> 17 from inference import model_runners
18 import hydra
19 import glob
10 frames
/usr/local/lib/python3.11/dist-packages/torch/serialization.py in load(f, map_location, pickle_module, weights_only, mmap, **pickle_load_args)
1468 )
1469 except pickle.UnpicklingError as e:
-> 1470 raise pickle.UnpicklingError(_get_wo_message(str(e))) from None
1471 return _load(
1472 opened_zipfile,
UnpicklingError: Weights only load failed. This file can still be loaded, to do so you have two options, do those steps only if you trust the source of the checkpoint.
(1) In PyTorch 2.6, we changed the default value of the
weights_only
argument intorch.load
fromFalse
toTrue
. Re-runningtorch.load
withweights_only
set toFalse
will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source.(2) Alternatively, to load with
weights_only=True
please check the recommended steps in the following error message.WeightsUnpickler error: Unsupported global: GLOBAL builtins.slice was not an allowed global by default. Please use
torch.serialization.add_safe_globals([slice])
or thetorch.serialization.safe_globals([slice])
context manager to allowlist this global if you trust this class/function.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.
Beta Was this translation helpful? Give feedback.
All reactions