mmsegmentation icon indicating copy to clipboard operation
mmsegmentation copied to clipboard

Module not found

Open jaideep11061982 opened this issue 2 years ago • 4 comments

I have put mmseg directory on to the custom path

!python Kaggle-UWMGIT/tools/train.py ./config.py --gpu-ids 0

But i get an error saying mmseg not found

!python Kaggle-UWMGIT/tools/train.py ./config.py --gpu-ids 0 !python Kaggle-UWMGIT/tools/train.py ./config.py --gpu-ids 0 Traceback (most recent call last): File "Kaggle-UWMGIT/tools/train.py", line 15, in from mmseg import version ModuleNotFoundError: No module named 'mmseg'

jaideep11061982 avatar Jun 07 '22 04:06 jaideep11061982

Try using export PYTHONPATH="$(pwd)"

linfangjian01 avatar Jun 07 '22 04:06 linfangjian01

what should be {pwd} here. which path would it be as per dir structure. mmseg is right inside uwmgit

jaideep11061982 avatar Jun 07 '22 06:06 jaideep11061982

Are you using the linux system? Please try to perform this operation in the same level directory as mmseg. It will import the current path into the python path.

linfangjian01 avatar Jun 07 '22 07:06 linfangjian01

Hi @jaideep11061982, Try installing MMSegmentation refer to our documentation.

xiexinch avatar Aug 29 '22 07:08 xiexinch

Closing the issue, as there is no activity for a while. We hope your issue has been resolved. If not, please feel free to open a new one.

xiexinch avatar Apr 25 '23 10:04 xiexinch