Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scenic/projects/avatar/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ def get_metrics_fn(self, split: Optional[str] = None):
"""
del split # The metric function is the same for all splits.

def metric_fn(
def metric_fn( # pytype: disable=annotation-type-mismatch
logits: jnp.ndarray,
targets: jnp.ndarray,
weights: jnp.ndarray,
Expand Down
2 changes: 1 addition & 1 deletion scenic/projects/pointcloud/segmentation_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def point_count(logits: jnp.ndarray,
})


def semantic_segmentation_metrics_function(
def semantic_segmentation_metrics_function( # pytype: disable=annotation-type-mismatch
logits: jnp.ndarray,
batch: base_model.Batch,
target_is_onehot: bool = False,
Expand Down