free · open source · MIT
Remove a person from a photo with AI: the prompt
The prompt people type, the rewrite, and what changed. Both scores come from the real checker, not from a guess.
How do you remove a person from a photo with an AI prompt?
Say who goes, say what should fill the space, and forbid any crop or zoom so the whole frame comes back. The checker scores the original 5/100 and the rewrite 100/100, finding 1 of 6 edit parts before and 6 after.
The prompt before and after
Before · 5/100
Remove the guy in the background
After · 100/100
Remove the stranger walking in the background behind her shoulder and fill the space with matching sand, sea and sky so nothing looks patched. Keep the woman, her pose, the lighting and everything else exactly as they are. Output the full original frame at exactly the same zoom and position; do not crop, zoom in or recompose. Do not change the framing, crop, camera angle, or anything not mentioned. The result must look like an untouched real photograph, with no smudges, repeated textures, halos or visible seams.
What was wrong with the original
Too shortcosts 10 points
6 words. Under 15 words the model fills every gap with its default look. A working prompt is usually 40 to 120 words.
What the rewrite added
Fields the rewrite added: keep exactly, framing lock, no seams or halos, realism clause, scope limit. Copy the pattern, not the wording: keep your own subject and swap in your own light and lens.
| Part | Before | After |
|---|---|---|
| one named change | “Remove” | “Remove” |
| identity lock | none | “Keep the woman, her pose, the lighting and everything else exactly as they are” |
| framing lock | none | “full original frame”, “same zoom”, “do not crop” |
| no seams / halos | none | “fill the space”, “matching sand”, “nothing looks patched” |
| realism clause | none | “untouched real photograph” |
| scope limit | none | “and everything else”, “anything not mentioned” |
Matches are the exact phrases the checker found in each prompt.
Why the rewrite works
Removing an object leaves a hole, and a model fills it with whatever it likes. The rewrite says what should fill the space, here sand, sea and sky, keeps the subject by name and forbids a crop or zoom so the full original frame comes back unpatched.
Remove an object from your own photo in UniqAI's object remover.
Open the object removerThe command-line report for the original
no-plastic lint examples/07-edit-remove-stranger/before.txt
mode: edit words: 6 score: 5/100 (F)
coverage
[x] one named change "Remove"
[ ] identity lock list what must survive and say 'exactly as they are': face, skin tone, hair edges, expression, clothes, light
[ ] framing lock lock the frame: 'Output the full original frame at the same zoom; do not crop, zoom in or recompose'
[ ] no seams / halos for removals say what fills the hole ('matching sand, sea and sky') and forbid 'smudges, repeated textures, halos or visible seams'
[ ] realism clause say the result must read as an untouched real photograph, natural and not over-processed, no plastic skin
[ ] scope limit close the door on side effects: 'Do not change ... or anything not mentioned'
flags
!! too short "6 words" (-10)
under 15 words the model fills every gap with its default look; a working brief is usually 40-120 words
next: add identity lock, framing lock, no seams / halos, realism clause; then re-lint and pilot one imageMore examples
- Outfit change edit'Make him wear a green coat' becomes one change with identity, light-continuity and framing locks.5 → 100 · edit
- Enhance a photo'Make it HD and smooth the skin' becomes an enhance that keeps pores and stubble.7 → 100 · edit
- Selfie to headshot'Turn my selfie into a LinkedIn headshot' becomes the selfie-to-headshot template with an identity lock.15 → 100 · edit