| import scipy.io | |
| import os | |
| def check_metadata(): | |
| path = "data/raw/metadata.mat" | |
| if not os.path.exists(path): | |
| print(f"File not found: {path}") | |
| return | |
| try: | |
| data = scipy.io.loadmat(path) | |
| print("Keys in metadata.mat:", data.keys()) | |
| # Check some fields | |
| for key in ['gaze_dir', 'person_identity', 'split', 'recordings']: | |
| if key in data: | |
| print(f"Field '{key}' shape: {data[key].shape}") | |
| else: | |
| print(f"Field '{key}' NOT found.") | |
| # List first 5 recordings if available | |
| if 'recordings' in data: | |
| recs = data['recordings'] | |
| print("First 5 recordings:", recs[:5]) | |
| except Exception as e: | |
| print(f"Error loading metadata: {e}") | |
| if __name__ == "__main__": | |
| check_metadata() | |