isl-org / lang-seg

Language-Driven Semantic Segmentation
MIT License
722 stars 91 forks source link

Installation errors #48

Open MenHimChan opened 9 months ago

MenHimChan commented 9 months ago

Traceback (most recent call last): File "/home/airs/Clip_Seg/lang-seg/prepare_ade20k.py", line 9, in from encoding.utils import download, mkdir File "/home/airs/anaconda3/lib/python3.9/site-packages/encoding/init.py", line 13, in from . import nn, functions, parallel, utils, models, datasets, transforms File "/home/airs/anaconda3/lib/python3.9/site-packages/encoding/nn/init.py", line 12, in from .encoding import File "/home/airs/anaconda3/lib/python3.9/site-packages/encoding/nn/encoding.py", line 18, in from ..functions import scaled_l2, aggregate, pairwise_cosine File "/home/airs/anaconda3/lib/python3.9/site-packages/encoding/functions/init.py", line 2, in from .encoding import File "/home/airs/anaconda3/lib/python3.9/site-packages/encoding/functions/encoding.py", line 17, in from encoding import gpu ImportError: cannot import name 'gpu' from partially initialized module 'encoding' (most likely due to a circular import) (/home/airs/anaconda3/lib/python3.9/site-packages/encoding/init.py)

enghish commented 8 months ago

Same error with me

lmc2000 commented 2 months ago

Failed to build installable wheels for some pyproject.toml based projects (torch-encoding)