Skip to content

Commit bf5e602

Browse files
committed
fix typo
1 parent b06e602 commit bf5e602

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ def test(segmentation_module, loader, args):
6161
pred_tmp = segmentation_module(feed_dict, segSize=segSize)
6262
pred = pred + pred_tmp / len(args.imgSize)
6363

64-
_, preds = torch.max(pred.data.cpu(), dim=1)
65-
preds = as_numpy(preds.squeeze(0))
66-
67-
print('[{}] iter {}'
68-
.format(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), i))
64+
_, preds = torch.max(pred.data.cpu(), dim=1)
65+
preds = as_numpy(preds.squeeze(0))
6966

7067
# visualization
7168
visualize_result(
7269
(batch_data['img_ori'], batch_data['info']),
7370
preds, args)
7471

72+
print('[{}] iter {}'
73+
.format(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), i))
74+
7575

7676
def main(args):
7777
torch.cuda.set_device(args.gpu_id)

0 commit comments

Comments
 (0)