-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from KushalBKusram/waymo_2.0/download_data
2.0 | Download Data
- Loading branch information
Showing
10 changed files
with
44 additions
and
57 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,2 @@ | ||
if __name__=="__main__": | ||
print("Work In Progress") |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
numpy | ||
opencv-python | ||
tensorflow | ||
open3d | ||
google-cloud-storage |
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,30 @@ | ||
#!/bin/bash | ||
|
||
# Function to display usage information | ||
function usage { | ||
echo "Usage: $0 bucket_name destination_folder [-m]" | ||
echo "Options:" | ||
echo " -m Enable parallel (multi-threaded/multi-processing) operations" | ||
exit 1 | ||
} | ||
|
||
# Check if the number of arguments is valid | ||
if [ $# -lt 2 ] || [ $# -gt 3 ]; then | ||
usage | ||
fi | ||
|
||
# Parse command-line arguments | ||
bucket_name="$1" | ||
destination_folder="$2" | ||
parallel_flag="$3" | ||
|
||
# Check if parallel flag is provided and set the gsutil command accordingly | ||
if [ "$parallel_flag" == "-m" ]; then | ||
gsutil_cmd="gsutil -m cp -r gs://$bucket_name/* $destination_folder" | ||
else | ||
gsutil_cmd="gsutil cp -r gs://$bucket_name/* $destination_folder" | ||
fi | ||
|
||
# Execute the gsutil command | ||
echo "Downloading contents of bucket $bucket_name to $destination_folder..." | ||
eval $gsutil_cmd |
This file was deleted.
Oops, something went wrong.