Inpainting texture to another image-to-image

Hi there!

I have a question regarding inpainting of one image into another. I’m experimenting with changing a floor of a room with a different texture. However, when I use Inpainting with mask, I get some random texture and not the one I wanted.

Could someone point me to the right direction or provide some public code for this problem?

Thanks!
Cheers