Skip to content

Commit

Permalink
Fix chesapeake plot test
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnair1 committed Aug 9, 2024
1 parent dd27fd4 commit 919bbb2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/datasets/test_chesapeake.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ def test_plot(self, dataset: ChesapeakeCVPR) -> None:
plt.close()
dataset.plot(x, show_titles=False)
plt.close()
x['prediction'] = x['mask'][:, :, 0].clone().unsqueeze(2)
if x['mask'].ndim == 2:
x['prediction'] = x['mask'].clone()
else:
x['prediction'] = x['mask'][0, :, :].clone()
dataset.plot(x)
plt.close()

0 comments on commit 919bbb2

Please sign in to comment.