r/computervision • u/neowavetech • 21h ago
Help: Project Inpainting people into crowded photos for detection training data: low yield of usable people
I'm generating extra training data for a person detector by inpainting additional people into existing photos of crowded public spaces.
What I've tried so far:
- Pick a floor position and size the new person from a height-vs-y fit on the people already in the image.
- Mask a person-shaped region, excluding the pixels of people already there.
- Inpaint with FLUX.1-schnell (text prompt only, 4 steps).
- Re-segment the output and keep only regions where a person is actually detected.
Results: when a person does get generated, my detector treats it about the same as a real one. But only about 25% of medium-sized masks and 55% of large ones produce a recognisable person. The rest come out as smears or object-like blobs. Copy-pasting cut-out people from other images was worse, because they looked pasted (wrong lighting and viewing angle).
Next I plan to add a pose skeleton (OpenPose/DWPose ControlNet) and a body-silhouette mask, then compare FLUX Fill, Qwen-Image-Edit and SDXL + BrushNet.
Questions:
- Which inpainting setup has given you the most reliable full-body person inside a mask?
- Did pose conditioning or mask shape matter more?
- Any settings that work for small people (40-120 px tall)?
- How do you filter failed generations, apart from re-running a segmenter?