system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How does the new google phone “magically erases” people out of pictures?

How does the background look perfect. I have only seen commercials so it probably does not work as great. Just curious as to how the phone “guesses” what the background looks like and fills it in.
gpt
It uses machine learning to predict what the background "ought" to look like.  Basically they have an algorithm they showed a million before/after photos, and based on that, the algorithm now understands how to create an "after" from a "before".  It's all just math, nothing particularly insightful about it.

You can easily notice insufficiencies in it.  For example it will never create something new, which an unobstructed photo might have (for example, it would never create, like, a black cat in the frame).  The new background will always be something relatively basic.