def make_loss(self, input, concat, target, test):
output = self.forwarder(input, concat, test)['image']
mae_loss = chainer.functions.mean_absolute_error(output, target)
loss = {
'mae': mae_loss,
}
chainer.report(loss, self.model)
return {
'main': loss,
}
评论列表
文章目录