In slowfast/datasets/mit.py, inside the function def _construct_loader(self):,
there is a for loop
for clip_idx, path_label in enumerate(f.read().splitlines()):
I faced an error with this since it also read the blank line after the last line in the csv file and threw an error.
In slowfast/datasets/mit.py, inside the function def _construct_loader(self):, there is a for loop
for clip_idx, path_label in enumerate(f.read().splitlines()):
I faced an error with this since it also read the blank line after the last line in the csv file and threw an error.So, to fix it, inside the for loop, I added this:
And this fixed the error.