EmbarkStudios / texture-synthesis

🎨 Example-based texture synthesis written in Rust 🦀
http://embark.rs
Apache License 2.0
1.75k stars 83 forks source link

Inpaint fails when there is nothing to inpaint #21

Closed vi closed 5 years ago

vi commented 5 years ago

Describe the bug

If inpaint mask is solid white, texture-synthesis just freezes (CPU busy) before showing any progress.

To Reproduce

$ convert -size 100x100 xc:#FFFFFF white.png
$ texture-synthesis --out-size=100x100 --in-size=100x100 --out=w.png --inpaint=white.png generate white.png 
^C

Expected behavior

A picture is generated, probably also fully white.

vi commented 5 years ago

This picture works, but if paint a black pixel white, it stops working:

white

vi commented 5 years ago

Also seems to be fixed by #26.