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.
GNU Affero General Public License v3.0
706 stars 32 forks source link

AssertionError: optimizer diverged #10

Closed arielbenitah closed 4 years ago

arielbenitah commented 4 years ago

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

alexjc commented 4 years ago

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.

arielbenitah commented 4 years ago

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

alexjc commented 4 years ago

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