Open nakuda1 opened 1 year ago
have you solved it? I meet the same issue.
Hi, maybe you can try to run the command:
export PYTHONPATH=\your\path\to\dir
replace \your\path\to\dir
by your path to the segmentation dir and run the code again.
If you meet dist_train.sh: Bad substitution
when using cmd sh dist_train.sh
, you can try bash dist_train.sh
.
Sorry to bother you. I already cd ops & sh make.sh # compile deformable attention in segmentation part When I run train.py in the segementation part, it has an error. Can you help me to solve it?
Traceback (most recent call last): File "train.py", line 11, in
import mmseg_custom # noqa: F401,F403
File "/root/ViT-Adapter/segmentation/mmseg_custom/init.py", line 3, in
from .models import # noqa: F401,F403
File "/root/ViT-Adapter/segmentation/mmseg_custom/models/init.py", line 2, in
from .backbones import # noqa: F401,F403
File "/root/ViT-Adapter/segmentation/mmseg_custom/models/backbones/init.py", line 2, in
from .beit_adapter import BEiTAdapter
File "/root/ViT-Adapter/segmentation/mmseg_custom/models/backbones/beit_adapter.py", line 16, in
from .adapter_modules import SpatialPriorModule, deform_inputs
File "/root/ViT-Adapter/segmentation/mmseg_custom/models/backbones/adapter_modules.py", line 8, in
from ops.modules import MSDeformAttn
ModuleNotFoundError: No module named 'ops.modules'