-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6509c13
commit 2a4920b
Showing
23 changed files
with
289 additions
and
95 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,6 @@ | ||
[submodule "third_party/DeepLSD"] | ||
path = third_party/DeepLSD | ||
url = https://github.com/cvg/DeepLSD.git | ||
[submodule "third_party/pytlsd"] | ||
path = third_party/pytlsd | ||
url = https://github.com/iago-suarez/pytlsd.git |
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
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
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,42 @@ | ||
# Description: Prepare the directory structure for the seven scene dataset | ||
|
||
if [ ! -d "train_test_datasets" ]; then | ||
mkdir train_test_datasets | ||
fi | ||
|
||
if [ ! -d "train_test_datasets/gt_3Dmodels" ]; then | ||
mkdir train_test_datasets/gt_3Dmodels | ||
fi | ||
|
||
if [ ! -d "train_test_datasets/imgs_datasets" ]; then | ||
mkdir train_test_datasets/imgs_datasets | ||
fi | ||
|
||
TARGET_FOLDER="train_test_datasets/gt_3Dmodels" | ||
OUTPUT_FILE="Cambridge.zip" | ||
FILE_ID="19LRQ5j9I4YdrUykkoavcRTR6ekygU5iU" | ||
|
||
# Download the file from Google Drive using gdown and save it in the target folder | ||
gdown --id $FILE_ID -O $TARGET_FOLDER/$OUTPUT_FILE | ||
|
||
# Unzip the downloaded file in the target folder | ||
unzip $TARGET_FOLDER/$OUTPUT_FILE -d $TARGET_FOLDER | ||
|
||
# Remove the zip file after extraction | ||
rm $TARGET_FOLDER/$OUTPUT_FILE | ||
|
||
echo "Download, extraction, and cleanup completed in $TARGET_FOLDER." | ||
|
||
TARGET_FOLDER="train_test_datasets/imgs_datasets" | ||
FILE_ID="1MZyLPu9Z7tKCeuM4DchseoX4STIhKyi7" | ||
|
||
# Download the file from Google Drive using gdown and save it in the target folder | ||
gdown --id $FILE_ID -O $TARGET_FOLDER/$OUTPUT_FILE | ||
|
||
# Unzip the downloaded file in the target folder | ||
unzip $TARGET_FOLDER/$OUTPUT_FILE -d $TARGET_FOLDER | ||
|
||
# Remove the zip file after extraction | ||
rm $TARGET_FOLDER/$OUTPUT_FILE | ||
|
||
echo "Download, extraction, and cleanup completed in $TARGET_FOLDER." |
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,13 @@ | ||
OUTPUT_FILE="logs.zip" | ||
FILE_ID="1iH8PfqgPPQod0q_I8T_ZSO_mSj5XRUuO" | ||
|
||
# Download the file from Google Drive using gdown and save it in the target folder | ||
gdown --id $FILE_ID -O $OUTPUT_FILE | ||
|
||
# Unzip the downloaded file in the target folder | ||
unzip $OUTPUT_FILE | ||
|
||
# Remove the zip file after extraction | ||
rm $OUTPUT_FILE | ||
|
||
echo "Download, extraction, and cleanup completed." |
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,42 @@ | ||
# Description: Prepare the directory structure for the seven scene dataset | ||
|
||
if [ ! -d "train_test_datasets" ]; then | ||
mkdir train_test_datasets | ||
fi | ||
|
||
if [ ! -d "train_test_datasets/gt_3Dmodels" ]; then | ||
mkdir train_test_datasets/gt_3Dmodels | ||
fi | ||
|
||
if [ ! -d "train_test_datasets/imgs_datasets" ]; then | ||
mkdir train_test_datasets/imgs_datasets | ||
fi | ||
|
||
TARGET_FOLDER="train_test_datasets/gt_3Dmodels" | ||
OUTPUT_FILE="indoor6.zip" | ||
FILE_ID="1q28Tkldc--ucD4l7q15RDVsuZ7IN3CEV" | ||
|
||
# Download the file from Google Drive using gdown and save it in the target folder | ||
gdown --id $FILE_ID -O $TARGET_FOLDER/$OUTPUT_FILE | ||
|
||
# Unzip the downloaded file in the target folder | ||
unzip $TARGET_FOLDER/$OUTPUT_FILE -d $TARGET_FOLDER | ||
|
||
# Remove the zip file after extraction | ||
rm $TARGET_FOLDER/$OUTPUT_FILE | ||
|
||
echo "Download, extraction, and cleanup completed in $TARGET_FOLDER." | ||
|
||
TARGET_FOLDER="train_test_datasets/imgs_datasets" | ||
FILE_ID="1kzLPt7LuVJIqKrJMYSFicJ231KDDJxVh" | ||
|
||
# Download the file from Google Drive using gdown and save it in the target folder | ||
gdown --id $FILE_ID -O $TARGET_FOLDER/$OUTPUT_FILE | ||
|
||
# Unzip the downloaded file in the target folder | ||
unzip $TARGET_FOLDER/$OUTPUT_FILE -d $TARGET_FOLDER | ||
|
||
# Remove the zip file after extraction | ||
rm $TARGET_FOLDER/$OUTPUT_FILE | ||
|
||
echo "Download, extraction, and cleanup completed in $TARGET_FOLDER." |
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,64 @@ | ||
# Description: Prepare the directory structure for the seven scene dataset | ||
|
||
if [ ! -d "train_test_datasets" ]; then | ||
mkdir train_test_datasets | ||
fi | ||
|
||
if [ ! -d "train_test_datasets/gt_3Dmodels" ]; then | ||
mkdir train_test_datasets/gt_3Dmodels | ||
fi | ||
|
||
if [ ! -d "train_test_datasets/imgs_datasets" ]; then | ||
mkdir train_test_datasets/imgs_datasets | ||
fi | ||
|
||
TARGET_FOLDER="train_test_datasets/gt_3Dmodels" | ||
OUTPUT_FILE="7scenes.zip" | ||
FILE_ID="1X8_tV0Y4b_W-vPgeXKoqtFaDCQ5_csL3" | ||
|
||
# Download the file from Google Drive using gdown and save it in the target folder | ||
gdown --id $FILE_ID -O $TARGET_FOLDER/$OUTPUT_FILE | ||
|
||
# Unzip the downloaded file in the target folder | ||
unzip $TARGET_FOLDER/$OUTPUT_FILE -d $TARGET_FOLDER | ||
|
||
# Remove the zip file after extraction | ||
rm $TARGET_FOLDER/$OUTPUT_FILE | ||
|
||
echo "Download, extraction, and cleanup completed in $TARGET_FOLDER." | ||
|
||
|
||
cd train_test_datasets/imgs_datasets | ||
mkdir 7scenes | ||
cd 7scenes | ||
|
||
# List of datasets | ||
datasets=("chess" "fire" "heads" "office" "pumpkin" "redkitchen" "stairs") | ||
|
||
# Loop through each dataset | ||
for ds in "${datasets[@]}"; do | ||
# Check if the dataset directory exists | ||
if [ ! -d "$ds" ]; then | ||
echo "=== Downloading 7scenes Data: $ds ===============================" | ||
|
||
# Download the dataset zip file | ||
wget "http://download.microsoft.com/download/2/8/5/28564B23-0828-408F-8631-23B1EFF1DAC8/$ds.zip" | ||
|
||
# Unzip the dataset | ||
unzip "$ds.zip" | ||
|
||
# Remove the zip file | ||
rm "$ds.zip" | ||
|
||
# Loop through the dataset folder and unzip any additional zip files | ||
for file in "$ds"/*.zip; do | ||
if [ -f "$file" ]; then | ||
echo "Unpacking $file" | ||
unzip "$file" -d "$ds" | ||
rm "$file" | ||
fi | ||
done | ||
else | ||
echo "Found data of scene $ds already. Assuming its complete and skipping download." | ||
fi | ||
done |
Oops, something went wrong.