Spaces:
Runtime error
Runtime error
Commit
·
10935d0
1
Parent(s):
ccbcc69
Update app.py
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def lossFN(outs, targets):
|
|
124 |
targets = targets.unsqueeze(1).expand_as(outs)
|
125 |
return TNN.BCEWithLogitsLoss()(outs, targets)
|
126 |
|
127 |
-
opt =
|
128 |
|
129 |
# Training and Finetuning
|
130 |
def train(mod, training_loader):
|
|
|
124 |
targets = targets.unsqueeze(1).expand_as(outs)
|
125 |
return TNN.BCEWithLogitsLoss()(outs, targets)
|
126 |
|
127 |
+
opt = torch.optim.Adam(mod.parameters(), lr=LEARNING_RATE)
|
128 |
|
129 |
# Training and Finetuning
|
130 |
def train(mod, training_loader):
|