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)
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)