Uploaded image for project: 'AI Platform Core Components'
  1. AI Platform Core Components
  2. AIPCC-9777

mmsegmentation fails on import, depends on mmcv not present in RHAI

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • Development Platform
    • None
    • False
    • Hide

      Remove the package from 3.3 and 3.4.EA1 indexes.

      Show
      Remove the package from 3.3 and 3.4.EA1 indexes.
    • False

      Full logs: https://autoqa.usersys.redhat.com/static/runs/01KGC943H3QBY8FFNG07C0TRJF/logs/tmt_logs/plans/default/execute/data/guest/rhelai/tests/import/01KGC943H3QBY8FFNG07C0TRJF/mmsegmentation-349/output.txt 

      ++++ python import_test.py mmsegmentation
      Import test of mmsegmentation via importing mmseg failed.
      No module named 'mmcv'

      mmcv ( https://github.com/open-mmlab/mmcv ) isn't in our registries at all. Also, during the testing, there seems to be an issue, and use of the latest mmcv doesn't work:

      pip install --extra-index-url https://pypi.org/simple mmcv
      >>> import mmseg
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/opt/app-root/vnva/lib64/python3.12/site-packages/mmseg/__init__.py", line 61, in <module>
          assert (mmcv_min_version <= mmcv_version < mmcv_max_version), \
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AssertionError: MMCV==2.2.0 is used but incompatible. Please install mmcv>=2.0.0rc4.

      Installation of exactly 2.0.0rc4 works:

      pip install --extra-index-url https://pypi.org/simple mmcv==2.0.0rc4
      >>> import mmseg
      >>>

              rh-ee-rdevasth Rohan Devasthale
              fzatlouk@redhat.com František Zatloukal
              Antonio's Team
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: