Skip to content

Instantly share code, notes, and snippets.

View rchavezj's full-sized avatar

Roberto Chavez Jr rchavezj

View GitHub Profile
import math
from torch import nn
from torch.nn import init
# pre-trained SRResNet model
model_url = 'https://s3.amazonaws.com/pytorch/demos/srresnet-e10b2039.pth'
# model definition
def _initialize_orthogonal(conv):