>>> 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
Toky Zhu commented
Toky Zhu commented
好些没有dl模块
MagicSource commented
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