Based on "Image Quilting for Texture Synthesis and Transfer" and "Real-Time Texture Synthesis by Patch-Based Sampling" papers
Here are the libraries and their versions you will need:
To start, open the Jupyter Notebook file "Patch-based Texture Synthesis", and follow the instructions :)
Below you can see the effect of different patch sizes: