Hi,
I am using this project (with WhisperHallu) to synchronized the lyrics (given) with the WhisperHallu (to improve the SRT maker) but i had a problem with the Whisper model weights, this sounds like a conflict between the brand-new PyTorch security rules (since PyTorch 2.6) and the older model loading scripts.
This is part of the issue.
model = whisper.load_model(modelSize) File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/whisper/__init__.py", line 151, in load_model checkpoint = torch.load(fp, map_location=device, **kwargs) _pickle.UnpicklingError: 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 49
So what can I do now ?
Thank you.
Hi,
I am using this project (with WhisperHallu) to synchronized the lyrics (given) with the WhisperHallu (to improve the SRT maker) but i had a problem with the Whisper model weights, this sounds like a conflict between the brand-new PyTorch security rules (since PyTorch 2.6) and the older model loading scripts.
This is part of the issue.
model = whisper.load_model(modelSize) File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/whisper/__init__.py", line 151, in load_model checkpoint = torch.load(fp, map_location=device, **kwargs) _pickle.UnpicklingError: 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 49So what can I do now ?
Thank you.