Open lijoe123 opened 1 year ago
And the error:
Hi, it seems that you use CocoDataset
in your config file, not CocoVideoDataset
.
Thank you for your answer. But the coco_video_dataset show that class: CocoVideoDataset(**CocoDataset**):
,
Are the cocovideodataset(cocodataset) different? I wonder if they can share?
And you told me that, i can use the CocoDataset from mmdet in #801 . Could tell me how to use the cocodataset to train the mmtracking model?
To train MaskRCNN, you need to pass ref_xxx
to the model, as in:
https://github.com/open-mmlab/mmtracking/blob/b1679f990bce7abc18e852004d2f70b09904e238/mmtrack/models/vis/masktrack_rcnn.py#L40-L57
Therefore, you need to use CocoVideoDataset
, which can prepare ref_xxx
data, as in:
https://github.com/open-mmlab/mmtracking/blob/b1679f990bce7abc18e852004d2f70b09904e238/mmtrack/datasets/coco_video_dataset.py#L252-L270
Please check it.
Thank you for your reply!
I had check the two script above, and i had try to prepare ref_xxx
data according the mmdetection/mmdet/datasets/coco.py
. But it fail. I am appreciate that if you can give me an example about how to use the coco dataset.
Thank you so much.
I'm sorry but I haven't tried to use coco to train VIS model. Maybe you can refer to the CocoVideoDataset.
Best wishes.
It's OK. Thank you so much!
Hello, I want to train the masktrack_rcnn with the coco dataset. So i had reset the dataset of masktrack_rcnn_r50_fpn_12e_youtubevis2019.py-----
-'../../_base_/datasets/coco_instance.py'
and thenum_classes=6
.By the way, i had reset the
/home/music/Downloads/mmtracking-master/mmtrack/datasets/coco_video_dataset.py
-------CLASSES = ('aircraft', 'buildings', 'electrical', 'person', 'tree', 'wire')
and theload_as_video=False
And my env:
This my config:
Best wish! Thank you!