add vrs download
Browse files- .gitignore +7 -1
- README.md +21 -2
- dataset_infos.json +14 -0
- download_aea_videos.py +100 -0
- video_ids.txt +52 -0
- video_ids_final.txt +59 -0
.gitignore
CHANGED
@@ -5,4 +5,10 @@
|
|
5 |
.env.test.local
|
6 |
.env.production.local
|
7 |
|
8 |
-
node_modules
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
.env.test.local
|
6 |
.env.production.local
|
7 |
|
8 |
+
node_modules
|
9 |
+
|
10 |
+
# Aria Everyday Activities Dataset files
|
11 |
+
Aria Everyday Activities Dataset.json
|
12 |
+
|
13 |
+
# Downloaded video files
|
14 |
+
aea/
|
README.md
CHANGED
@@ -28,13 +28,32 @@ task_categories:
|
|
28 |
|
29 |
This repository contains the SAVVY-Bench, the first benchmark for dynamic 3D spatial reasoning in audio-visual environments, introduced in [SAVVY: Spatial Awareness via Audio-Visual LLMs through Seeing and Hearing](https://arxiv.org/pdf/2506.05414)
|
30 |
|
31 |
-
|
32 |
-
## Files
|
33 |
|
34 |
```python
|
35 |
from datasets import load_dataset
|
36 |
dataset = load_dataset("ZijunCui/SAVVY-Bench")
|
37 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
<!--
|
39 |
## Dataset Description
|
40 |
|
|
|
28 |
|
29 |
This repository contains the SAVVY-Bench, the first benchmark for dynamic 3D spatial reasoning in audio-visual environments, introduced in [SAVVY: Spatial Awareness via Audio-Visual LLMs through Seeing and Hearing](https://arxiv.org/pdf/2506.05414)
|
30 |
|
31 |
+
## Video and Audio Files
|
|
|
32 |
|
33 |
```python
|
34 |
from datasets import load_dataset
|
35 |
dataset = load_dataset("ZijunCui/SAVVY-Bench")
|
36 |
```
|
37 |
+
|
38 |
+
## Download Aria Everyday Activities Videos
|
39 |
+
|
40 |
+
To use SAVVY-Bench, you need to download the corresponding video files from the Aria Everyday Activities dataset.
|
41 |
+
|
42 |
+
### Step 1: Access the Dataset
|
43 |
+
1. Visit [Aria Everyday Activities Dataset](https://www.projectaria.com/datasets/aea/)
|
44 |
+
2. Follow the instructions to access the dataset
|
45 |
+
3. Download the `Aria Everyday Activities Dataset.json` file
|
46 |
+
|
47 |
+
### Step 2: Download Required Videos
|
48 |
+
|
49 |
+
```bash
|
50 |
+
python download_aea_videos.py
|
51 |
+
```
|
52 |
+
|
53 |
+
### Step 3: Verify Downloads
|
54 |
+
After downloading, you should have 53 `.vrs` files in the `aea/vrs/` directory.
|
55 |
+
|
56 |
+
|
57 |
<!--
|
58 |
## Dataset Description
|
59 |
|
dataset_infos.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"dataset_name": "savvy-bench",
|
3 |
+
"description": "SAVVY-Bench dataset for evaluation",
|
4 |
+
"license": "cc-by-nc-sa-4.0",
|
5 |
+
"homepage": "https://github.com/ZijunCui/SAVVY-Bench",
|
6 |
+
"citation": "",
|
7 |
+
"configs": {
|
8 |
+
"default": {
|
9 |
+
"data_files": {
|
10 |
+
"train": "savvy_bench.jsonl"
|
11 |
+
}
|
12 |
+
}
|
13 |
+
}
|
14 |
+
}
|
download_aea_videos.py
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python3
|
2 |
+
"""
|
3 |
+
Download Aria Everyday Activities videos for SAVVY-Bench
|
4 |
+
|
5 |
+
This script downloads the main_vrs files for the video IDs specified in video_ids.txt
|
6 |
+
from the Aria Everyday Activities dataset.
|
7 |
+
|
8 |
+
Usage:
|
9 |
+
python download_aea_videos.py
|
10 |
+
"""
|
11 |
+
|
12 |
+
import json
|
13 |
+
import os
|
14 |
+
import requests
|
15 |
+
from pathlib import Path
|
16 |
+
|
17 |
+
def download_aea_videos():
|
18 |
+
"""Download Aria Everyday Activities videos for SAVVY-Bench"""
|
19 |
+
|
20 |
+
# Check if required files exist
|
21 |
+
if not os.path.exists('Aria Everyday Activities Dataset.json'):
|
22 |
+
print("Error: 'Aria Everyday Activities Dataset.json' not found.")
|
23 |
+
print("Please download it from https://www.projectaria.com/datasets/aea/")
|
24 |
+
return
|
25 |
+
|
26 |
+
if not os.path.exists('video_ids.txt'):
|
27 |
+
print("Error: 'video_ids.txt' not found.")
|
28 |
+
return
|
29 |
+
|
30 |
+
# Load the dataset index
|
31 |
+
print("Loading dataset index...")
|
32 |
+
with open('Aria Everyday Activities Dataset.json', 'r') as f:
|
33 |
+
dataset = json.load(f)
|
34 |
+
|
35 |
+
# Load video IDs
|
36 |
+
print("Loading video IDs...")
|
37 |
+
with open('video_ids.txt', 'r') as f:
|
38 |
+
video_ids = [line.strip() for line in f.readlines()]
|
39 |
+
|
40 |
+
print(f"Found {len(video_ids)} video IDs to download")
|
41 |
+
|
42 |
+
# Create output directory
|
43 |
+
os.makedirs('aea/vrs', exist_ok=True)
|
44 |
+
print("Created directory: aea/vrs")
|
45 |
+
|
46 |
+
# Download videos
|
47 |
+
downloaded_count = 0
|
48 |
+
skipped_count = 0
|
49 |
+
error_count = 0
|
50 |
+
|
51 |
+
for i, video_id in enumerate(video_ids, 1):
|
52 |
+
print(f"\n[{i}/{len(video_ids)}] Processing {video_id}...")
|
53 |
+
|
54 |
+
if video_id in dataset['sequences']:
|
55 |
+
vrs_info = dataset['sequences'][video_id]['main_vrs']
|
56 |
+
filename = vrs_info['filename']
|
57 |
+
download_url = vrs_info['download_url']
|
58 |
+
|
59 |
+
output_path = f'aea/vrs/{filename}'
|
60 |
+
|
61 |
+
if os.path.exists(output_path):
|
62 |
+
print(f" ✓ {filename} already exists (skipped)")
|
63 |
+
skipped_count += 1
|
64 |
+
else:
|
65 |
+
try:
|
66 |
+
print(f" ↓ Downloading {filename}...")
|
67 |
+
response = requests.get(download_url, stream=True)
|
68 |
+
response.raise_for_status()
|
69 |
+
|
70 |
+
with open(output_path, 'wb') as f:
|
71 |
+
for chunk in response.iter_content(chunk_size=8192):
|
72 |
+
f.write(chunk)
|
73 |
+
|
74 |
+
print(f" ✓ Downloaded {filename}")
|
75 |
+
downloaded_count += 1
|
76 |
+
|
77 |
+
except Exception as e:
|
78 |
+
print(f" ✗ Error downloading {filename}: {e}")
|
79 |
+
error_count += 1
|
80 |
+
else:
|
81 |
+
print(f" ✗ Video ID {video_id} not found in dataset")
|
82 |
+
error_count += 1
|
83 |
+
|
84 |
+
# Summary
|
85 |
+
print(f"\n{'='*50}")
|
86 |
+
print("DOWNLOAD SUMMARY")
|
87 |
+
print(f"{'='*50}")
|
88 |
+
print(f"Total video IDs: {len(video_ids)}")
|
89 |
+
print(f"Successfully downloaded: {downloaded_count}")
|
90 |
+
print(f"Skipped (already exists): {skipped_count}")
|
91 |
+
print(f"Errors: {error_count}")
|
92 |
+
print(f"Files saved to: aea/vrs/")
|
93 |
+
|
94 |
+
if downloaded_count + skipped_count == len(video_ids):
|
95 |
+
print("\n✓ All videos are ready for use!")
|
96 |
+
else:
|
97 |
+
print(f"\n⚠ {error_count} videos failed to download. Please check the errors above.")
|
98 |
+
|
99 |
+
if __name__ == "__main__":
|
100 |
+
download_aea_videos()
|
video_ids.txt
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
loc1_script2_seq1_rec1
|
2 |
+
loc1_script2_seq1_rec2
|
3 |
+
loc1_script2_seq3_rec1
|
4 |
+
loc1_script2_seq3_rec2
|
5 |
+
loc1_script2_seq4_rec1
|
6 |
+
loc1_script2_seq4_rec2
|
7 |
+
loc1_script2_seq6_rec1
|
8 |
+
loc1_script2_seq6_rec2
|
9 |
+
loc1_script2_seq7_rec1
|
10 |
+
loc1_script2_seq7_rec2
|
11 |
+
loc1_script2_seq8_rec1
|
12 |
+
loc1_script2_seq8_rec2
|
13 |
+
loc2_script2_seq1_rec1
|
14 |
+
loc2_script2_seq1_rec2
|
15 |
+
loc2_script2_seq2_rec1
|
16 |
+
loc2_script2_seq2_rec2
|
17 |
+
loc2_script2_seq3_rec1
|
18 |
+
loc2_script2_seq3_rec2
|
19 |
+
loc2_script2_seq4_rec1
|
20 |
+
loc2_script2_seq4_rec2
|
21 |
+
loc2_script2_seq5_rec1
|
22 |
+
loc2_script2_seq5_rec2
|
23 |
+
loc2_script2_seq6_rec1
|
24 |
+
loc2_script2_seq6_rec2
|
25 |
+
loc2_script2_seq8_rec1
|
26 |
+
loc2_script2_seq8_rec2
|
27 |
+
loc2_script3_seq1_rec2
|
28 |
+
loc2_script3_seq2_rec1
|
29 |
+
loc2_script3_seq2_rec2
|
30 |
+
loc2_script3_seq3_rec1
|
31 |
+
loc2_script3_seq4_rec1
|
32 |
+
loc2_script3_seq4_rec2
|
33 |
+
loc2_script3_seq5_rec1
|
34 |
+
loc2_script3_seq5_rec2
|
35 |
+
loc3_script2_seq1_rec1
|
36 |
+
loc3_script2_seq1_rec2
|
37 |
+
loc3_script2_seq3_rec1
|
38 |
+
loc3_script2_seq3_rec2
|
39 |
+
loc3_script2_seq4_rec1
|
40 |
+
loc3_script2_seq4_rec2
|
41 |
+
loc3_script2_seq5_rec1
|
42 |
+
loc3_script2_seq5_rec2
|
43 |
+
loc3_script2_seq7_rec1
|
44 |
+
loc3_script2_seq7_rec2
|
45 |
+
loc3_script3_seq1_rec1
|
46 |
+
loc3_script3_seq1_rec2
|
47 |
+
loc3_script3_seq2_rec1
|
48 |
+
loc3_script3_seq2_rec2
|
49 |
+
loc3_script3_seq4_rec1
|
50 |
+
loc3_script3_seq4_rec2
|
51 |
+
loc3_script3_seq5_rec1
|
52 |
+
loc3_script3_seq5_rec2
|
video_ids_final.txt
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
loc1_script2_seq1_rec1
|
2 |
+
loc1_script2_seq1_rec2
|
3 |
+
loc1_script2_seq3_rec1
|
4 |
+
loc1_script2_seq3_rec2
|
5 |
+
loc1_script2_seq4_rec1
|
6 |
+
loc1_script2_seq4_rec2
|
7 |
+
loc1_script2_seq6_rec1
|
8 |
+
loc1_script2_seq6_rec2
|
9 |
+
loc1_script2_seq7_rec1
|
10 |
+
loc1_script2_seq7_rec2
|
11 |
+
loc1_script2_seq8_rec1
|
12 |
+
loc1_script2_seq8_rec2
|
13 |
+
loc2_script2_seq1_rec1
|
14 |
+
loc2_script2_seq1_rec2
|
15 |
+
loc2_script2_seq2_rec1
|
16 |
+
loc2_script2_seq2_rec2
|
17 |
+
loc2_script2_seq3_rec1
|
18 |
+
loc2_script2_seq3_rec2
|
19 |
+
loc2_script2_seq4_rec1
|
20 |
+
loc2_script2_seq4_rec2
|
21 |
+
loc2_script2_seq5_rec1
|
22 |
+
loc2_script2_seq5_rec2
|
23 |
+
loc2_script2_seq6_rec1
|
24 |
+
loc2_script2_seq6_rec2
|
25 |
+
loc2_script2_seq8_rec1
|
26 |
+
loc2_script2_seq8_rec2
|
27 |
+
loc2_script3_seq1_rec2
|
28 |
+
loc2_script3_seq2_rec1
|
29 |
+
loc2_script3_seq2_rec2
|
30 |
+
loc2_script3_seq31_rec1
|
31 |
+
loc2_script3_seq31_rec2
|
32 |
+
loc2_script3_seq32_rec1
|
33 |
+
loc2_script3_seq32_rec2
|
34 |
+
loc2_script3_seq33_rec1
|
35 |
+
loc2_script3_seq33_rec2
|
36 |
+
loc2_script3_seq34_rec1
|
37 |
+
loc2_script3_seq34_rec2
|
38 |
+
loc2_script3_seq4_rec1
|
39 |
+
loc2_script3_seq4_rec2
|
40 |
+
loc2_script3_seq5_rec1
|
41 |
+
loc2_script3_seq5_rec2
|
42 |
+
loc3_script2_seq1_rec1
|
43 |
+
loc3_script2_seq1_rec2
|
44 |
+
loc3_script2_seq3_rec1
|
45 |
+
loc3_script2_seq3_rec2
|
46 |
+
loc3_script2_seq4_rec1
|
47 |
+
loc3_script2_seq4_rec2
|
48 |
+
loc3_script2_seq5_rec1
|
49 |
+
loc3_script2_seq5_rec2
|
50 |
+
loc3_script2_seq7_rec1
|
51 |
+
loc3_script2_seq7_rec2
|
52 |
+
loc3_script3_seq1_rec1
|
53 |
+
loc3_script3_seq1_rec2
|
54 |
+
loc3_script3_seq2_rec1
|
55 |
+
loc3_script3_seq2_rec2
|
56 |
+
loc3_script3_seq4_rec1
|
57 |
+
loc3_script3_seq4_rec2
|
58 |
+
loc3_script3_seq5_rec1
|
59 |
+
loc3_script3_seq5_rec2
|