Datasets:
Modalities:
Text
Formats:
webdataset
Languages:
English
Size:
10K - 100K
Tags:
body-motion
human-human-interactions
human-object-interaction
playing-musical-interaction
sports
License:
Upload folder using huggingface_hub
Browse files- README.md +173 -0
- __pycache__/data.cpython-312.pyc +0 -0
- data.py +7 -0
- data/r1-video/test.tar +3 -0
- data/r1-video/train.tar +3 -0
- data/r1-video/validation.tar +3 -0
README.md
ADDED
@@ -0,0 +1,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Video Dataset on Hugging Face
|
2 |
+
|
3 |
+
This repository hosts the video dataset, a widely used benchmark dataset for human action recognition in videos. The dataset has been processed and uploaded to the Hugging Face Hub for easy access, sharing, and integration into machine learning workflows.
|
4 |
+
|
5 |
+
---
|
6 |
+
|
7 |
+
## Table of Contents
|
8 |
+
|
9 |
+
- [Introduction](#introduction)
|
10 |
+
- [Dataset Overview](#dataset-overview)
|
11 |
+
- [Dataset Structure](#dataset-structure)
|
12 |
+
- [Usage](#usage)
|
13 |
+
- [Features](#features)
|
14 |
+
- [Preprocessing](#preprocessing)
|
15 |
+
- [Hugging Face Integration](#hugging-face-integration)
|
16 |
+
- [Applications](#applications)
|
17 |
+
- [Contributing](#contributing)
|
18 |
+
- [License](#license)
|
19 |
+
- [Acknowledgments](#acknowledgments)
|
20 |
+
|
21 |
+
---
|
22 |
+
|
23 |
+
## Introduction
|
24 |
+
|
25 |
+
The dataset is a large-scale video dataset designed for action recognition tasks. It contains 13,320 video clips across 101 action categories, making it one of the most comprehensive datasets for video-based machine learning research. The dataset is widely used in academia and industry for benchmarking video classification models.
|
26 |
+
|
27 |
+
This repository provides a Hugging Face-compatible version of the dataset, enabling seamless integration with the Hugging Face ecosystem. By hosting the dataset on the Hugging Face Hub, we aim to simplify dataset access, sharing, and reproducibility for researchers and developers.
|
28 |
+
|
29 |
+
---
|
30 |
+
|
31 |
+
## Dataset Overview
|
32 |
+
|
33 |
+
- **Name**:
|
34 |
+
- **Number of Classes**: 101
|
35 |
+
- **Number of Videos**: 13,320
|
36 |
+
- **Categories**: Human actions such as sports, musical instruments, and human-object interactions.
|
37 |
+
- **Format**: The dataset is stored in an image folder format, where each class has its own subdirectory containing frames extracted from videos.
|
38 |
+
|
39 |
+
The dataset is ideal for tasks such as:
|
40 |
+
|
41 |
+
- Action recognition
|
42 |
+
- Video classification
|
43 |
+
- Transfer learning
|
44 |
+
- Benchmarking deep learning models
|
45 |
+
|
46 |
+
---
|
47 |
+
|
48 |
+
## Dataset Structure
|
49 |
+
|
50 |
+
The dataset is organized in an image folder format, which is compatible with the Hugging Face `datasets` library. The directory structure is as follows:
|
51 |
+
|
52 |
+
```
|
53 |
+
/data
|
54 |
+
βββ class1
|
55 |
+
β βββ video1_frame1.jpg
|
56 |
+
β βββ video1_frame2.jpg
|
57 |
+
β βββ ...
|
58 |
+
βββ class2
|
59 |
+
β βββ video2_frame1.jpg
|
60 |
+
β βββ video2_frame2.jpg
|
61 |
+
β βββ ...
|
62 |
+
βββ ...
|
63 |
+
```
|
64 |
+
|
65 |
+
Each subdirectory represents a class, and the images within the subdirectory are frames extracted from videos belonging to that class.
|
66 |
+
|
67 |
+
---
|
68 |
+
|
69 |
+
## Usage
|
70 |
+
|
71 |
+
### Loading the Dataset
|
72 |
+
|
73 |
+
To load the dataset using the Hugging Face `datasets` library, use the following code:
|
74 |
+
|
75 |
+
```python
|
76 |
+
from datasets import load_dataset
|
77 |
+
|
78 |
+
dataset = load_dataset("ProgramerSalar/video_dataset")
|
79 |
+
```
|
80 |
+
|
81 |
+
### Accessing the Dataset
|
82 |
+
|
83 |
+
Once loaded, you can access the dataset's splits and features:
|
84 |
+
|
85 |
+
```python
|
86 |
+
print(dataset)
|
87 |
+
```
|
88 |
+
|
89 |
+
### Pushing Updates to the Dataset
|
90 |
+
|
91 |
+
If you make modifications to the dataset and want to push the changes to the Hugging Face Hub, use the following code:
|
92 |
+
|
93 |
+
```python
|
94 |
+
dataset.push_to_hub("ProgramerSalar/video_dataset")
|
95 |
+
```
|
96 |
+
|
97 |
+
---
|
98 |
+
|
99 |
+
## Features
|
100 |
+
|
101 |
+
- **Easy Access**: Load the dataset directly from the Hugging Face Hub without manual downloads or preprocessing.
|
102 |
+
- **Hugging Face Integration**: Compatible with the Hugging Face `datasets` library for seamless integration into machine learning pipelines.
|
103 |
+
- **Customizable**: Modify the dataset structure or preprocessing steps to suit your specific needs.
|
104 |
+
- **Reproducibility**: Ensure consistent dataset handling across different projects and teams.
|
105 |
+
|
106 |
+
---
|
107 |
+
|
108 |
+
## Preprocessing
|
109 |
+
|
110 |
+
The dataset has been preprocessed to extract frames from videos and organize them into an image folder format. This format is widely used for video classification tasks and is compatible with most deep learning frameworks.
|
111 |
+
|
112 |
+
If you wish to preprocess the dataset further, you can use tools like OpenCV or FFmpeg to extract frames, resize images, or apply data augmentation.
|
113 |
+
|
114 |
+
---
|
115 |
+
|
116 |
+
## Hugging Face Integration
|
117 |
+
|
118 |
+
The Hugging Face Hub is a powerful platform for sharing datasets, models, and other machine learning assets. By hosting the dataset on the Hub, we provide the following benefits:
|
119 |
+
|
120 |
+
- **Centralized Access**: Access the dataset from anywhere with an internet connection.
|
121 |
+
- **Collaboration**: Share the dataset with collaborators or the community.
|
122 |
+
- **Version Control**: Maintain different versions of the dataset for reproducibility.
|
123 |
+
|
124 |
+
To push updates to the dataset, authenticate with your Hugging Face account and use the `push_to_hub` method provided by the `datasets` library.
|
125 |
+
|
126 |
+
---
|
127 |
+
|
128 |
+
## Applications
|
129 |
+
|
130 |
+
The dataset is suitable for a wide range of applications, including:
|
131 |
+
|
132 |
+
- **Action Recognition**: Train models to classify human actions in videos.
|
133 |
+
- **Transfer Learning**: Use the dataset to pretrain models for video-based tasks.
|
134 |
+
- **Benchmarking**: Evaluate the performance of video classification models.
|
135 |
+
- **Research**: Explore new architectures and techniques for video understanding.
|
136 |
+
|
137 |
+
---
|
138 |
+
|
139 |
+
## Contributing
|
140 |
+
|
141 |
+
Contributions to this project are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request. Please ensure your contributions adhere to the following guidelines:
|
142 |
+
|
143 |
+
- Follow the existing code style and structure.
|
144 |
+
- Provide clear and concise documentation for any new features.
|
145 |
+
- Test your changes thoroughly before submitting.
|
146 |
+
|
147 |
+
---
|
148 |
+
|
149 |
+
## License
|
150 |
+
|
151 |
+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
|
152 |
+
|
153 |
+
---
|
154 |
+
|
155 |
+
## Acknowledgments
|
156 |
+
|
157 |
+
- ** Dataset Creators**: Thank you for creating and maintaining this invaluable resource for the machine learning community.
|
158 |
+
- **Hugging Face**: For providing the `datasets` library and the Hub platform.
|
159 |
+
- **Open-Source Community**: For contributing tools and resources that make machine learning accessible to everyone.
|
160 |
+
|
161 |
+
---
|
162 |
+
|
163 |
+
## Contact
|
164 |
+
|
165 |
+
If you have any questions or need assistance, feel free to reach out:
|
166 |
+
|
167 |
+
- **Author**: ProgramerSalar
|
168 |
+
- **Email**: [your-email@example.com]
|
169 |
+
- **GitHub**: [ProgramerSalar](https://github.com/ProgramerSalar)
|
170 |
+
|
171 |
+
---
|
172 |
+
|
173 |
+
Happy coding and exploring the dataset! π
|
__pycache__/data.cpython-312.pyc
ADDED
Binary file (364 Bytes). View file
|
|
data.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from datasets import load_dataset
|
2 |
+
|
3 |
+
dataset = load_dataset("videofolder", data_dir="E:/Dataset/UCF101/data/r1-video")
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
dataset.push_to_hub("ProgramerSalar/video_dataset")
|
data/r1-video/test.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:49909fbca9fa1ac2f874105a7a58ecfc03a58df8e24ba7090f3cf0c2414bef85
|
3 |
+
size 1278269952
|
data/r1-video/train.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9a59502b9d6a04dbc4f21dbfaf2bc1d636f043a74d0838b71fe8930e2946b19e
|
3 |
+
size 7203586560
|
data/r1-video/validation.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:18a0e811579e15533df151b5340d087f56d47a64c1d61ea922715223a7050f8f
|
3 |
+
size 1342666752
|