Skip to content

Instantly share code, notes, and snippets.

View simgt's full-sized avatar

Simon simgt

  • France
View GitHub Profile
@simgt
simgt / mobilenetv2.py
Created July 1, 2019 14:43
Mobilenetv2 embedding with output normalization
def conv_bn(inp, oup, stride):
return nn.Sequential(
nn.Conv2d(inp, oup, 3, stride, 1, bias=False),
nn.BatchNorm2d(oup),
nn.ReLU6(inplace=True)
)
def conv_1x1_bn(inp, oup):
return nn.Sequential(