Skip to content

Commit 7beddae

Browse files
authored
Old link (http://host.robots.ox.ac.uk/pascal/VOC/voc2012/) is not available. So need to update the location of the dataset. (#9395)
1 parent c9fe90c commit 7beddae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

research/deeplab/datasets/download_and_convert_voc2012.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,20 @@ download_and_uncompress() {
5151
wget -nd -c "${BASE_URL}/${FILENAME}"
5252
fi
5353
echo "Uncompressing ${FILENAME}"
54-
tar -xf "${FILENAME}"
54+
sudo apt install unzip
55+
unzip "${FILENAME}"
5556
}
5657

5758
# Download the images.
58-
BASE_URL="http://host.robots.ox.ac.uk/pascal/VOC/voc2012/"
59-
FILENAME="VOCtrainval_11-May-2012.tar"
59+
BASE_URL="https://data.deepai.org/"
60+
FILENAME="PascalVOC2012.zip"
6061

6162
download_and_uncompress "${BASE_URL}" "${FILENAME}"
6263

6364
cd "${CURRENT_DIR}"
6465

6566
# Root path for PASCAL VOC 2012 dataset.
66-
PASCAL_ROOT="${WORK_DIR}/VOCdevkit/VOC2012"
67+
PASCAL_ROOT="${WORK_DIR}/VOC2012"
6768

6869
# Remove the colormap in the ground truth annotations.
6970
SEG_FOLDER="${PASCAL_ROOT}/SegmentationClass"

0 commit comments

Comments
 (0)