-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatic install script for downloading data (#299)
* add install script * FIx the install script * update instructions * uppdate scripts * Update projects/habitat_ovmm/README.md Co-authored-by: Arun Ramachandran <[email protected]> --------- Co-authored-by: Arun Ramachandran <[email protected]>
- Loading branch information
1 parent
50824db
commit 7c0a4dc
Showing
2 changed files
with
61 additions
and
5 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,47 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
|
||
# Download the scenes | ||
cd $HOME_ROBOT_ROOT | ||
git submodule update --init --recursive | ||
|
||
echo "Download the scenes..." | ||
git submodule update --init data/hssd-hab | ||
|
||
# Download the objects and metadata | ||
cd $HOME_ROBOT_ROOT | ||
echo "Download the objects..." | ||
git submodule update --init data/objects | ||
|
||
cd $HOME_ROBOT_ROOT | ||
echo "Download the episodes..." | ||
git submodule update --init data/datasets/ovmm | ||
|
||
echo "Safety; make sure you have downloaded everything." | ||
echo "If these are empty, you may have too old a git version." | ||
cd $HOME_ROBOT_ROOT/data/hssd-hab | ||
git lfs pull | ||
cd - | ||
|
||
cd $HOME_ROBOT_ROOT/data/objects | ||
git lfs pull | ||
cd - | ||
|
||
cd $HOME_ROBOT_ROOT/data/datasets/ovmm | ||
git lfs pull | ||
cd - | ||
|
||
echo "Download the robot model..." | ||
mkdir -p $HOME_ROBOT_ROOT/data/robots/hab_stretch | ||
cd $HOME_ROBOT_ROOT/data/robots/hab_stretch | ||
echo $HOME_ROBOT_ROOT/data/robots/hab_stretch | ||
|
||
echo "Unzip the robot model..." | ||
wget http://dl.fbaipublicfiles.com/habitat/robots/hab_stretch_v1.0.zip | ||
unzip hab_stretch_v1.0.zip | ||
|
||
echo "Done!" |