From 42a6d27feba616c0dfa6deac988cfd2e562a75b6 Mon Sep 17 00:00:00 2001 From: Ilya Matiach Date: Mon, 1 Jul 2024 18:24:12 -0400 Subject: [PATCH] Fix build failures due to missing fridge datasets (#2573) --- ...ard-fridge-image-classification-model-debugging.ipynb | 4 ++-- ...multilabel-image-classification-model-debugging.ipynb | 4 ++-- responsibleai_vision/tests/common_vision_utils.py | 9 ++++----- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-image-classification-model-debugging.ipynb b/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-image-classification-model-debugging.ipynb index 8e879ab3aa..0afebca8fe 100644 --- a/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-image-classification-model-debugging.ipynb +++ b/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-image-classification-model-debugging.ipynb @@ -75,8 +75,8 @@ " os.makedirs(\"data\", exist_ok=True)\n", "\n", " # download data\n", - " download_url = (\"https://cvbp-secondary.z19.web.core.windows.net/\" +\n", - " \"datasets/image_classification/fridgeObjects.zip\")\n", + " download_url = (\"https://publictestdatasets.blob.core.windows.net/\" +\n", + " \"computervision/fridgeObjects.zip\")\n", " data_file = \"./data/fridgeObjects.zip\"\n", " urlretrieve(download_url, filename=data_file)\n", "\n", diff --git a/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-multilabel-image-classification-model-debugging.ipynb b/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-multilabel-image-classification-model-debugging.ipynb index eab8ff6c5f..8e7cac4cf6 100644 --- a/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-multilabel-image-classification-model-debugging.ipynb +++ b/notebooks/responsibleaidashboard/vision/responsibleaidashboard-fridge-multilabel-image-classification-model-debugging.ipynb @@ -75,8 +75,8 @@ " os.makedirs(\"data\", exist_ok=True)\n", "\n", " # download data\n", - " download_url = (\"https://cvbp-secondary.z19.web.core.windows.net/\" +\n", - " \"datasets/image_classification/multilabelFridgeObjects.zip\")\n", + " download_url = (\"https://publictestdatasets.blob.core.windows.net/\" +\n", + " \"computervision/multilabelFridgeObjects.zip\")\n", " folder_path = './data/multilabelFridgeObjects'\n", " data_file = folder_path + '.zip'\n", " urlretrieve(download_url, filename=data_file)\n", diff --git a/responsibleai_vision/tests/common_vision_utils.py b/responsibleai_vision/tests/common_vision_utils.py index b3f63c6bd0..1526b4867b 100644 --- a/responsibleai_vision/tests/common_vision_utils.py +++ b/responsibleai_vision/tests/common_vision_utils.py @@ -187,8 +187,8 @@ def load_fridge_dataset(add_extra_mixed_metadata=False): os.makedirs("data", exist_ok=True) # download data - download_url = ("https://cvbp-secondary.z19.web.core.windows.net/" + - "datasets/image_classification/fridgeObjects.zip") + download_url = ("https://publictestdatasets.blob.core.windows.net/" + + "computervision/fridgeObjects.zip") data_file = "./data/fridgeObjects.zip" retrieve_unzip_file(download_url, data_file) # get all file names into a pandas dataframe with the labels @@ -436,9 +436,8 @@ def load_multilabel_fridge_dataset(): os.makedirs("data", exist_ok=True) # download data - download_url = ("https://cvbp-secondary.z19.web.core.windows.net/" + - "datasets/image_classification/" + - "multilabelFridgeObjects.zip") + download_url = ("https://publictestdatasets.blob.core.windows.net/" + + "computervision/multilabelFridgeObjects.zip") folder_path = './data/multilabelFridgeObjects' data_file = folder_path + '.zip' retrieve_unzip_file(download_url, data_file)