howto100m icon indicating copy to clipboard operation
howto100m copied to clipboard

Issue with the training dataloader

Open bjuncek opened this issue 5 years ago • 1 comments

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...

bjuncek avatar Dec 30 '19 16:12 bjuncek

thanks for pointing this out! helped me

xanderladd avatar Dec 20 '20 06:12 xanderladd