Skip to content

Commit

Permalink
Visdom shows only the loss. The viewer shows only the predicted cloud…
Browse files Browse the repository at this point in the history
… now
  • Loading branch information
RaduAlexandru committed Jan 23, 2021
1 parent bb6ee22 commit cbedd36
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
Binary file modified latticenet_py/callbacks/__pycache__/state_callback.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file modified latticenet_py/callbacks/__pycache__/visdom_callback.cpython-36.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion latticenet_py/callbacks/viewer_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def __init__(self):

def after_forward_pass(self, pred_softmax, cloud, **kwargs):
self.show_predicted_cloud(pred_softmax, cloud)
self.show_difference_cloud(pred_softmax, cloud)
# self.show_difference_cloud(pred_softmax, cloud)


def show_predicted_cloud(self, pred_softmax, cloud):
Expand Down
8 changes: 4 additions & 4 deletions latticenet_py/callbacks/visdom_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ def __init__(self, experiment_name):

def after_forward_pass(self, phase, loss, loss_dice, lr, pred_softmax, target, cloud, **kwargs):
self.vis.log(phase.iter_nr, loss, "loss_"+phase.name, "loss_"+phase.name+"_"+self.experiment_name, smooth=True, show_every=10, skip_first=10)
self.vis.log(phase.iter_nr, loss_dice, "loss_dice_"+phase.name, "loss_"+phase.name+"_"+self.experiment_name, smooth=True, show_every=10, skip_first=10)
if phase.grad:
self.vis.log(phase.iter_nr, lr, "lr", "loss_"+phase.name+"_"+self.experiment_name, smooth=False, show_every=30)
# self.vis.log(phase.iter_nr, loss_dice, "loss_dice_"+phase.name, "loss_"+phase.name+"_"+self.experiment_name, smooth=True, show_every=10, skip_first=10)
# if phase.grad:
# self.vis.log(phase.iter_nr, lr, "lr", "loss_"+phase.name+"_"+self.experiment_name, smooth=False, show_every=30)


def epoch_ended(self, phase, **kwargs):
mean_iou=phase.scores.avg_class_iou(print_per_class_iou=False)
self.vis.log(phase.epoch_nr, mean_iou, "iou_"+phase.name, "loss_"+phase.name+"_"+self.experiment_name, smooth=False, show_every=1)
# self.vis.log(phase.epoch_nr, mean_iou, "iou_"+phase.name, "loss_"+phase.name+"_"+self.experiment_name, smooth=False, show_every=1)
Binary file modified latticenet_py/lattice/__pycache__/lattice_funcs.cpython-36.pyc
Binary file not shown.
Binary file modified latticenet_py/lattice/__pycache__/lattice_modules.cpython-36.pyc
Binary file not shown.

0 comments on commit cbedd36

Please sign in to comment.