Skip to content

Commit

Permalink
add example for all data
Browse files Browse the repository at this point in the history
  • Loading branch information
theairlab committed Dec 5, 2024
1 parent 4d52eac commit 27bd62e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions examples/multi_thread_download_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@
camera_name = ['lcam_front', 'lcam_right', 'lcam_back', 'lcam_left', 'lcam_top', 'lcam_bottom'],
unzip = True,
num_workers = 8)

# To download the entire dataset
alldata = ta.get_all_data() # this fill in all available data for env, difficulty, modality and camera_name
ta.download_multi_thread(**alldata,
unzip = True,
num_workers = 8)
9 changes: 8 additions & 1 deletion tartanair/tartanair.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,14 @@ def init(tartanair_root):
is_init = True

return True


def get_all_data():
global downloader
return {"env": downloader.env_names,
"difficulty": downloader.difficulty_names,
"modality": downloader.modality_names,
"camera_name": downloader.camera_names,
}

def download(env = [], difficulty = [], modality = [], camera_name = [], config = None, unzip = False):
"""
Expand Down

0 comments on commit 27bd62e

Please sign in to comment.