Idea for better integration of subjects
The isolation of subjects apparently works really well. It recognizes the edges of people, including the hair, perfectly. However, when changing the background there are problems with the integration of the subjects and the edges merge with the background in an undesired way. I think it would be better to keep the current method you're already using but then "generate more background inward" around the edges of the subjects and then putting the before isolated subjects on top to maintain the clean edges. I hope I was clear in conveying my suggestion.
