open-mmlab / mmsegmentation

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

ModuleNotFoundError: No module named 'mmseg.datasets.builder' #3108

Open MOURACH-K opened 1 year ago

MOURACH-K commented 1 year ago

Description: I encountered an issue while trying to use the mmseg.datasets.builder module in the mmsegmentation project. When attempting to import DATASETS from mmseg.datasets.builder, I received the following error message: "ModuleNotFoundError: No module named 'mmseg.datasets.builder'".

Steps to reproduce:

Install mmsegmentation using the command !pip install mmsegmentation. Execute the following code snippet in a Python environment: python Copy code from mmseg.datasets.builder import DATASETS Expected behavior: The import statement should successfully import the DATASETS module from mmseg.datasets.builder without any errors.

Actual behavior: Instead, I received a "ModuleNotFoundError" indicating that the module 'mmseg.datasets.builder' was not found.

Additional information:

I have verified that the mmsegmentation package is installed correctly, and I have checked the version (mmseg.version) to confirm the installation. I have tried reinstalling mmsegmentation using the commands !pip uninstall mmsegmentation followed by !pip install mmsegmentation, but the issue persists. I have also attempted to update mmsegmentation using the command !pip install --upgrade mmsegmentation, but the problem remains. I have checked the official documentation and GitHub repository for mmsegmentation, but I couldn't find any specific information or known issues related to this error. Please investigate this issue as it prevents me from utilizing the mmseg.datasets.builder module properly. Let me know if any additional information or logs are required to assist in resolving this problem.

I also tried the official demo from the official GitHub publication page of MMSegmentation ( https://github.com/openseg-group/mmsegmentation-release/blob/master/demo/MMSegmentation_Tutorial.ipynb ), It renders the same error.

Thank you for your support.

ShahinNamin commented 10 months ago

Same. Anyone found a solution for this?

agraham9966 commented 10 months ago

Same problem here still cant find the solution.

TheMakiran commented 4 months ago

I am struggling with the same problem.

aroeypi commented 3 months ago

same here.

Recolourlink commented 2 months ago

ModuleNotFoundError: No module named 'mmseg.datasets.builder'

bulebarry commented 3 weeks ago

No module named 'mmseg.datasets.builder', till now still exists this bug