Skip to content

Commit b97ae5c

Browse files
committed
adding unzip script and instructions
1 parent 7aa05f0 commit b97ae5c

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.DS_Store

8 KB
Binary file not shown.

prepare_data/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,9 @@ MultiScan/
190190

191191
#### Structured3D
192192

193-
1. Download Structured3D data(bbox data + perspective_full data for all non corrupt zips), unzip all and run the following scripts after making path related changes in each:
193+
1. Download Structured3D data(bbox data + perspective_full data for all non corrupt zips), run the following scripts after making path related changes in each:
194194
```bash
195+
bash prepare_data/structured3d/unzip_data.sh
195196
python prepare_data/structured3d/move_data.py
196197
python prepare_data/structured3d/move_annotation.py
197198
```
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# Directory containing the zip files; update this as needed.
4+
S3D_DOWNLOAD_DIR="/Users/gauravpradeep/CrossOver_ScaleUp"
5+
6+
# Find and sort all Structured3D_*.zip files in the directory
7+
cd "$S3D_DOWNLOAD_DIR" || exit 1
8+
9+
for zip_file in Structured3D_*.zip; do
10+
# Skip if no files match
11+
[ -e "$zip_file" ] || continue
12+
extract_dir="${zip_file%.zip}"
13+
echo "Extracting $zip_file..."
14+
mkdir -p "$extract_dir"
15+
unzip -q "$zip_file" -d "$extract_dir"
16+
done
17+
18+
echo "Done extracting all zips."

0 commit comments

Comments
 (0)