youtubevos / MaskTrackRCNN

MaskTrackRCNN for video instance segmentation based on mmdetection
Apache License 2.0
431 stars 75 forks source link

Import YTVOS #33

Closed taeyeopl closed 4 years ago

taeyeopl commented 4 years ago

Hi, thank you for sharing good works.

I tried this command, but could not solved. pip install git+https://github.com/youtubevos/cocoapi.git#"egg=pycocotools&subdirectory=PythonAPI"

Could you advise how to handle this??

(MaskTrackRCNN) user@user:/sdata1/workspace/MaskTrackRCNN$ python3 tools/test_video.py configs/masktrack_rcnn_r50_fpn_1x_youtubevos.py models/epoch_12.pth --out output --eval segm Traceback (most recent call last): File "tools/test_video.py", line 8, in from mmdet import datasets File "/home/user/anaconda3/envs/MaskTrackRCNN/lib/python3.6/site-packages/mmdet/datasets/init.py", line 1, in from .custom import CustomDataset File "/home/user/anaconda3/envs/MaskTrackRCNN/lib/python3.6/site-packages/mmdet/datasets/custom.py", line 11, in from .extra_aug import ExtraAugmentation File "/home/user/anaconda3/envs/MaskTrackRCNN/lib/python3.6/site-packages/mmdet/datasets/extra_aug.py", line 5, in from mmdet.core.evaluation.bbox_overlaps import bbox_overlaps File "/home/user/anaconda3/envs/MaskTrackRCNN/lib/python3.6/site-packages/mmdet/core/init.py", line 5, in from .evaluation import * # noqa: F401, F403 File "/home/user/anaconda3/envs/MaskTrackRCNN/lib/python3.6/site-packages/mmdet/core/evaluation/init.py", line 4, in from .coco_utils import coco_eval, fast_eval_recall, results2json, results2json_videoseg, ytvos_eval File "/home/user/anaconda3/envs/MaskTrackRCNN/lib/python3.6/site-packages/mmdet/core/evaluation/coco_utils.py", line 5, in from pycocotools.ytvos import YTVOS ModuleNotFoundError: No module named 'pycocotools.ytvos'

anirudh-chakravarthy commented 4 years ago

Hi,

I was wondering if you were able to run evaluation? I ran the same command, however, I face this error.

ValueError: The output file must be a pkl file.

It seems that your checkpoint file, too, is a .pth. Did you face this issue? If so, how did you resolve this?

ShellyLingling commented 3 years ago

Hi,

I was wondering if you were able to run evaluation? I ran the same command, however, I face this error.

ValueError: The output file must be a pkl file.

It seems that your checkpoint file, too, is a .pth. Did you face this issue? If so, how did you resolve this?

@anirudh-chakravarthy Have you solved this problem?

anirudh-chakravarthy commented 3 years ago

Hi,

Yes, I was able to solve this issue. You should use the following format for running evaluation: python3 tools/test_video.py configs/masktrack_rcnn_r50_fpn_1x_youtubevos.py [MODEL_PATH] --out results.pkl --eval segm