Where can I find the resulting image of semantic segmentation? #424
-
Where can I find the code to display the results of semantic segmentation? I want to save the predicted images together. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Kenta-b thanks for the question! The conversion from labels to image happens here: https://github.com/PyTorchLightning/lightning-flash/blob/master/flash/image/segmentation/serialization.py You could probably convert the predicted labels to an image like this:
This is definitely something we can do better. Ideally there would be a serializer which just gives back segmentation masks as tensors or PIL images, would you be interested in making a PR that implements this? Thanks 😃 |
Beta Was this translation helpful? Give feedback.
Hi @Kenta-b thanks for the question! The conversion from labels to image happens here: https://github.com/PyTorchLightning/lightning-flash/blob/master/flash/image/segmentation/serialization.py You could probably convert the predicted labels to an image like this:
This is definitely something we can do better. Ideally there would be a serializer which just gives back segmentation masks as tensors or PIL images, would you be interested in mak…