Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

VideoClassificationDataset does not support frame video folders #1491

Open
Skylion007 opened this issue Nov 27, 2022 Discussed in #1490 · 2 comments
Open

VideoClassificationDataset does not support frame video folders #1491

Skylion007 opened this issue Nov 27, 2022 Discussed in #1490 · 2 comments
Labels
enhancement New feature or request

Comments

@Skylion007
Copy link

I realized some of the helper code around the pytorch video does not allow the videos to be frame_video objects, which is disappointing and is supported by the underlying pytorch video.

https://pytorchvideo.readthedocs.io/en/latest/_modules/pytorchvideo/data/labeled_video_dataset.html#labeled_video_dataset

Discussed in #1490

Originally posted by Skylion007 November 26, 2022
Decoding videos from AVI / MP4 is eating up the CPU on my GPU server, is there a way to have the VideoClassificationData folder accept a folder of frames and maybe some metadata as the video instead? Or recommendation for a video codec that would be faster to decode?

@Skylion007
Copy link
Author

So it looks like it does work if specify the folders manually from_files by globbing those dirs. However, the more intuitive from_folders classmethod appears to filter out all the folders that only contain JPEGs. Loading small samples from these frame_videos is also less efficient than I would have expected, which is a tad disappointing. It can even be slower than loading AVI encoded videos (but faster than H264 ones it seems).

@Borda
Copy link
Member

Borda commented Dec 5, 2022

do you have a specific suggestion on how to improve the user/developer experience?

@Borda Borda changed the title VideoClassificationDataset does not support frame video folders VideoClassificationDataset does not support frame video folders Aug 9, 2023
@Borda Borda added the enhancement New feature or request label Aug 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants