I have a dataset of 4000 images on which I have to train with pretrained weights (let's say yolact_im700_54_800000.pth), I have made changes in backbone.py "strict=True" as told in issue https://github.com/dbolya/yolact/issues/27 . But still, nothing improved after training. It got worse
could someone help me how to train on a new dataset with pretrained weights or how to do transfer learning?
You might want to lower the learning rate before fine tuning, since you'd be overwriting the pretrained results otherwise.
Admittedly, the model isn't set up very well right now for fine tuning since you'd likely want to only train certain layers instead of training the whole model, so proper fine tuning support is on the TODO list I guess.
Hey @dbolya
I have tried decreasing the learning rate as you told me but there is no improvement in segmentation and also result of the bounding box got bad.
You can see in the result attached below

You might want to try something like in #334.
Also make sure you're not training too long. With that small of a dataset, 40k training iterations is probably enough.
Thank you so much for your advice @dbolya ..I will get back to you once I m done with the training!
Hey @dbolya , I have tried the method you told me.. I think it will get better by fine-tuning
the model with adjusting learning rate n decay.
But In some results, I am getting double segmentation for the same object as shown below!
Could you tell me why this could be happening


change cross_class_nms from False to True (--cross_class_nms=True) and try.
You might want to try something like in #334.
Also make sure you're not training too long. With that small of a dataset, 40k training iterations is probably enough.
I have done as you told me with learning rate

at 1e -5 and a dataset of 2000 with only a single class but still, I m getting very low mAP for the mask.


And also some wrong detections

@sree3333 Are you sure your annotations are correct? It's really weird how it almost perfectly segments out some random object and calls it a person, but not the actual person in the center of the image.
And for
I have done as you told me with learning rate
Did you add the .detatch() in #334?
Hi @dbolya , thanks for your quick responses
Yes, I have added .detatch() in #334
Our annotations are good we have checked once again!
I also checked these images with pre-trained weights, it is giving the same result ..It is detecting some other random thing.
Could you please why this could happen!
Thanks a ton for helping me out.
And also please let me know, how many images the training has to be done if I want the segmentation accuracy on person class to be more accurate on the pixel level.
Sorry for the delay on this one. Are you still having this issue? If so, what does the output of the model look like on these images if you don't modify the original code, just use the off the shelf COCO models. The COCO models already should be able to detect people well, so there might be something wrong with your dataset definition.
Most helpful comment
I have done as you told me with learning rate




at 1e -5 and a dataset of 2000 with only a single class but still, I m getting very low mAP for the mask.
And also some wrong detections