mkoshkina / jersey-number-pipeline

A General Framework for Jersey Number Recognition in Sports Video
Other
8 stars 0 forks source link

FileNotFoundError: [Errno 2] No such file or directory: './out/SoccerNetResults/soccer_ball.json' #2

Open meisa233 opened 1 week ago

meisa233 commented 1 week ago
(venv) wlbtest@UniServer-R4900-G5:~/jersey-number-pipeline$ python main.py SoccerNet test
Predict numbers
Additional keyword arguments: {'charset_test': '0123456789'}
Lightning automatically upgraded your loaded checkpoint from v1.9.5 to v2.3.0. To apply the upgrade to your files permanently, run `python -m pytorch_lightning.utilities.upgrade_checkpoint models/parseq_epoch=24-step=2575-val_accuracy=95.6044-val_NED=96.3255_changed.ckpt`
0it [00:00, ?it/s]
Done predict numbers
Traceback (most recent call last):
  File "/home/wlbtest/jersey-number-pipeline/main.py", line 387, in <module>
    soccer_net_pipeline(args)
  File "/home/wlbtest/jersey-number-pipeline/main.py", line 349, in soccer_net_pipeline
    consolidated_dict = consolidated_results(image_dir, results_dict, illegible_path, soccer_ball_list=soccer_ball_list)
  File "/home/wlbtest/jersey-number-pipeline/main.py", line 144, in consolidated_results
    with open(soccer_ball_list, 'r') as sf:
FileNotFoundError: [Errno 2] No such file or directory: './out/SoccerNetResults/soccer_ball.json'

where is ./out/SoccerNetResults/soccer_ball.json? is it created by script?

mkoshkina commented 6 days ago

Yes, it's created by the pipeline, but the flag for that part was disabled in main.py. I've just committed a fix, it should work now. Let me know if you still have issues.