[RFC] Implement transforms primitives for Segmentation Masks
See original GitHub issueRelated tracker issue: #5754
Functional transforms for segmentation masks
The idea is to implement the following low-level functional transforms for segmentation masks: https://github.com/pytorch/vision/blob/main/torchvision/prototype/transforms/functional/_geometry.py
- affine_segmentation_mask (@vfdev-5) #5613
- rotate_segmentation_mask (@vfdev-5) #5692
- perspective_segmentation_mask (@vfdev-5) #5888
- center_crop_segmentation_mask (@federicopozzi33) #5961
- crop_segmentation_mask (@vfdev-5) #5851
- resized_crop_segmentation_mask (@vfdev-5) #5855
- pad_segmentation_mask (@federicopozzi33) #5866, need more tests: https://github.com/pytorch/vision/pull/5866/files#r859158083 -> https://github.com/pytorch/vision/pull/6104
- vertical_flip_segmentation_mask (@federicopozzi33) #5860, #5633
How to test the implementation ?
Put tests into test/test_prototype_transforms_functional.py
:
- correctness test
- eager vs scripted
- scriptable
- check on cpu and cuda
Issue Analytics
- State:
- Created a year ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
MaskFormer - Hugging Face
MaskFormer addresses semantic segmentation with a mask classification paradigm instead of performing classic pixel-level classification.
Read more >FocalClick: Towards Practical Interactive Image Segmentation
Interactive segmentation allows users to extract target masks by making positive/negative clicks. Although ex- plored by many previous works, there is still ...
Read more >Extending TorchVision's Transforms to Object Detection ...
You can use new functional transforms for transforming Videos, Bounding Boxes and Segmentation Masks. The interface remains the same to ...
Read more >Mask augmentation for segmentation - Albumentations
Pass image and masks to the augmentation pipeline and receive augmented images and masks.¶. If the image has one associated mask, you need...
Read more >Learning Segmentation Masks with the Independence Prior
Training with adversarial loss and penalty for mask area, each provider learns a mask that is as small as possible but enough to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m closing this tracker as done
I’d like to complete this issue doing center_crop_segmentation_mask.