Skip to content

Stuck on "load model(s) from assets/hubert/hubert_base.pt" #2575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yushentang opened this issue May 12, 2025 · 2 comments
Open

Stuck on "load model(s) from assets/hubert/hubert_base.pt" #2575

yushentang opened this issue May 12, 2025 · 2 comments

Comments

@yushentang
Copy link

As the issue shows, after processing the files and clicking the "Feature Extraction", it stops as it shows "load model(s) from assets/hubert/hubert_base.pt". ( I ensure that I have downloaded this model to the proper file path)

@Pr0gCat
Copy link

Pr0gCat commented May 15, 2025

I got the same issue with error message:

raise pickle.UnpicklingError(_get_wo_message(str(e))) from None
_pickle.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 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.
        (2) Alternatively, to load with `weights_only=True` please check the recommended steps in the following error message.
        WeightsUnpickler error: Unsupported global: GLOBAL fairseq.data.dictionary.Dictionary was not an allowed global by default. Please use `torch.serialization.add_safe_globals([fairseq.data.dictionary.Dictionary])` or the `torch.serialization.safe_globals([fairseq.data.dictionary.Dictionary])` context manager to allowlist this global if you trust this class/function.

Fixed by adding torch.serialization.add_safe_globals([fairseq.data.dictionary.Dictionary]) before fairseq.checkpoint_utils.load_model_ensemble_and_task in infer/modules/train/extract_feature_print.py

Hope this helps.

@yushentang
Copy link
Author

That works well! Or maybe installing torch<2.6 would be a solution as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy