Skip to content

Commit

Permalink
Fix build failures due to missing fridge datasets (#2573)
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft authored Jul 1, 2024
1 parent 519037c commit 42a6d27
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 4 additions & 5 deletions responsibleai_vision/tests/common_vision_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 42a6d27

Please sign in to comment.