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.56k stars 598 forks source link

AssertionError: The number of person ids in the training set must be greater than the number of person ids in the sample. #831

Open GerogeLee0115 opened 1 year ago

GerogeLee0115 commented 1 year 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 A clear and concise description of what the bug is.

Reproduction

  1. What command or script did you run?
A placeholder for the command.
  1. Did you make any modifications on the code or config? Did you understand what you have modified?
  2. What dataset did you use and what task did you run?

Environment

  1. Please run python mmtrack/utils/collect_env.py to collect necessary environment information and paste it here.
  2. You may add addition that may be helpful for locating the problem, such as
    • How you installed PyTorch [e.g., pip, conda, source]
    • Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

Error traceback If applicable, paste the error trackback here.

A placeholder for trackback.

Bug fix If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!

Aurelion1 commented 1 year ago

Hello, I have the same problem, how did you solve it? I would appreciate your reply.

liujisihan commented 11 months ago

I fix it by enlarging train set, the function "triplet_sampling(self, pos_pid, num_ids=8, ins_per_id=4)" in mmtracking/mmtrack/datasets/reid_dataset.py has num_ids=8 default, so person ids in your train dataset must greater than 8.