howto100m
howto100m copied to clipboard
Issue with the training dataloader
When loading the pre-extracted features (using Antoine's FE script), I'm running into an issue with your exact dataloader. Namely, the error thrown is
AttributeError: 'numpy.ndarray' object has no attribute 'seek'. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead.
This is easily remedied by changing torch.load
to torch.from_numpy
in the youtube_dataloader's get_video function, but I thought it might be worth pointing out...
thanks for pointing this out! helped me