Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
31b0e518
Unverified
Commit
31b0e518
authored
May 04, 2020
by
Yukun Zhu
Committed by
GitHub
May 04, 2020
Browse files
Allow deeplab dataset script to be run from any location (#8466)
Thanks amangu@ for fixing this script.
parent
d93a1206
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
research/deeplab/datasets/download_and_convert_voc2012.sh
research/deeplab/datasets/download_and_convert_voc2012.sh
+3
-2
No files found.
research/deeplab/datasets/download_and_convert_voc2012.sh
View file @
31b0e518
...
@@ -37,6 +37,7 @@ set -e
...
@@ -37,6 +37,7 @@ set -e
CURRENT_DIR
=
$(
pwd
)
CURRENT_DIR
=
$(
pwd
)
WORK_DIR
=
"./pascal_voc_seg"
WORK_DIR
=
"./pascal_voc_seg"
SCRIPT_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
mkdir
-p
"
${
WORK_DIR
}
"
mkdir
-p
"
${
WORK_DIR
}
"
cd
"
${
WORK_DIR
}
"
cd
"
${
WORK_DIR
}
"
...
@@ -69,7 +70,7 @@ SEG_FOLDER="${PASCAL_ROOT}/SegmentationClass"
...
@@ -69,7 +70,7 @@ SEG_FOLDER="${PASCAL_ROOT}/SegmentationClass"
SEMANTIC_SEG_FOLDER
=
"
${
PASCAL_ROOT
}
/SegmentationClassRaw"
SEMANTIC_SEG_FOLDER
=
"
${
PASCAL_ROOT
}
/SegmentationClassRaw"
echo
"Removing the color map in ground truth annotations..."
echo
"Removing the color map in ground truth annotations..."
python
.
/remove_gt_colormap.py
\
python
3
"
${
SCRIPT_DIR
}
/remove_gt_colormap.py
"
\
--original_gt_folder
=
"
${
SEG_FOLDER
}
"
\
--original_gt_folder
=
"
${
SEG_FOLDER
}
"
\
--output_dir
=
"
${
SEMANTIC_SEG_FOLDER
}
"
--output_dir
=
"
${
SEMANTIC_SEG_FOLDER
}
"
...
@@ -82,7 +83,7 @@ IMAGE_FOLDER="${PASCAL_ROOT}/JPEGImages"
...
@@ -82,7 +83,7 @@ IMAGE_FOLDER="${PASCAL_ROOT}/JPEGImages"
LIST_FOLDER
=
"
${
PASCAL_ROOT
}
/ImageSets/Segmentation"
LIST_FOLDER
=
"
${
PASCAL_ROOT
}
/ImageSets/Segmentation"
echo
"Converting PASCAL VOC 2012 dataset..."
echo
"Converting PASCAL VOC 2012 dataset..."
python
.
/build_voc2012_data.py
\
python
3
"
${
SCRIPT_DIR
}
/build_voc2012_data.py
"
\
--image_folder
=
"
${
IMAGE_FOLDER
}
"
\
--image_folder
=
"
${
IMAGE_FOLDER
}
"
\
--semantic_segmentation_folder
=
"
${
SEMANTIC_SEG_FOLDER
}
"
\
--semantic_segmentation_folder
=
"
${
SEMANTIC_SEG_FOLDER
}
"
\
--list_folder
=
"
${
LIST_FOLDER
}
"
\
--list_folder
=
"
${
LIST_FOLDER
}
"
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment