Skip to content

Commit

Permalink
fix val dice class tensorboard name
Browse files Browse the repository at this point in the history
  • Loading branch information
zdaiot committed Oct 12, 2019
1 parent 265de06 commit 1e06713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def train(self, train_loader, valid_loader):
self.writer.add_scalar('valid_loss', loss_valid, epoch)
self.writer.add_scalar('valid_dice', dice_valid, epoch)
for each_class, dice_class in enumerate(dice_classes):
self.writer.add_scalar('valid_dice_class{}'.format(each_class), dice_class, epoch)
self.writer.add_scalar('valid_dice_class{}'.format(each_class+1), dice_class, epoch)

def validation(self, valid_loader):
''' 完成模型的验证过程
Expand Down

0 comments on commit 1e06713

Please sign in to comment.