Skip to content
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

cannot import name 'consume_prefix_in_state_dict_if_present' from 'torch.nn.modules.utils' #71

Closed
FlashlightET opened this issue Mar 29, 2023 · 1 comment

Comments

@FlashlightET
Copy link

FlashlightET commented Mar 29, 2023

nobody in the universe has had this happen to them, requirements.txt is incomplete and i still have to install 300 more modules that have errors just to use this with no luck.

Traceback (most recent call last):
  File "infer.py", line 9, in <module>
    from infer_tools import infer_tool
  File "x:\diffsvc\diff-svc\infer_tools\infer_tool.py", line 20, in <module>
    from preprocessing.hubertinfer import Hubertencoder
  File "x:\diffsvc\diff-svc\preprocessing\hubertinfer.py", line 8, in <module>
    from network.hubert.hubert_model import hubert_soft, get_units
  File "x:\diffsvc\diff-svc\network\hubert\hubert_model.py", line 11, in <module>
    from torch.nn.modules.utils import consume_prefix_in_state_dict_if_present
ImportError: cannot import name 'consume_prefix_in_state_dict_if_present' from 'torch.nn.modules.utils' (C:\Users\EzoGaming\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\nn\modules\utils.py)
@FlashlightET
Copy link
Author

I WAS IN THE WRONG ENVIRONMENT

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

1 participant