tihbe / python-ebdataset Goto Github PK
View Code? Open in Web Editor NEWAn event based dataset loader under one common python API.
License: MIT License
An event based dataset loader under one common python API.
License: MIT License
Here is minimal working example:
from ebdataset.vision import IBMGesture, H5IBMGesture
from ebdataset.vision.transforms import ToDense
from quantities import ms
H5IBMGesture.convert(DVS_GESTURE_TAR, H5_FILE)
data = H5IBMGesture(H5_FILE)
spike_train = data[0][0]
convert = ToDense(10*ms)
dense = convert(spike_train)
Error message:
index 26880 is out of bounds for dimension 0 with size 128
File "/home/myhomefolder/pytorch_env/lib/python3.6/site-packages/ebdataset/vision/transforms.py", line 72, in __call__
] = 1
I found that the error is because of x and y in dvs spike train, please see below:
spike_train.x
array([ 49, 82, 7169, ..., 0, 0, 21248], dtype=uint16)
spike_train.x.max()
65531
dvs gesture size is 128x128, however, I can find values that are greater than 128 in both spike_train.x and spike_train.y
My environment:
torch==1.2.0
numpy==1.17.4
torchvision==0.4.0
h5py==3.1.0
quantities==0.12.4
There is a typo in usage section:
dt = 1*ms
loader = NMnist(path, is_train=True, transform=ToDense(dt))
The argument transform should be transforms
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.