Skip to content

A Pytorch Dataset to load the 20BN-JESTER hand gesture data set or datasets that have the same format

License

Notifications You must be signed in to change notification settings

FabianHertwig/pytorch_20BN-JESTER_Dataset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pytorch 20BN-JESTER Dataset

A Pytorch Dataset to load the 20BN-JESTER hand gesture dataset or datasets that have the same format.

Usage

Install this package

pip install git+https://github.com/FabianHertwig/pytorch_20BN-JESTER_Dataset

You will also need the video_transforms from this repo:

pip install git+https://github.com/hassony2/torch_videovision

Code Example:

from torch.utils.data.dataloader import DataLoader
from jesterdataset import JesterDataset
from torchvideotransforms.volume_transforms import ClipToTensor

dataset = JesterDataset("./jester_data/jester-v1-train.csv", "./jester_data/20bn-jester-v1",
                        video_transform=ClipToTensor())
dataloader = DataLoader(dataset, batch_size=4, shuffle=True, num_workers=4)

for i_batch, sample_batched in enumerate(dataloader):
    batch, label = sample_batched
    assert(len(batch) <= 4)
    print(f"Batch number {i_batch} has a batch size of {len(batch)}")

About

A Pytorch Dataset to load the 20BN-JESTER hand gesture data set or datasets that have the same format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages