Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaton committed May 12, 2021
1 parent 1da7d89 commit 8349d40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/vision/segmentation/test_serialization.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest
import torch

from flash.data.data_source import DefaultDataKeys
from flash.vision.segmentation.serialization import SegmentationLabels


Expand Down Expand Up @@ -30,7 +31,7 @@ def test_serialize(self):
sample[1, 1, 2] = 1 # add peak in class 2
sample[3, 0, 1] = 1 # add peak in class 4

classes = serial.serialize(sample)
classes = serial.serialize({DefaultDataKeys.PREDS: sample})
assert classes[1, 2] == 1
assert classes[0, 1] == 3

Expand Down

0 comments on commit 8349d40

Please sign in to comment.