-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Custom Segmentation #421
Comments
@abdksyed thank you very much for the link, I have seen this already and was really wondering how to set up the json files, their structure , where to put the one files etc and what command to use to get training going. I am now in a position to start playing around and try to get this working. I’ll post back with an update. Thanks again 😊 |
I have a json file where the segmentation_info are bounding box coordinates. I also have a folder of mask images (png files) . I am wondering if I need to use coco_panoptic.py for this data, because the normal coco.py file takes polygon masks from the segmentation info in the json and so it would not be able to give the propper masks with just bounding box coordinates, it will need the information from the png images. |
Hi guys, I've ran into a problem with using segmentation, any help would be appreciated. thank you. I have my panoptic_coco (custom) dataset where each image contains multiple masks. I think it is something to do with: https://cocodataset.org/#format-data, Panoptic Segmentation, item 2 which says: |
The annotation folder must also have the image of the mask. As per the cocodataser.org/#format-data #4 which is Panoptic Segmentation, if you see they mention that the PNG images must be saved in the annotation folder, with the same name corresponding to the input image. If the image is say img_001.jpg, in the image folder, in the annotation folder there must be a same image_001.png which should be the mask of the image. |
You would have to make coco evaluator as None line in engine.py https://github.com/facebookresearch/detr/blob/main/engine.py#L77 |
I did train DETR on Custom Dataset, You can open any issue there, if you need help. |
Hi @abdksyed, thank you very much for your reply. So I would just need to comment out line 77, the same as line 78 has been commented out via #. Thank you very much for the link, I will take a look and will be in touch :) |
https://github.com/abdksyed/DETR/blob/main/detr/engine.py Yeah you can look into these, what to comment out. |
Brilliant @abdksyed, I will take a look and make the changes. |
Hi there @abdksyed , I commented out the lines but I am still facing the same error (identical) as shown above. |
Hi there @alcinos I have had great results using DETR in object detection but would like to extend this to segment the detected objects. How do I modify my existing object detection model for instance segmentation?
Thank you
The text was updated successfully, but these errors were encountered: