You can do better by playing with intensities of pixel values as suggested in the article I linked.
mask = masks[0][0]
Also recent related reading: https://bartwronski.com/2020/03/15/using-jax-numpy-and-optim...
HN Discussion: https://news.ycombinator.com/item?id=22590360&ref=hvper.com&...
You can do better by playing with intensities of pixel values as suggested in the article I linked.