Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
fix debug display condition (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
suttang authored and tkng committed Sep 18, 2019
1 parent 34758e3 commit 314355b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lmnet/lmnet/networks/segmentation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ def loss(self, output, labels):
weight = (all_size - num_label) / all_size
loss_weight.append(weight)

loss_weight = tf.Print(loss_weight, loss_weight, message="loss_weight:")
if self.is_debug:
loss_weight = tf.Print(loss_weight, loss_weight, message="loss_weight:")

reshape_output = tf.reshape(output, (-1, self.num_classes))

Expand Down

0 comments on commit 314355b

Please sign in to comment.