Skip to content

Commit 51100a1

Browse files
committed
rename
1 parent 7931c56 commit 51100a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/logger.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import torch
22

33
from utils.flow_viz import flow_tensor_to_image
4-
from .visualization import viz_depth_tensor_from_monodepth2
4+
from .visualization import viz_depth_tensor
55

66

77
class Logger:
@@ -63,8 +63,8 @@ def add_image_summary(self, img1, img2, flow_preds=None, flow_gt=None, mode='tra
6363
def add_depth_summary(self, depth_pred, depth_gt, mode='train'):
6464
# assert depth_pred.dim() == 2 # [H, W]
6565
if self.total_steps % self.summary_freq == 0 or 'val' in mode:
66-
pred_viz = viz_depth_tensor_from_monodepth2(depth_pred.detach().cpu()) # [3, H, W]
67-
gt_viz = viz_depth_tensor_from_monodepth2(depth_gt.detach().cpu())
66+
pred_viz = viz_depth_tensor(depth_pred.detach().cpu()) # [3, H, W]
67+
gt_viz = viz_depth_tensor(depth_gt.detach().cpu())
6868

6969
concat = torch.cat((pred_viz, gt_viz), dim=-1) # [3, H, W*2]
7070

@@ -79,7 +79,7 @@ def unnormalize_image(self, img):
7979

8080
return out
8181

82-
def push(self, metrics, mode='train', is_depth=False,):
82+
def push(self, metrics, mode='train', is_depth=False, ):
8383
self.total_steps += 1
8484

8585
self.lr_summary()

0 commit comments

Comments
 (0)