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

"[Errno 2] No such file or directory: 'data/MOT20/test/MOT20-04/gt/gt.txt'' when I tested Bytetrack #583

Open l412198735 opened 2 years ago

l412198735 commented 2 years ago

Thanks for your error report and we appreciate it a lot.

Checklist

  1. I have searched related issues but cannot get the expected help.
  2. The bug has not been fixed in the latest version.

Describe the bug '[Errno 2] No such file or directory: 'data/MOT17/test/MOT17-01-DPM/gt/gt.txt'' When I tested Bytetrack with "python tools/test.py configs/mot/bytetrack/bytetrack_yolox_x_crowdhuman_mot20-private.py --eval track”

‘[Errno 2] No such file or directory: 'data/MOT20/test/MOT20-04/gt/gt.txt'’ when I tested Bytetrack with “python tools/test.py configs/mot/bytetrack/bytetrack_yolox_x_crowdhuman_mot20-private.py --eval track”

But with code “python tools/test.py configs/mot/bytetrack/bytetrack_yolox_x_crowdhuman_mot17-private-half.py --eval track” I can test successfully

Reproduction

  1. What command or script did you run?

python tools/test.py configs/mot/bytetrack/bytetrack_yolox_x_crowdhuman_mot20-private.py --eval track python tools/test.py configs/mot/bytetrack/bytetrack_yolox_x_crowdhuman_mot17-private.py --eval track

  1. Did you make any modifications on the code or config? Did you understand what you have modified? Not modified

  2. What dataset did you use and what task did you run? MOT17 and MOT20

Error traceback [>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 4479/4479, 18.1 task/s, elapsed: 247s, ETA: 0sEvaluate CLEAR MOT results. Traceback (most recent call last): File "tools/test.py", line 225, in main() File "tools/test.py", line 215, in main metric = dataset.evaluate(outputs, **eval_kwargs) File "/media/DATA/My_project/MOT/mmtracking/mmtrack/datasets/mot_challenge_dataset.py", line 402, in evaluate gt_content = self.file_client.get(gt_file) File "/home/anaconda3/envs/mmtracking/lib/python3.7/site-packages/mmcv/fileio/file_client.py", line 1014, in get return self.client.get(filepath) File "/home/anaconda3/envs/mmtracking/lib/python3.7/site-packages/mmcv/fileio/file_client.py", line 535, in get with open(filepath, 'rb') as f: FileNotFoundError: [Errno 2] No such file or directory: 'data/MOT20/test/MOT20-04/gt/gt.txt'

pixeli99 commented 2 years ago

Does the file gt.txt exist in the path data/MOT20/test/MOT20-04/gt/?

Have you checked?

l412198735 commented 2 years ago

该文件是否gt.txt存在于路径中data/MOT20/test/MOT20-04/gt/

你检查过吗?

I found that ‘/gt/gt.txt’ does not exist in the test set of MOT17 and MOT20, while the train set does. I got the dataset from MOTChallenge

image image

pixeli99 commented 2 years ago

Well, I see. You want to eval the test set, but you can't do it locally. The MOT challenge doesn't provide gt.txt for test set verification, so --eval track may raise error.

l412198735 commented 2 years ago

Well, I see. You want to eval the test set, but you can't do it locally. The MOT challenge doesn't provide gt.txt for test set verification, so --eval track may raise error.

Thanks for your answer!!

pixeli99 commented 2 years ago

You're welcome. Hope everything goes well with you.🙂