# Improve Mask R-CNN segmentation

**URL:** <https://discuss.pytorch.org/t/improve-mask-r-cnn-segmentation/101788>\
**Category:** vision\
**Created:** [November 5, 2020, 7:22pm UTC](https://discuss.pytorch.org/t/improve-mask-r-cnn-segmentation/101788 "2020-11-05T19:22:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FiReTiTi](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/firetiti/32/28042_2.png) [@FiReTiTi](https://discuss.pytorch.org/u/FiReTiTi)\
**Post date:** [November 5, 2020, 7:22pm UTC](https://discuss.pytorch.org/t/improve-mask-r-cnn-segmentation/101788/1 "2020-11-05T19:22:32Z")

</div>

Hi,  
I’ve been using Mask R-CNN on my project and I’m very happy with the detection results. However, I’m not fully satisfied by the segmentation as I don’t think it is precise enough for my needs.

I tried to modify the `MaskRCNNPredictor` without success. So:

- What can I do to improve the segmentation part?
- Can I change the loss?
- Can I modify other parts of the model?

Thank you for your help
