Brainkite commited on
Commit
87e2c74
·
verified ·
1 Parent(s): 5009601

Delete extract_waymo_data.sh

Browse files
Files changed (1) hide show
  1. extract_waymo_data.sh +0 -64
extract_waymo_data.sh DELETED
@@ -1,64 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Script to extract Waymo processed data to the target location
4
-
5
- # Define target directory
6
- TARGET_DIR="/workspace/Pointcept/data/waymo"
7
-
8
- # Create target directories if they don't exist
9
- mkdir -p "$TARGET_DIR/training"
10
- mkdir -p "$TARGET_DIR/validation"
11
-
12
- echo "Starting extraction to $TARGET_DIR..."
13
-
14
- # Extract training data
15
- echo "Extracting training data..."
16
- cd training
17
- cat processed_waymo_training.tar.zst.part* | \
18
- tar --use-compress-program=unzstd -xf - \
19
- --strip-components=3 \
20
- -C "$TARGET_DIR/training" \
21
- --wildcards "content/Pointcept/processed_waymo/training/*"
22
-
23
- # Check if training extraction was successful
24
- if [ $? -eq 0 ]; then
25
- echo "Training data extraction completed successfully."
26
- else
27
- echo "Error: Training data extraction failed."
28
- exit 1
29
- fi
30
-
31
- # Extract validation data
32
- echo "Extracting validation data..."
33
- cd ../validation
34
- cat processed_waymo_validation.tar.zst | \
35
- tar --use-compress-program=unzstd -xf - \
36
- --strip-components=3 \
37
- -C "$TARGET_DIR/validation" \
38
- --wildcards "content/Pointcept/processed_waymo/validation/*"
39
-
40
- # Check if validation extraction was successful
41
- if [ $? -eq 0 ]; then
42
- echo "Validation data extraction completed successfully."
43
- else
44
- echo "Error: Validation data extraction failed."
45
- exit 1
46
- fi
47
-
48
- # Return to the original directory
49
- cd ..
50
-
51
- # Print some stats about the extracted data
52
- echo "Statistics of extracted data:"
53
- echo "Training data:"
54
- find "$TARGET_DIR/training" -type f | wc -l | xargs echo " Total files:"
55
- du -sh "$TARGET_DIR/training" | awk '{print " Total size: " $1}'
56
-
57
- echo "Validation data:"
58
- find "$TARGET_DIR/validation" -type f | wc -l | xargs echo " Total files:"
59
- du -sh "$TARGET_DIR/validation" | awk '{print " Total size: " $1}'
60
-
61
- echo "Extraction completed successfully!"
62
- echo "Data extracted to:"
63
- echo " - $TARGET_DIR/training"
64
- echo " - $TARGET_DIR/validation"