liuqk3 / OTCD

Real-time online multi-object tracking in compressed domain
17 stars 3 forks source link

Decoding Error #8

Open paras1612 opened 2 years ago

paras1612 commented 2 years ago

Hi, I'm getting the following error while running the tracking_on_mot.py

Called with args:
Namespace(cfg_file='./cfgs/resnet101.yml', class_agnostic=False, cuda=True, dataset_year=['MOT16'], detection_interval=1, detection_sbc_model='./save/detection_sbc_101_4_1_9417.pth', detectors=['PRIVATE'], feature_crop_size=(1024, 7, 7), im_crop_size=(3, 120, 40), im_for_box=False, iou_or_appearance='both', large_scale=False, mGPUs=False, mot_dir='MOT', mv_crop_size=(2, 120, 40), mv_for_box=False, res_for_box=False, residual_crop_size=(3, 120, 40), save_detections_with_feature=False, set_cfgs=['ANCHOR_SCALES', '[1, 4, 8, 16, 32]', 'ANCHOR_RATIOS', '[1, 3]', 'MAX_NUM_GT_BOXES', '55'], stage=['val'], tracking_box_transform_sigma=1.5, tracking_model='./save/tracking_net_single_resnet18_mv_residual_2_10_6034.pth', vis=False)
tracking on MOT16-09 using PRIVATE detector ...
 Warming up the tracker...
warming up, frame 1
Decode Error.
Decoding video failed

I have downloaded MOT16 images from the official website and converted the images into a video with 20fps and encoded that video using ffmpeg as described in pytorch-coviar repository. I believe that this could be the problem of encoder. Could you share the configuration and commands of ffmpeg encoding that you have used? And if possible, can you also share the link to the encoded video that can be used directly?

pencilYi commented 2 years ago

I met the same error. @paras1612 Have you fixed it?

pencilYi commented 2 years ago

@liuqk3 Could you please share your videos with us? I've been suffering this error for too long :(

paras1612 commented 2 years ago

I met the same error. @paras1612 Have you fixed it?

No, @pencilYi . I haven't fixed it.

pencilYi commented 2 years ago

I met the same error. @paras1612 Have you fixed it?

No, @pencilYi . I haven't fixed it. I think I found a solution. You can try to use : (base) xxx@xxx:~/xxx/program/datasets/MOT16/train/MOT16-09$ ffmpeg -f image2 -i ./img1/%06d.jpg -c:v mpeg4 -f rawvideo -r 30 MOT16-09.mp4 I had forgotten to add the output format "rawvideo" so that the error occored, I think. I ran this command to encode a video 'MOT16-09.mp4'.

pencilYi commented 2 years ago

Hi, I'm getting the following error while running the tracking_on_mot.py

Called with args:
Namespace(cfg_file='./cfgs/resnet101.yml', class_agnostic=False, cuda=True, dataset_year=['MOT16'], detection_interval=1, detection_sbc_model='./save/detection_sbc_101_4_1_9417.pth', detectors=['PRIVATE'], feature_crop_size=(1024, 7, 7), im_crop_size=(3, 120, 40), im_for_box=False, iou_or_appearance='both', large_scale=False, mGPUs=False, mot_dir='MOT', mv_crop_size=(2, 120, 40), mv_for_box=False, res_for_box=False, residual_crop_size=(3, 120, 40), save_detections_with_feature=False, set_cfgs=['ANCHOR_SCALES', '[1, 4, 8, 16, 32]', 'ANCHOR_RATIOS', '[1, 3]', 'MAX_NUM_GT_BOXES', '55'], stage=['val'], tracking_box_transform_sigma=1.5, tracking_model='./save/tracking_net_single_resnet18_mv_residual_2_10_6034.pth', vis=False)
tracking on MOT16-09 using PRIVATE detector ...
 Warming up the tracker...
warming up, frame 1
Decode Error.
Decoding video failed

I have downloaded MOT16 images from the official website and converted the images into a video with 20fps and encoded that video using ffmpeg as described in pytorch-coviar repository. I believe that this could be the problem of encoder. Could you share the configuration and commands of ffmpeg encoding that you have used? And if possible, can you also share the link to the encoded video that can be used directly?

Why your output is "warming up, frame 1" and mine is "warming up, frame 110"? Have you changed the code ? @paras1612

paras1612 commented 2 years ago

It's "warming up, frame 110" according to the source code. But I changed it for some other reason. I was getting the same error even with the original source code.