Replies: 1 comment
-
did you ever find a solution to this @mccaly ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Got the error below running Python 3.10.
Have tried installing MMCV via both
pip install mmcv
andmim install mmcv
Error:
Traceback (most recent call last):
File "/Users/andrewmccalister/Documents/segmentTool/FoodSeg103/demo/deployments/image_demo_deployment/updated_source_mb.py", line 14, in
from mmseg.apis import inference_model, init_model, show_result_pyplot
File "/Users/andrewmccalister/miniconda3/envs/py_3.10/lib/python3.10/site-packages/mmseg/apis/init.py", line 2, in
from .inference import inference_model, init_model, show_result_pyplot
File "/Users/andrewmccalister/miniconda3/envs/py_3.10/lib/python3.10/site-packages/mmseg/apis/inference.py", line 14, in
from mmseg.models import BaseSegmentor
File "/Users/andrewmccalister/miniconda3/envs/py_3.10/lib/python3.10/site-packages/mmseg/models/init.py", line 3, in
from .backbones import * # noqa: F401,F403
File "/Users/andrewmccalister/miniconda3/envs/py_3.10/lib/python3.10/site-packages/mmseg/models/backbones/init.py", line 2, in
from .beit import BEiT
File "/Users/andrewmccalister/miniconda3/envs/py_3.10/lib/python3.10/site-packages/mmseg/models/backbones/beit.py", line 19, in
from ..utils import PatchEmbed
File "/Users/andrewmccalister/miniconda3/envs/py_3.10/lib/python3.10/site-packages/mmseg/models/utils/init.py", line 2, in
from .basic_block import BasicBlock, Bottleneck
File "/Users/andrewmccalister/miniconda3/envs/py_3.10/lib/python3.10/site-packages/mmseg/models/utils/basic_block.py", line 10, in
from mmseg.utils import OptConfigType
File "/Users/andrewmccalister/miniconda3/envs/py_3.10/lib/python3.10/site-packages/mmseg/utils/init.py", line 24, in
from .mask_classification import MatchMasks, seg_data_to_instance_data
File "/Users/andrewmccalister/miniconda3/envs/py_3.10/lib/python3.10/site-packages/mmseg/utils/mask_classification.py", line 5, in
from mmcv.ops import point_sample
File "/Users/andrewmccalister/miniconda3/envs/py_3.10/lib/python3.10/site-packages/mmcv/ops/init.py", line 3, in
from .active_rotated_filter import active_rotated_filter
File "/Users/andrewmccalister/miniconda3/envs/py_3.10/lib/python3.10/site-packages/mmcv/ops/active_rotated_filter.py", line 10, in
ext_module = ext_loader.load_ext(
File "/Users/andrewmccalister/miniconda3/envs/py_3.10/lib/python3.10/site-packages/mmcv/utils/ext_loader.py", line 13, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "/Users/andrewmccalister/miniconda3/envs/py_3.10/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'mmcv._ext'
Beta Was this translation helpful? Give feedback.
All reactions