dbolya / yolact

A simple, fully convolutional model for real-time instance segmentation.
MIT License
5.03k stars 1.32k forks source link

Question Masked Area in Eval.py #372

Open arunmp2004 opened 4 years ago

arunmp2004 commented 4 years ago

Hi, Thank you Daniel and Team for the great work and sharing. The samples were working well in the Google Colab.

How can I export only the masked area of the image? Which portion of the eval.py, evalimage method handles and object provides that?

Thanks, Arun

dbolya commented 4 years ago

Is #286 what you were thinking of?

arunmp2004 commented 4 years ago

Thank you Daniel. Yes, it is close to what I am looking for. How can I copy only the segmented/cropped image area excluding the black portion, so it can be pasted on a different image?

dbolya commented 4 years ago

In case you still need this, output a black and white mask and load it into photoshop / most image editing programs as a mask. Then apply that mask to the original image, and then you can paste it onto a new image.

arunmp2004 commented 4 years ago

Thank you Daniel, will give it a try.

On Wed, Apr 1, 2020 at 9:29 PM Daniel Bolya notifications@github.com wrote:

In case you still need this, output a black and white mask and load it into photoshop / most image editing programs as a mask. Then apply that mask to the original image, and then you can paste it onto a new image.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dbolya/yolact/issues/372#issuecomment-607586212, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZELYZEFF6HLTLNYIZG2MDRKP2AFANCNFSM4LDRSVJQ .

-- Best Regards, Arun