Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

Save video to Torch tensor

$
0
0

I have a long video (~20.000 frames) of resolution 480x854. I want to save this whole video to a torch.tensor (maybe .pt file). However, my RAM is not enough to load the whole video at once. Is there a solution to do this? I don't really want to split it into multiple smaller files...

Edit: I just knew about video compression. Turns out video uses a much more efficienty way to store data, rather than naively stacking frames. So I guess storing the original video to tensor would not be possible, unless resolution and temporal downsampling are used.


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>