TCNOco / TcNo-TCHT

Everything hosted on tc.ht. PowerShell scripts and more.
GNU General Public License v3.0
112 stars 36 forks source link

whisper.ps1 wont work for the second time - #24

Open koloved opened 3 weeks ago

koloved commented 3 weeks ago

whisper .\2.mp3 C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\whisper__init__.py:150: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. checkpoint = torch.load(fp, map_location=device)

TCNOco commented 3 weeks ago

This seems to be a Python error coming from whisper itself, saying a feature has been changed, and the code of Whisper itself needs to be looked into. This doesn't have to do with my install script as far as I understand