How to get part from image and add it to another?
Hi, I have a model that predicts the human face segmentation.
But unfortunately the model is not trained to predict the hair with the face. So now I have the above images as numpy arrays. Is it possible to add the hair from the original photo (The one on the left) to the prediction mask (in the middle) or directly to the result prediction (the one on the right) ?
Basically I just need to deal with the original image to get a little bit from the head above the prediction mask and add it to the prediction so that way at least I'll have a part of the hair in the result.
Just like you built the face predictor, you will have to build filters that are able to segment out hair pixels. Make two separate masks and add them together. But something makes me believe you did not design the segmentation model for faces yourself?
Yes I didn't build the model of course .. if I did I would be able to retrain the model to predict the hair segmentation as well. That's why I'm asking
In that case, go look up how your first model was trained, try to clone it and learn one for that segmentation and come back here if you hit brick walls. That is what the Q&A is designed for. Having successful and working computer vision applications simply does not work by taking of-the-shelf parts and mixing them together without a deep understanding of what is happening.