This is a ip2p adapter which creates a new profile picture with the model you select and a new background, based off the initial images.
Inputs :
Background to imitate with model X
Profile picture to imitate with model Y
Seeds
Steps
Frames
CFG
Resolution
You can also tweak :
Pic profile generator rembg node
Do better upscaling
The second K Sampler in the background generator
You might need first to install the missing nodes and download a img2video model here : https://civitai.com/models/207992?modelVersionId=234212
These custom nodes for ip2p adapters are used also : https://github.com/cubiq/ComfyUI_IPAdapter_plus