"tests/vscode:/vscode.git/clone" did not exist on "a6be18fb5280472cb7336ceffd13f8aa03764c6a"
Commit 9d5a1a76 authored by Fan Yang's avatar Fan Yang Committed by A. Unique TensorFlower
Browse files

Internal change.

PiperOrigin-RevId: 398264305
parent 390c7a93
......@@ -133,3 +133,4 @@ class DiceScore:
if self._per_class_metric:
for class_id in range(self._num_classes):
self._dice_scores_per_class[class_id] = tf.Variable(0.0)
self._count_per_class[class_id] = tf.Variable(0.0)
......@@ -342,4 +342,6 @@ class SemanticSegmentation3DTask(base_task.Task):
metric_name = self.metrics[0].name + '/class_{0}'.format(
i - 1) if i > 0 else self.metrics[0].name
result.update({metric_name: metric_val})
else:
result.update({self.metrics[0].name: metric})
return result
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment