Skip to content

Instantly share code, notes, and snippets.

Riding the category theory hype しんかんせん!

Mateen Ulhaq YodaEmbedding

Riding the category theory hype しんかんせん!
View GitHub Profile
YodaEmbedding /
Last active May 6, 2022
CompressAI Pytorch Lightning

CompressAI Pytorch Lightning example

YodaEmbedding / .clang-format
Created Jul 29, 2021
.clang-format for Rust style (rustfmt)
View .clang-format
AccessModifierOffset: -2
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveMacros: false
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: DontAlign
AlignOperands: false
AlignTrailingComments: false
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
YodaEmbedding /
Last active Apr 20, 2021
Please see appendix (attached in the Canvas comment) for usage instructions
from common import setup
import torch.nn.functional as F
args, model, data_module = setup()
test_data_loader = data_module.test_dataloader()
for batch in iter(test_data_loader):
inputs, targets = batch
YodaEmbedding /
Created Feb 7, 2021
Block-matching motion vector estimation in python
import numpy as np
import numba
def estimate_flow_blockmatching(prev_img, next_img, block_size, search_window):
"""Estimate motion vectors using block matching.
prev_img: previous frame