Skip to content

Commit 81997cd

Browse files
bombs-kimmeetps
authored andcommitted
Error fixed: labels -> labels_val
1 parent e6b4326 commit 81997cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def train(cfg, writer, logger):
156156
labels_val = labels_val.to(device)
157157

158158
outputs = model(images_val)
159-
val_loss = loss_fn(input=outputs, target=labels)
159+
val_loss = loss_fn(input=outputs, target=labels_val)
160160

161161
pred = outputs.data.max(1)[1].cpu().numpy()
162162
gt = labels_val.data.cpu().numpy()

0 commit comments

Comments
 (0)