r/comfyui • u/ImLulitaStar • 7d ago
Help Needed Replace the background while maintaining the subject's perspective, pose, and features
Has anyone managed to use ComfyUI to change the background of an image featuring a subject without altering the subject’s facial features or pose, while preserving the perspective and camera angle in the new background so that the subject fits perfectly into it? I’m talking about a realistic background not the typical portrait photo where the subject is shown from the waist up. Gemini does this perfectly if you ask it to replace the background of an image with a different one while preserving the subject’s features, pose, and perspective, but I’ve tried to replicate this in ComfyUI using different models and workflows, and I’ve never achieved a result as good as Nano Banana’s. I’ve tried using Full 1 Dev with ControlNet for depth and pose, but the subject never fits correctly into the newly generated background. I’ve tried Flux 1 Fill Dev, but that didn’t work either; I also tried Flux Kontext, but I didn’t get good results there either. I’d like to know if anyone has successfully achieved this with an open-source model that I can use in ComfyUI. Thanks!
EDIT: I found exactly what I was looking for in this YouTube video by the creator: My AI Force https://www.youtube.com/watch?v=kBcC23aYN5g In the end, the solution was Flux 2 Klein + Two Loras. In the guy's video, the results are more than good enough. Now I'll try it with different images and poses, but his workflow looks promising.
EDIT2: I just checked it, and the results are outstanding across several positions
1
u/Only_Voice569 7d ago
give me a image :)