Most images do very well using SalNet, however some older, fuzzier images might need a little help from another algorithm called Sharpen Image.
This algorithm uses an unsharp mask to sharpen the edges in the image, which increases the ability of the saliency detection algorithm to find the most relevant shapes in an image.
For the full blog post related to this recipe, see Improving Saliency Detection.
Install the Algorithmia client from PyPi:
You’ll also need a free Algorithmia account, which includes 5,000 free credits a month.
Find this line in the script:
and add in your API key.
How to Sharpen Images and Find the Saliency of those Images
After putting in your own API key to the line above run it in your console environment: