Skip to content

Instantly share code, notes, and snippets.

@pvskand
pvskand / zncc.py
Last active May 2, 2019 05:18
Zero Cross Correlation Layer
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import numpy
import cv2
import torch.optim as optim
from theano.tensor import *
import numpy