MaskRCNN transparent background

I used MaskRCNN and was successfully able to extract images. I was wondering how can I convert image on left handside to image on rightside

Picture1

With Regards,
Lariena