I am doing a detection with Mask R-CNN of one model available at Train Mask R-CNN for Image Segmentation. Code I First attempt After training I tried to change the background color of the image using the code available at Change the Background of Any Image with 5 Lines of Code. Although it is working, it is not worth it