lucasjinreal / alfred

alfred-py: A deep learning utility library for **human**, more detail about the usage of lib to: https://zhuanlan.zhihu.com/p/341446046

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

zhuyetuo opened this issue · comments

好些没有dl模块

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