Skip to content

Conversation

Anudeep007-hub
Copy link

Fix: Enable decoding of custom .mp4 videos in Kinetics-style datasets

Summary

This PR introduces support for decoding .mp4 videos in datasets following the Kinetics-style directory and CSV structure.

Key Changes

  • Modified dataset loading pipeline to support .mp4 files.
  • Adjusted decoder logic in decoder.py for torchvision compatibility.
  • Patched kinetics.py, loader.py, and __init__.py to allow seamless loading of custom datasets without re-encoding.
  • Includes my_custom_dataset.py which can be reused by others for loading custom structured datasets.

Usage

You can now train SlowFast models directly on .mp4 video files using a structure similar to:

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 21, 2025
@Anudeep007-hub
Copy link
Author

Hi! This PR enables decoding of custom .mp4 videos with Kinetics-style dataset structure. Let me know if any changes are needed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant