-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please share Instance Segmentation custom training steps #752
Comments
Yeah, we're really grateful for adding an option of instance segmentation in the first place. Please, consider adding segmentation training script so we can use yolov7-mask at a full extent |
For object detection, two type of label formats are supported.
For instance segmentation, only polygon label format is supported.
After finish prepare your dataset, you have to do what you also need do when training custom object dataset. For example, create data yaml and model yaml of your custom dataset.
Finally, you could use the training script to train your instance segmentation model. (please remember to change data yaml and model yaml for your custom dataset) |
Another issue that I am facing with my custom dataset for instance segmentation is from loss calculation: seg/utils/loss.py, at line 198:
I assume it has nothing to do with my annotation format as it's using the prediction feature maps for detection. In my case, And just to double check, I have .txt annotation files placed in the same folder as the images, and each .txt contains polygon annotation only as you mentioned above. Do you have any insight regarding this? Thank you. Update: Resolved. Was using the wrong train.py. |
@WeiChihChern |
Btw, @WongKinYiu, could you tell us what's the difference between mask and seg versions of yolov7? |
@bottledmind I used the wrong training code apparently, should be using the one in ./seg/segments/train.py rather than the one in ./seg/train.py. It's training now. Thanks. |
@WeiChihChern 我发现我也是遇到这个问题,居然是没有找到正确的train.py😂 |
@WongKinYiu thanks! I am able to do the instance training on my dataset- |
Getting this error while trying the above instructions |
@WongKinYiu I am facing problems annotating objects formed by two polygons (see the figure attached). In coco style format, I can use segmentation as a list of list. How should I do it here? all x, y of two polygons at the same line? if I make different lines for them; I guess they will be recognized as two distinct instance of same class right? |
I have the same question. Did you solve it? @ahasan-haque |
Hello, could you share the script for creating YOLO custom dataset for Instance segmentation?
I dont find any idea for converting COCO format to the suggested format. I also use |
@WongKinYiu thanks for the great work, I have a question related to this, which is, does it work for polyline? i.e the segmentation labels are polylines instead of polygons |
@WongKinYiu , can you share the idea of model ensembling with 3 pre trained weights in YOLOv7 instance segmentation |
I have a small question. Since the dataset format for segmentation task is : class x1 y1 x2 y2 ...... What if I want to segment a circle object with a hole inside? This kind of dataset format will include the inside part which I don't want! |
@polarisV0V I have the same problem. I thinks there is no quick solution for this :( |
Hi @WongKinYiu ,
Please document and share the instance segmentation training steps for a custom dataset.
The text was updated successfully, but these errors were encountered: