diff --git a/Makefile b/Makefile index 618b051..8c73a8f 100644 --- a/Makefile +++ b/Makefile @@ -8,10 +8,12 @@ test: cython prepublish: ./run-docker.sh rm -rf dist ./run-docker.sh bash build.sh - twine upload dist/pysaliency*.tar.gz -r testpypi + twine upload --repository=pysaliency-test dist/pysaliency*.tar.gz # assumes that ~/.pypirc defines a pysaliency-test entry, see https://test.pypi.org/manage/account/token/ +# twine upload dist/pysaliency*.tar.gz -r testpypi publish: ./run-docker.sh rm -rf dist ./run-docker.sh bash build.sh - twine upload dist/pysaliency*.tar.gz + twine upload --repository=pysaliency dist/pysaliency*.tar.gz + diff --git a/pysaliency/external_models/matlab_models.py b/pysaliency/external_models/matlab_models.py index 48db14e..e9fd732 100644 --- a/pysaliency/external_models/matlab_models.py +++ b/pysaliency/external_models/matlab_models.py @@ -113,6 +113,9 @@ class ContextAwareSaliency(ExternalModelMixin, MatlabSaliencyMapModel): Stas Goferman, Lihi Zelnik-Manor, Ayellet Tal. Context-Aware Saliency Detection [CVPR 2010] [PAMI 2012] http://webee.technion.ac.il/labs/cgm/Computer-Graphics-Multimedia/Software/Saliency/Saliency.html + + (this URL is down as of 2024-06. Ther doesn't seem to be a new version, but you can check an old version + at https://web.archive.org/web/20230106184636/https://cgm.technion.ac.il/Computer-Graphics-Multimedia/Software/Saliency/Saliency.html) """ __modelname__ = 'ContextAwareSaliency' @@ -124,7 +127,10 @@ def _setup(self): with TemporaryDirectory() as temp_dir: if not os.path.isdir(temp_dir): os.makedirs(self.location) - download_and_check('http://webee.technion.ac.il/labs/cgm/Computer-Graphics-Multimedia/Software/Saliency/Saliency.zip', + # url = 'http://webee.technion.ac.il/labs/cgm/Computer-Graphics-Multimedia/Software/Saliency/Saliency.zip' + # The original URL is not available anymore. We use the webarchive version + url = 'https://web.archive.org/web/20230106184636/https://cgm.technion.ac.il/Computer-Graphics-Multimedia/Software/Saliency/Saliency.zip' + download_and_check(url, os.path.join(temp_dir, 'Saliency.zip'), 'c3c6768ef26e95def76000f51e8aad7c')