so-vits-svc-fork icon indicating copy to clipboard operation
so-vits-svc-fork copied to clipboard

Weights only load failed

Open mimikwoomy opened this issue 2 years ago • 3 comments

I have no clue what im doing- But when I press infer it says: ' _pickle.UnpicklingError: Weights only load failed. 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 get the file from a trusted source. WeightsUnpickler error: Unsupported operand 71 '

Screenshot (683)

mimikwoomy avatar Apr 19 '23 20:04 mimikwoomy

The model you have may contain something harmful other than model weights, but if you dont think so removing weights_only=True may work.

34j avatar Apr 20 '23 08:04 34j

I'm encountering the same issue with a model that I made myself - where would I pass in the argument for weights_only to set to False?

mr-segfault avatar Apr 20 '23 21:04 mr-segfault

I'm encountering the same issue with a model that I made myself - where would I pass in the argument for weights_only to set to False?

I found it in ...python\Lib\site-packages\so_vits_svc_fork\utils.py line 238: checkpoint_dict = torch.load(f, map_location="cpu", weights_only=False)

JosiahRichards avatar Apr 21 '23 16:04 JosiahRichards