junfu1115 / DANet

Dual Attention Network for Scene Segmentation (CVPR2019)
MIT License
2.41k stars 483 forks source link

No module named 'encoding'?how to solve it? #130

Open xkhnhms opened 3 years ago

xkhnhms commented 3 years ago

Traceback (most recent call last): File "train.py", line 18, in import encoding.utils as utils ModuleNotFoundError: No module named 'encoding'

xkhnhms commented 3 years ago

c++: 错误:unrecognized command line option ‘-std=c++14’ ninja: build stopped: subcommand failed.

xkhnhms commented 3 years ago

Traceback (most recent call last): File "encoding/datasets/ade20k.py", line 18, in from .base import BaseDataset ImportError: attempted relative import with no known parent package

xinghaoxinghao commented 3 years ago

Traceback (most recent call last): File "encoding/datasets/ade20k.py", line 18, in from .base import BaseDataset ImportError: attempted relative import with no known parent package

Have you solved this problem? I had the same problem

xkhnhms commented 3 years ago

Traceback (most recent call last): File "encoding/datasets/ade20k.py", line 18, in from .base import BaseDataset ImportError: attempted relative import with no known parent package

Have you solved this problem? I had the same problem

I still can't solve it. This problem still exists.

xkhnhms commented 3 years ago

I still can't solve it. This problem still exists.

------------------ 原始邮件 ------------------ 发件人: "junfu1115/DANet" @.>; 发送时间: 2021年5月10日(星期一) 晚上9:16 @.>; @.**@.>; 主题: Re: [junfu1115/DANet] No module named 'encoding'?how to solve it? (#130)

Traceback (most recent call last): File "encoding/datasets/ade20k.py", line 18, in from .base import BaseDataset ImportError: attempted relative import with no known parent package

Have you solved this problem? I had the same problem

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

wlj567 commented 3 years ago

指定base文件路径

wlj567 commented 3 years ago

@xkhnhms @xinghaoxinghao Hello, have you passed the complete code? Is it convenient to add a contact information? Thank you!