For extracting a single environment:
Ensure you've created the home_robot mamba environment from the first 3 steps of the Imitation in Homes documentation.
-
Compress video taken from the Record3D app:
-
Get the files on your machine.
- Option 1: Using Google drive:
- [Only once] Generate Google Service Account API key to download from private folders on Google Drive. There are some instructions on how to do so in this Stackoverflow link https://stackoverflow.com/a/72076913
- [Only once] Rename the .json file to
client_secret.jsonand put it in the same directory asgdrive_downloader.py - Upload
.zipfile into its own folder on Google Drive, and copy folder_id from URL to put it in theGDRIVE_FOLDER_IDin the./do-all.shfile.
- Option 2: Manually:
-
Comment out the
GDRIVE_FOLDER_IDline from./do-all.shand create the following hierarchy locallydataset/ |--- task1/ |------ home1/ |--------- Env1/ |------------ {data_file}.zip |--------- Env2/ |------------ {data_file}.zip |--------- Env.../ |------------ {data_file}.zip |------ home2/ |------ home.../ |--- task2/ |--- task.../
-
The .zip files should contain .r3d files exported from the Record3D app in the previous step.
-
- Option 1: Using Google drive:
-
Modify required variables in
do-all.sh.TASK_NAMEtask name.HOMEname or ID of the home.ROOT_FOLDERfolder where the data is stored after downloading.EXPORT_FOLDERfolder where the dataset is stored after processing. Should be different fromROOT_FOLDER.ENV_NOcurrent environment number in the same home and task set.GRIPPER_MODEL_PATHpath to the gripper model. It should be in this folder asgripper_model_new.pth.
-
Run
./do-all.sh
