Meta Byte Track
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test.py 726B

1234567891011121314151617181920212223
  1. # Mahdi Abdollahpour, 30/12/2021, 07:47 PM, PyCharm, ByteTrack
  2. from yolox.core import launch
  3. from yolox.data import MOTDataset, ValTransform, ValTransformWithPseudo
  4. test_size = (896, 1600)
  5. import os
  6. from yolox.data import get_yolox_datadir
  7. if __name__ == "__main__":
  8. valdataset = MOTDataset(
  9. data_dir=os.path.join(get_yolox_datadir(), "MOT20"),
  10. json_file='train_MOT20-01.json',
  11. img_size=test_size,
  12. name='train', # change to train when running on training set
  13. preproc=ValTransformWithPseudo(
  14. rgb_means=(0.485, 0.456, 0.406),
  15. std=(0.229, 0.224, 0.225),
  16. ),
  17. load_weak=True
  18. )
  19. for batch in valdataset:
  20. print(batch)
  21. exit()