I am running segmentation on a custom dataset (COCO-style) using the u7 fork (https://github.com/WongKinYiu/yolov7/blob/u7/seg/segment/predict.py).
The predict.py file has an optional parameter --save-txt but it only gives the bbox points, not segmentation polygons (as the expected input).
How can I export the segmentation polygons, or at least the masked images (per image per object/ class) ?
I guess at the end there will be a new line something like:
parser.add_argument('--save-segmentations', action='store_true', help='save the segmentation results to *.txt')
but where in the code do I get the these results from? and how to save them correctly?
Alternatively just the masks would also be ok (which are created in lines 161-165 I think?).
I am running segmentation on a custom dataset (COCO-style) using the u7 fork (https://github.com/WongKinYiu/yolov7/blob/u7/seg/segment/predict.py). The predict.py file has an optional parameter
--save-txt
but it only gives the bbox points, not segmentation polygons (as the expected input). How can I export the segmentation polygons, or at least the masked images (per image per object/ class) ? I guess at the end there will be a new line something like:parser.add_argument('--save-segmentations', action='store_true', help='save the segmentation results to *.txt')
but where in the code do I get the these results from? and how to save them correctly? Alternatively just the masks would also be ok (which are created in lines 161-165 I think?).
thanks!