This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
NewerOlder