-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Hi,
I can't get the docker image to run, it gives me the following error:
docker run rlleshi/phar python src/demo/multimodial_demo.py video.mp4 demo.json --timestamps
Traceback (most recent call last):
File "__init__.cython-30.pxd", line 984, in numpy.import_array
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem .
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/workspace/phar/mmaction2/demo/demo_skeleton.py", line 23, in <module>
from mmpose.apis import (inference_top_down_pose_model, init_pose_model,
File "/workspace/phar/mmpose/mmpose/apis/__init__.py", line 2, in <module>
from .inference import (inference_bottom_up_pose_model,
File "/workspace/phar/mmpose/mmpose/apis/inference.py", line 14, in <module>
from mmpose.datasets.dataset_info import DatasetInfo
File "/workspace/phar/mmpose/mmpose/datasets/__init__.py", line 7, in <module>
from .datasets import ( # isort:skip
File "/workspace/phar/mmpose/mmpose/datasets/datasets/__init__.py", line 2, in <module>
from ...deprecated import (TopDownFreiHandDataset, TopDownOneHand10KDataset,
File "/workspace/phar/mmpose/mmpose/deprecated.py", line 5, in <module>
from .datasets.datasets.base import Kpt2dSviewRgbImgTopDownDataset
File "/workspace/phar/mmpose/mmpose/datasets/datasets/base/__init__.py", line 2, in <module>
from .kpt_2d_sview_rgb_img_bottom_up_dataset import \
File "/workspace/phar/mmpose/mmpose/datasets/datasets/base/kpt_2d_sview_rgb_img_bottom_up_dataset.py", line 8, in <module>
from xtcocotools.coco import COCO
File "/opt/conda/lib/python3.8/site-packages/xtcocotools/coco.py", line 58, in <module>
from . import mask as maskUtils
File "/opt/conda/lib/python3.8/site-packages/xtcocotools/mask.py", line 3, in <module>
import xtcocotools._mask as _mask
File "xtcocotools/_mask.pyx", line 23, in init xtcocotools._mask
File "__init__.cython-30.pxd", line 986, in numpy.import_array
ImportError: numpy.core.multiarray failed to import
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "src/demo/multimodial_demo.py", line 20, in <module>
from demo.demo_skeleton import frame_extraction
File "/workspace/phar/mmaction2/demo/demo_skeleton.py", line 26, in <module>
raise ImportError('Failed to import `inference_top_down_pose_model`, '
ImportError: Failed to import `inference_top_down_pose_model`, `init_pose_model`, and `vis_pose_result` form `mmpose.apis`. These apis are required in this demo!
When I compile from source, I get almost the same error:
/ml/phar/mmcv/mmcv/cnn/bricks/transformer.py:28: UserWarning: Fail to import ``MultiScaleDeformableAttention`` from ``mmcv.ops.multi_scale_deform_attn``, You should install ``mmcv-full`` if you need this module.
warnings.warn('Fail to import ``MultiScaleDeformableAttention`` from '
Traceback (most recent call last):
File "/ml/phar/src/demo/demo_skeleton.py", line 15, in <module>
from mmdet.apis import inference_detector, init_detector
File "/ml/phar/mmdet/mmdet/apis/__init__.py", line 1, in <module>
from .inference import (async_inference_detector, inference_detector,
File "/ml/phar/mmdet/mmdet/apis/inference.py", line 6, in <module>
from mmcv.ops import RoIPool
File "/ml/phar/mmcv/mmcv/ops/__init__.py", line 2, in <module>
from .assign_score_withk import assign_score_withk
File "/ml/phar/mmcv/mmcv/ops/assign_score_withk.py", line 5, in <module>
ext_module = ext_loader.load_ext(
File "/ml/phar/mmcv/mmcv/utils/ext_loader.py", line 13, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "/home/firebug/miniconda3/envs/nsfw2/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'mmcv._ext'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/ml/phar/src/demo/demo_skeleton.py", line 17, in <module>
raise ImportError('Failed to import `inference_detector` and '
ImportError: Failed to import `inference_detector` and `init_detector` form `mmdet.apis`. These apis are required in this demo!
When compiling from source, I made sure I had the right versions of the libraries by compiling from the exact git checkpoints referenced by your code:
mmaction2 0.23.0 /ml/phar/mmaction2
mmcv 1.3.18 /ml/phar/mmcv
mmdet 2.12.0 /ml/phar/mmdet
mmpose 0.22.0 /ml/phar/mmpose
Any ideas? Thanks.
Metadata
Metadata
Assignees
Labels
No labels