Skip to content

Instantly share code, notes, and snippets.

View dsuess's full-sized avatar
🤔
...

Daniel Suess dsuess

🤔
...
View GitHub Profile
class VideoReader:
def __init__(self, *paths, sampling_rate=None, batch_size=None, drop_last_batch=False):
self.paths = list(paths)
self.sampling_rate = sampling_rate
self.batch_size = batch_size
self.drop_last_batch = drop_last_batch
@staticmethod
def _get_video_properties(path):
@dsuess
dsuess / Pytorch ONNX.ipynb
Created December 20, 2018 03:45
Pytorch ONNX.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dsuess
dsuess / circular.ipynb
Created April 21, 2017 06:56
Liu West Resampler Fail
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dsuess
dsuess / haar.py
Created April 11, 2017 11:56
Haar Distribution in PyMC3
def HaarDistribution(name, dim, model=None):
def transform(x):
pi = np.pi
def component(i):
result = T.cos(pi * x[i])
for j in range(i):
result *= T.sin(pi * x[j])
return result