Metadata-Version: 2.4
Name: druta
Version: 0.0.0
Summary: druta (द्रुत) - A fast video dataset format for PyTorch (for when storage isn't a problem)
Home-page: https://github.com/mayukhdeb/druta
Author: mayukhdeb
Author-email: mayukhmainak2000@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: decord2
Requires-Dist: torch
Requires-Dist: tqdm
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: summary

# druta (द्रुत)

A fast video dataset format for PyTorch (for when storage isn't a problem)


```python
import druta

druta.prep_dataset(
    video="video.mp4",
    save_as="video.druta",
    num_threads=4,
)

dataset = druta.Dataset(
    filename="video.druta",
)

for i in range(len(dataset)):
    frame = dataset[i]
    ## (height, width, 3)
    print(f"Frame {i} shape: {frame.shape}")
```
