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

>>> from alfred.dl.torch.common import device Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'alfred.dl' #33

Open
zhuyetuo opened this issue Mar 15, 2024 · 2 comments

Comments

@zhuyetuo
Copy link

No description provided.

@zhuyetuo
Copy link
Author

好些没有dl模块

@lucasjinreal
Copy link
Owner

Hi, For users who using latest alfred code, if you occured similar issue, then please remove all from alfred.dl import xx code and replace it with torch itself.

The reason why I remove alfred.dl is that it import very slowly on Windows due to involved with torch.

So basically I just removed all torch related code so as well as alfred.dl module.

I am sorry for the inconvenience.

The current solution would just change the code or install a lower version, such as:

pip install alfred-py== 2.12.6

@lucasjinreal lucasjinreal pinned this issue Mar 15, 2024
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