Texture Synthesis addon

Here it is:

You will need: https://github.com/EmbarkStudios/texture-synthesis
After installing addon go to addon preferences and select directory where texture-synthesis.exe is installed.
Addon panel is located in IMAGE_EDITOR → Right Sidebar → Texture Synthesis panel.
ts_ui

18 Likes

Thanks , works fine :grinning:

Did not wan’t to say it, but I need instructions on how to install https://github.com/EmbarkStudios/texture-synthesis
I have no idea how lol.

1 Like

Firstly you download the Texture Synthesis “binary” or “executable” for your system (Mac, Windows, or Linux), it is provided on that link:

Then you install the Blender Addon by Jose, which is the GUI (graphic user interface) for that Texture Synthesis, you simply need to specify the path in the Preferences.

I made a video tutorial at my YouTube.

Whoa, just read the git readme, this is like style transfer on crack. Won’t be able to check out the code for some time, but definitely incredible possibilities with this.

This is over the top cool. Have been running this addon nonstop now for 3 hours. <3 it.

Anyone have experience with Resynthesizer for GIMP? Does this give better results?

Edit:
I don’t know much about this texture_synthesis project. For those who have experimented with it and knows more about the configurations, here I share an example with Resynthesizer in GIMP basically using default settings to compare:
*Source image:
https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQmfSe_sw1ijg4AwHMt1Cf2NnuQq6aegYwjzOneDLEhAd9mPCR_zQ

*Tileable pattern generated with Resynthesizer in GIMP:
http://www.image-share.com/upload/4000/275.jpg

*1920x1920 generated with the tileable image above:
http://www.image-share.com/upload/4000/276.jpg

Edit 2:
Sorry, now I see that this project supports multiple entries and masking. Many possibilities, really something I’m going to try.

Problem is I dont see any .exe
Also don’t know your Youtube

This is the Source Code.Zip

And I dont know what the .gz are.

I did run texture_synthesis on your example image. I would say results for Gimp(top) and Texture Synthesis (bottom) are very similar:


And yes, texture synthesis has few more options (inpaint, style transfer, synthesis from multiple images, variable seed etc). And you can batch convert/synthesize multiple images with blender addon.
@SPYNeox - gz file it is similar to zip file. Just extract windows version, and there should be exe file inside.

1 Like

I’m not at my machine, but for blender add on you usually go into preferences, add on, click install from file (or similar) and then browse to the .zip file, which blender knows to unzip and use. Sometimes you have check the checkbox on the add on which appears and then save changes.

Smart inpainting to remove objects from the image was the main use of Resynthesizer in GIMP (this was available much earlier than the famous photoshop filter). But all the other features are really interesting things that Resynthesizer doesn’t have, at least by default. Thanks for the addon!

1 Like

Ah I wasn’t aware .GZ was a type of ZIP lol
Thanks

I am using “apple-darwin” that TAR is a zipped binary. Very likely you will find the EXE inside “pc-windows” TAR.

What you downloaded inside that folder is the “uncompiled” version.

Anyways, once you got the EXE, that is the actual “Texture Synthesis” app, and all you need to do then is to use the Blender Add-on as the GUI for that app

Oh my,… this addon deserves waaay more attention.
To get an impression what this is about here an example of Style Transfer (one of the features):

This is not just an overlay or multiply or something! The software needs two pictures of this. In layman terms: One picture that has a structure (or structures) and another one an image / picture. Then the software copies pieces of the structure image and paste that in the image. It considers dark/bright values. You won’t see any of the original color back of the picture. All colors (and structures) are replaced by the structure image. But there are more features in the addon and software.

The installation is a bit tricky and there fore I made a video:

00:00 Introduction 02:13 Single variations 05:33 Tiling Textures 08:27 Reduce Tiling 09:30 Multiple Example Generation 13:24 Style Transfer 15:50 Installation of the addon and Texture Synthesis

2 Likes

2.82 i get the below.

location: :-1
Error: Traceback (most recent call last):
File “E:\blender\dailybuilds\2.82\blender-2.82-373e936e3e64-windows64\2.82\scripts\addons\texture_synthesis-master\main_operators.py”, line 96, in invoke
return self.execute(context)
File “E:\blender\dailybuilds\2.82\blender-2.82-373e936e3e64-windows64\2.82\scripts\addons\texture_synthesis-master\main_operators.py”, line 194, in execute
subprocess.Popen(command)
File “E:\blender\dailybuilds\2.82\blender-2.82-373e936e3e64-windows64\2.82\python\lib\subprocess.py”, line 775, in init
restore_signals, start_new_session)
File “E:\blender\dailybuilds\2.82\blender-2.82-373e936e3e64-windows64\2.82\python\lib\subprocess.py”, line 1178, in _execute_child
startupinfo)
PermissionError: [WinError 5] Access is denied

Not sure why that is. Could it be 3th party security software? Or are you signed in with admin Windows user account? Obviously something with access, but what.