mmsegmentation icon indicating copy to clipboard operation
mmsegmentation copied to clipboard

ImportError: cannot import name 'train_segmentor' from 'mmseg.apis'

Open Ako-r opened this issue 2 years ago • 3 comments

Same as the title.

Ako-r avatar Jul 24 '23 06:07 Ako-r

Same as the title.

@Ako-r you just need to:

  1. change your execution path to MMSegmentation,
  2. or place your .py file in the Peer directory with mmseg,like the following MMSegmentation folder structure:
|-MMSegmentation.
      ├── README.md
      ├── README_zh-CN.md
      ├── configs
      ├── mmseg
          ├── api
      ├── projects
      ├── **your_python_script.py** ✅

CastleDream avatar Jul 25 '23 04:07 CastleDream

@Ako-r Have you solved it? I have the same problem.

Shiwo0826 avatar Jun 20 '24 06:06 Shiwo0826

@Shiwo0826 now,i have the same question?just pytorch+cuda==2.3.0+12.1&mmcv==2.2.0,mmengine==0.10.7,mmsegmentation==1.2.2

Zzfairy001 avatar May 11 '25 09:05 Zzfairy001