alfred icon indicating copy to clipboard operation
alfred copied to clipboard

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

Open zhuyetuo opened this issue 1 year ago • 2 comments

zhuyetuo avatar Mar 15 '24 08:03 zhuyetuo

好些没有dl模块

zhuyetuo avatar Mar 15 '24 08:03 zhuyetuo

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 avatar Mar 15 '24 08:03 lucasjinreal