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

Integrate L-BFGS-B from scipy

alexjc opened this issue · comments

The PyTorch implementation of L-BFGS in torch.optim.LBFGS is fast, however, it does not seem to be as reliable as the one in SciPy.
https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.fmin_l_bfgs_b.html

What needs doing?

  • Create a new Solver in solver.py that includes scipy's L-BFGS.
  • Compare reliability with PyTorch version on a diverse dataset of textures.

What's the challenge?

  • Ensure that scipy module is not required, only imported locally when necessary.
  • Ensure the solver works with both CUDA and CPU tensors.