Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
DVS-Gestures-Chain. Implementation of the dataset defined in "Spiking Neural Networks for event-based action recognition: A new task to understand their advantage"
Official implementation of the dataset defined in Spiking Neural Networks for event-based action recognition: A new task to understand their advantage
From PyPI:
pip install dvsgc
From GitHub source code:
git clone https://github.com/VicenteAlex/DVS-Gesture-Chain.git
pip install requirements
Just instantiate DVSGestureChain and run it as a torchvision.datasets.DatasetFolder:
Inherits from torchvision.datasets.DatasetFolder
CLASS dvsgc.DVSGestureChain(
root, frames_number, split, validation=0.2, split_by='number', alpha_min=0.5, alpha_max=0.7, seq_len=4,
class_num=3, repeat=True, dvsg_path=None, transform=None, target_transform=None)
Arguments:
time
or number
Usage:
Example:
train_set = dvsgc.DVSGestureChain(root=dataset_dir, split='train', frames_number=T)
train_loader = torch.utils.data.DataLoader(train_set, batch_size=N, shuffle=True, num_workers=4, pin_memory=True, drop_last=True)
validation_set = dvsgc.DVSGestureChain(root=dataset_dir, split='validation', frames_number=T)
validation_loader = torch.utils.data.DataLoader(validation_set, batch_size=N, shuffle=True, num_workers=4, pin_memory=True, drop_last=True)
Downloading the data:
DVS-GC requires to download the data from the original DVS-Gesture dataset, as this is not downloaded automatically, the first time the dataset is used the following message will appear: "This dataset can not be downloaded automatically, please download files manually and put files at root/download". Follow the instructions and download the DVS-Gesture files into that folder. Then re-run.
Saving memory:
The first time the dataset is used, the code will extract DVS-Gestures to the folder "extract", then build events from it in the folder "events_np" and then, from those events, create the frames for the DVS-GC dataset in a "DVSGC..." folder.
Once events_np is created, the extract folder and download folder are no longer necessary.
The "events_np" folder will be used every time a new DVS-GC dataset is created with different parameters. Alternatively, if an already existing DVS-GC dataset is used, "events_np" is not necessary.
FAQs
DVS-Gestures-Chain. Implementation of the dataset defined in "Spiking Neural Networks for event-based action recognition: A new task to understand their advantage"
We found that dvsgc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.