Hi,nice project.
I have trained the model and run shot-detector.py,it works well at beginning, successfully detect person, but did not have boxes for basketball and hoop then video shut down in few seconds and report below:
File "/Users/wangenda/AI-basketball-analysis/AI-Basketball-Shot-Detection-Tracker-master/shot_detector.py", line 153, in
ShotDetector()
File "/Users/wangenda/AI-basketball-analysis/AI-Basketball-Shot-Detection-Tracker-master/shot_detector.py", line 44, in init
self.run()
File "/Users/wangenda/AI-basketball-analysis/AI-Basketball-Shot-Detection-Tracker-master/shot_detector.py", line 69, in run
current_class = self.class_names[cls]
IndexError: list index out of range
Any suggestions will be helpful,thanks a lot.
Hi,nice project. I have trained the model and run shot-detector.py,it works well at beginning, successfully detect person, but did not have boxes for basketball and hoop then video shut down in few seconds and report below: File "/Users/wangenda/AI-basketball-analysis/AI-Basketball-Shot-Detection-Tracker-master/shot_detector.py", line 153, in ShotDetector() File "/Users/wangenda/AI-basketball-analysis/AI-Basketball-Shot-Detection-Tracker-master/shot_detector.py", line 44, in init self.run() File "/Users/wangenda/AI-basketball-analysis/AI-Basketball-Shot-Detection-Tracker-master/shot_detector.py", line 69, in run current_class = self.class_names[cls]