-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Support downloading datasets from OpenDataLab using mim (#2593
- Loading branch information
1 parent
f40d8d2
commit 148a085
Showing
8 changed files
with
118 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
kitti: | ||
# The name of dataset in OpenDataLab referring to | ||
# https://opendatalab.com/KITTI_Object/cli. You can also download it | ||
# by running `odl get ${dataset}` independently | ||
dataset: KITTI_Object | ||
download_root: data | ||
data_root: data/kitti | ||
# Scripts for unzipping datasets | ||
script: tools/dataset_converters/kitti_unzip.sh | ||
|
||
nuscenes: | ||
# The name of dataset in OpenDataLab referring to | ||
# https://opendatalab.com/nuScenes/cli. You can also download it | ||
# by running `odl get ${dataset}` independently | ||
dataset: nuScenes | ||
download_root: data | ||
data_root: data/nuscenes | ||
# Scripts for unzipping datasets | ||
script: tools/dataset_converters/nuscenes_unzip.sh | ||
|
||
semantickitti: | ||
# The name of dataset in OpenDataLab referring to | ||
# https://opendatalab.com/SemanticKITTI/cli. You can also download it | ||
# by running `odl get ${dataset}` independently | ||
dataset: SemanticKITTI | ||
download_root: data | ||
data_root: data/semantickitti | ||
# Scripts for unzipping datasets | ||
script: tools/dataset_converters/semantickitti_unzip.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
DOWNLOAD_DIR=$1 # The directory where the downloaded data set is stored | ||
DATA_ROOT=$2 # The root directory of the converted dataset | ||
|
||
for zip_file in $DOWNLOAD_DIR/KITTI_Object/raw/*.zip; do | ||
echo "Unzipping $zip_file to $DATA_ROOT ......" | ||
unzip -oq $zip_file -d $DATA_ROOT | ||
echo "[Done] Unzip $zip_file to $DATA_ROOT" | ||
# delete the original files | ||
rm -f $zip_file | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
DOWNLOAD_DIR=$1 # The directory where the downloaded data set is stored | ||
DATA_ROOT=$2 # The root directory of the converted dataset | ||
|
||
for split in $DOWNLOAD_DIR/nuScenes/raw/*; do | ||
for tgz_file in $split/*; do | ||
if [[ $tgz_file == *.tgz ]] | ||
then | ||
echo "Unzipping $tgz_file to $DATA_ROOT ......" | ||
unzip -oq $tgz_file -d $DATA_ROOT/ | ||
echo "[Done] Unzip $tgz_file to $DATA_ROOT" | ||
fi | ||
# delete the original files | ||
rm -f $tgz_file | ||
done | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
DOWNLOAD_DIR=$1 # The directory where the downloaded data set is stored | ||
DATA_ROOT=$2 # The root directory of the converted dataset | ||
|
||
for zip_file in $DOWNLOAD_DIR/SemanticKITTI/raw/*.zip; do | ||
echo "Unzipping $zip_file to $DATA_ROOT ......" | ||
unzip -oq $zip_file -d $DATA_ROOT | ||
echo "[Done] Unzip $zip_file to $DATA_ROOT" | ||
# delete the original files | ||
rm -f $zip_file | ||
done |