open-mmlab / mmtracking

OpenMMLab Video Perception Toolbox. It supports Video Object Detection (VID), Multiple Object Tracking (MOT), Single Object Tracking (SOT), Video Instance Segmentation (VIS) with a unified framework.
https://mmtracking.readthedocs.io/en/latest/
Apache License 2.0
3.58k stars 597 forks source link

ModuleNotFoundError: No module named 'mmengine.infer' #898

Closed heng94 closed 1 year ago

heng94 commented 1 year ago

Describe the bug

Installation problem

I followed the official document here to install mmtrack 1.0.0rc1. torch==1.11.0+cu113 mmcv==2.0.0rc1 mmengine==0.1.0 mmdet==3.0.0rc0 mmtrack==1.0.0rc1

After finished the whole installation, I did a test:

python demo/demo_mot_vis.py \
    configs/mot/deepsort/deepsort_faster-rcnn-r50-fpn_8xb2-4e_mot17halftrain_test-mot17halfval.py \
    --input demo/demo.mp4 \
    --output mot.mp4

It showed an error,

from mmengine.infer import BaseInferencer
ModuleNotFoundError: No module named 'mmengine.infer'

How to fix this problem? Thank you.

DimTrigkakis commented 1 year ago

Same problem. During setup, I saw that a lot of the other modules have been upgraded too much, and so needed to ignore the >= version suggestion (for mmdet, mmcv etc.) and go for the minimal working version with "==" instead for the versions.

mmcls for classification/pretraining did not have a suggestion for version in the installation docs, but I suspected it is similar. Tried with "pip install mmcls==1.0.0rc0" and I can at least run the demo. So in this sense, this was also a package that was upgraded too much by the default installation.

Note : Make sure the deepsort filepath respects "-" vs "" as there seems to be a tiny inconsistency, you need to manually replace a couple of '' in the filename on disk with a couple of '-'

lijoe123 commented 1 year ago

Thank you so much

Same problem. During setup, I saw that a lot of the other modules have been upgraded too much, and so needed to ignore the >= version suggestion (for mmdet, mmcv etc.) and go for the minimal working version with "==" instead for the versions.

mmcls for classification/pretraining did not have a suggestion for version in the installation docs, but I suspected it is similar. Tried with "pip install mmcls==1.0.0rc0" and I can at least run the demo. So in this sense, this was also a package that was upgraded too much by the default installation.

heng94 commented 1 year ago

Thank you. It works.

Same problem. During setup, I saw that a lot of the other modules have been upgraded too much, and so needed to ignore the >= version suggestion (for mmdet, mmcv etc.) and go for the minimal working version with "==" instead for the versions.

mmcls for classification/pretraining did not have a suggestion for version in the installation docs, but I suspected it is similar. Tried with "pip install mmcls==1.0.0rc0" and I can at least run the demo. So in this sense, this was also a package that was upgraded too much by the default installation.

Note : Make sure the deepsort filepath respects "-" vs "" as there seems to be a tiny inconsistency, you need to manually replace a couple of '' in the filename on disk with a couple of '-'

QianXuna commented 1 year ago

Same problem. During setup, I saw that a lot of the other modules have been upgraded too much, and so needed to ignore the >= version suggestion (for mmdet, mmcv etc.) and go for the minimal working version with "==" instead for the versions.

mmcls for classification/pretraining did not have a suggestion for version in the installation docs, but I suspected it is similar. Tried with "pip install mmcls==1.0.0rc0" and I can at least run the demo. So in this sense, this was also a package that was upgraded too much by the default installation.

Note : Make sure the deepsort filepath respects "-" vs "" as there seems to be a tiny inconsistency, you need to manually replace a couple of '' in the filename on disk with a couple of '-'

Thanks.It works!