open-mmlab / mmsegmentation

OpenMMLab Semantic Segmentation Toolbox and Benchmark.
https://mmsegmentation.readthedocs.io/en/main/
Apache License 2.0
7.7k stars 2.53k forks source link

when installing in dockerfile, package is installed as mmsegmentation and not mmseg #3595

Open matanPercepto opened 3 months ago

matanPercepto commented 3 months ago

Hi, I am trying to install mmsegmentation as part of a docker. When I install it in the dockerfile, the package installed is called mmsegmentation and not mmseg, and it causes ModuleNotFoundError when trying to run my code. But if I'm trying to install it again when running the docker, it is installed as mmseg

Here are the relevant lines from the dockerfile:

RUN cd /app && git clone --recursive https://github.com/open-mmlab/mmsegmentation.git && \
    cd /app/mmsegmentation && \
    git checkout c685fe6 && \
    python3 -m pip install --no-cache-dir -e .

I am using CUDA 11.7 image, and running it using python 3.8. I installed pytorch 2.0.1 using pip I installed mmcv 2.0.0 in the requirements file beofre trying to install mmseg.

Thanks!