Unverified Commit 7beddae1 authored by Aman Gupta's avatar Aman Gupta Committed by GitHub
Browse files

Old link (http://host.robots.ox.ac.uk/pascal/VOC/voc2012/) is not available....

Old link (http://host.robots.ox.ac.uk/pascal/VOC/voc2012/) is not available. So need to update the location of the dataset. (#9395)
parent c9fe90c1
...@@ -51,19 +51,20 @@ download_and_uncompress() { ...@@ -51,19 +51,20 @@ download_and_uncompress() {
wget -nd -c "${BASE_URL}/${FILENAME}" wget -nd -c "${BASE_URL}/${FILENAME}"
fi fi
echo "Uncompressing ${FILENAME}" echo "Uncompressing ${FILENAME}"
tar -xf "${FILENAME}" sudo apt install unzip
unzip "${FILENAME}"
} }
# Download the images. # Download the images.
BASE_URL="http://host.robots.ox.ac.uk/pascal/VOC/voc2012/" BASE_URL="https://data.deepai.org/"
FILENAME="VOCtrainval_11-May-2012.tar" FILENAME="PascalVOC2012.zip"
download_and_uncompress "${BASE_URL}" "${FILENAME}" download_and_uncompress "${BASE_URL}" "${FILENAME}"
cd "${CURRENT_DIR}" cd "${CURRENT_DIR}"
# Root path for PASCAL VOC 2012 dataset. # Root path for PASCAL VOC 2012 dataset.
PASCAL_ROOT="${WORK_DIR}/VOCdevkit/VOC2012" PASCAL_ROOT="${WORK_DIR}/VOC2012"
# Remove the colormap in the ground truth annotations. # Remove the colormap in the ground truth annotations.
SEG_FOLDER="${PASCAL_ROOT}/SegmentationClass" SEG_FOLDER="${PASCAL_ROOT}/SegmentationClass"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment