Spaces:
Sleeping
Sleeping
Update neuralnet/model.py
Browse files- neuralnet/model.py +1 -1
neuralnet/model.py
CHANGED
@@ -7,7 +7,7 @@ class InceptionEncoder(nn.Module):
|
|
7 |
def __init__(self, embed_size, train_CNN=False):
|
8 |
super(InceptionEncoder, self).__init__()
|
9 |
self.train_CNN = train_CNN
|
10 |
-
self.inception = models.inception_v3(pretrained=True, aux_logits=
|
11 |
self.inception.fc = nn.Linear(self.inception.fc.in_features, embed_size)
|
12 |
self.relu = nn.ReLU()
|
13 |
self.bn = nn.BatchNorm1d(embed_size, momentum = 0.01)
|
|
|
7 |
def __init__(self, embed_size, train_CNN=False):
|
8 |
super(InceptionEncoder, self).__init__()
|
9 |
self.train_CNN = train_CNN
|
10 |
+
self.inception = models.inception_v3(pretrained=True, aux_logits=False)
|
11 |
self.inception.fc = nn.Linear(self.inception.fc.in_features, embed_size)
|
12 |
self.relu = nn.ReLU()
|
13 |
self.bn = nn.BatchNorm1d(embed_size, momentum = 0.01)
|