Skip to content

Instantly share code, notes, and snippets.

View vineet140502's full-sized avatar
😎
Learning

Vineet Agarwal vineet140502

😎
Learning
  • IIT Guwahati
View GitHub Profile
@etienne87
etienne87 / HogLayer.py
Last active March 23, 2024 16:36
Histogram-of-Oriented Gradient in Pytorch in 10 minutes
import torch
import torch.nn as nn
import torch.nn.functional as F
import math
import time
def timeit(x, func, iter=10):
torch.cuda.synchronize()
start = time.time()