texturedesign / texturize

🤖🖌️ Generate photo-realistic textures based on source images or (soon) PBR materials. Remix, remake, mashup! Useful if you want to create variations on a theme or elaborate on an existing texture.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AssertionError: optimizer diverged

arielbenitah opened this issue · comments

Hi,
I tried to run your code on one of my own image
tex
and get the following:
Screenshot from 2020-06-24 17-36-46
However on your images the code is working fine:
Screenshot from 2020-06-24 17-39-44

I'm using python 3.7 and not python 3.8 - I configure the program by running this setup (remove python 3.8):
Screenshot from 2020-06-24 17-45-10

Do you have any idea about what can be the problem?

thanks a lot for your help.

Ariel

I'm currently working on this, and will be pushing some updates soon.

In api.py you can change lr=0.1 when creating the TextureSynthesizer instead of the default lr=1.0. You'll also need to increase the number of iterations accordingly.

Hi, thanks a lot for the quick reply. I'll do what you suggested.
Amazing work by the way - thanks for sharing it.

Try with the latest changes in [6bc90ef] and let me know if it's any better!