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

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Dec 1, 2021
1 parent 4958df0 commit 6a8972e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flash/image/segmentation/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class SemanticSegmentationDeserializer(ImageDeserializer):
def deserialize(self, data: str) -> Dict[str, Any]:
result = super().deserialize(data)
result[DataKeys.INPUT] = FT.to_tensor(result[DataKeys.INPUT])
result[DataKeys.METADATA] = {"size": result[DataKeys.INPUT].shape}
result[DataKeys.METADATA] = {"size": result[DataKeys.INPUT].shape[-2:]}
return result


Expand Down

0 comments on commit 6a8972e

Please sign in to comment.