Skip to content

Commit

Permalink
Undo copypasta error in docstring test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocaccin committed Feb 22, 2023
1 parent 193dbcb commit a5c6b92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/torchmetrics/detection/panoptic_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ class PanopticQuality(Metric):
... [[0, 1], [0, 1], [6, 0], [1, 0]],
... [[0, 1], [7, 0], [1, 0], [1, 0]],
... [[0, 1], [7, 0], [7, 0], [7, 0]]]])
>>> panoptic_quality(preds, target, things = {0, 1}, stuffs = {6, 7})
>>> panoptic_quality = PanopticQuality(things = {0, 1}, stuffs = {6, 7})
>>> panoptic_quality(preds, target)
tensor(0.5463, dtype=torch.float64)
"""
Expand Down

0 comments on commit a5c6b92

Please sign in to comment.