i run alibi example anchor_image_imagenet.ipynb and it failed
data, labels = fetch_imagenet(category, nb_images=10, target_size=image_shape[:2], seed=2, return_X_y=True) <-- failed in this line. Imagenet API down Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/alibi/datasets.py", line 98, in fetch_imagenet page.raise_for_status() File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://www.image-net.org/api/text/imagenet.synset.geturls?wnid=n02123394
HTTPError Traceback (most recent call last)
This is because the Imagenet API has been discontinued. We have submitted a PR (#365) which replaces this with a small sample of images for use in examples which should be merged very soon. In the meantime, I would suggest testing the example with some custom images (cropped to resolution (299, 299)) for the Anchor example.
We've merged the PR that fixes this, if you install Alibi from the latest master then the examples are up to date.
have you update the alibi package ? i tried and falled with following error.
ImportError Traceback (most recent call last)
ImportError: cannot import name 'load_cats' from 'alibi.datasets' (/usr/local/lib/python3.7/dist-packages/alibi/datasets.py)
NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the "Open Examples" button below.
@heimao63531 you need to install the development version of alibi using pip install git+https://github.com/SeldonIO/alibi.git
we will release a new version likely next week.