Dataset Viewer
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
feature_extractor: struct<chunk_length: int64, dither: double, feature_extractor_type: string, feature_size: int64, hop (... 362 chars omitted)
child 0, chunk_length: int64
child 1, dither: double
child 2, feature_extractor_type: string
child 3, feature_size: int64
child 4, hop_length: int64
child 5, image_mean: list<item: double>
child 0, item: double
child 6, image_processor_type: string
child 7, image_std: list<item: double>
child 0, item: double
child 8, max_pixels: int64
child 9, merge_size: int64
child 10, min_pixels: int64
child 11, n_fft: int64
child 12, n_samples: int64
child 13, nb_max_frames: int64
child 14, padding_side: string
child 15, padding_value: double
child 16, patch_size: int64
child 17, return_attention_mask: bool
child 18, sampling_rate: int64
child 19, temporal_patch_size: int64
image_processor: null
processor_class: string
video_processor: null
valid_exact_match: double
step_valid_subset_size: double
valid_subset_size: double
valid_supervised_tokens: double
epoch: int64
train_loss: double
epoch_seconds: double
optimizer_steps: double
micro_steps: double
valid_loss: double
train_supervised_tokens: double
valid_generation_size: double
valid_generate_examples: double
global_optimizer_step: double
to
{'epoch': Value('int64'), 'train_loss': Value('float64'), 'train_supervised_tokens': Value('float64'), 'optimizer_steps': Value('float64'), 'epoch_seconds': Value('float64'), 'micro_steps': Value('float64'), 'valid_loss': Value('float64'), 'valid_supervised_tokens': Value('float64'), 'valid_generate_examples': Value('float64'), 'valid_exact_match': Value('float64'), 'step_valid_subset_size': Value('float64'), 'valid_subset_size': Value('float64'), 'valid_generation_size': Value('float64'), 'global_optimizer_step': Value('float64')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 478, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2818, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2355, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2380, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
feature_extractor: struct<chunk_length: int64, dither: double, feature_extractor_type: string, feature_size: int64, hop (... 362 chars omitted)
child 0, chunk_length: int64
child 1, dither: double
child 2, feature_extractor_type: string
child 3, feature_size: int64
child 4, hop_length: int64
child 5, image_mean: list<item: double>
child 0, item: double
child 6, image_processor_type: string
child 7, image_std: list<item: double>
child 0, item: double
child 8, max_pixels: int64
child 9, merge_size: int64
child 10, min_pixels: int64
child 11, n_fft: int64
child 12, n_samples: int64
child 13, nb_max_frames: int64
child 14, padding_side: string
child 15, padding_value: double
child 16, patch_size: int64
child 17, return_attention_mask: bool
child 18, sampling_rate: int64
child 19, temporal_patch_size: int64
image_processor: null
processor_class: string
video_processor: null
valid_exact_match: double
step_valid_subset_size: double
valid_subset_size: double
valid_supervised_tokens: double
epoch: int64
train_loss: double
epoch_seconds: double
optimizer_steps: double
micro_steps: double
valid_loss: double
train_supervised_tokens: double
valid_generation_size: double
valid_generate_examples: double
global_optimizer_step: double
to
{'epoch': Value('int64'), 'train_loss': Value('float64'), 'train_supervised_tokens': Value('float64'), 'optimizer_steps': Value('float64'), 'epoch_seconds': Value('float64'), 'micro_steps': Value('float64'), 'valid_loss': Value('float64'), 'valid_supervised_tokens': Value('float64'), 'valid_generate_examples': Value('float64'), 'valid_exact_match': Value('float64'), 'step_valid_subset_size': Value('float64'), 'valid_subset_size': Value('float64'), 'valid_generation_size': Value('float64'), 'global_optimizer_step': Value('float64')}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Spatial-Qwen
A spatial audio understanding framework that integrates spatial audio encoders with Qwen2.5-Omni LLM for spatial QA tasks.
Overview
This repository integrates:
- SELD233 Encoder: SELDNet-based spatial audio encoder (DCASE 2024 baseline, task 235/233)
- Spatial-BEATs Encoder: BEATs-based spatial audio encoder with local spatial encoding
- Qwen2.5-Omni: Multimodal LLM backbone
- Spatial Token Pipeline: FOA audio → spatial tokens → LLM injection via
<|spatial|>placeholder
Architecture
FOA Audio [B, T, 4]
↓
[Spatial Encoder Choice]
├── SELD233: FeatureBridge → Backbone → SpatialAdapter → 2.5Hz tokens
└── BEATs: SpatialBEATs (fused_spatial_embeddings) → Bridge → Projector
↓
Spatial Tokens [B, T_spat, D] (2.5 Hz, 50 tokens per 20s)
↓
Projector → Qwen2.5-Omni LLM (injected at <|spatial|> positions)
↓
QA Answer
Repository Structure
Spatial-Qwen/
├── spatial_qwen/
│ ├── model/ # Qwen2.5-Omni spatial thinker, processor, configuration
│ ├── modules/ # Spatial adapter/bridge modules (seldnet233, SPUR)
│ ├── encoders/
│ │ ├── seldnet/ # DCASE SELDNet encoder (parameters, model, data)
│ │ └── beats/ # Spatial-BEATs encoder
│ ├── data/ # QA pair generation utilities
│ ├── utils/ # SELD metrics, spatial utility functions
│ └── ufb_banding/ # UFB filterbank framework
├── scripts/
│ ├── train_spatial_qa.py # Main QA training script
│ ├── bench_spatial_qa.py # Inference / benchmarking
│ ├── precompute_feature_cache.py # Pre-compute SELD features
│ ├── precompute_hidden_cache.py # Pre-compute SELD hidden states
│ └── validate_spatial_pipeline.py
├── configs/
│ └── seld233_adapter_lora.yaml # Training config
├── shell/
│ └── launch_train_seld233.sh # Launch script
└── docs/
├── spatial_beats_design.md
├── baseline_experiments.md
├── seld233_implementation.md
└── spatial_encoder_plan.md
Setup
pip install -r requirements.txt
Key Paths (configure via CLI args or config)
- Qwen2.5-Omni checkpoint:
/path/to/Qwen2.5-Omni-7B - SELD233 checkpoint:
spatial_qwen/encoders/seldnet/or external DCASE checkpoint - SELD feature stats: pre-computed normalization stats directory
- QA dataset:
prepared_datasets/starss23_foa_plus_29cls_20s/qa_pairs_v6c/
Training
# Stage 1: Train spatial adapter + projector only (frozen encoder)
torchrun --nproc_per_node=4 scripts/train_spatial_qa.py \
--train-mode adapter_lora \
--model-id /path/to/Qwen2.5-Omni-7B \
--seld233-checkpoint /path/to/seld233.h5 \
--qa-version v6c
# Stage 2: Full spatial + LoRA training
torchrun --nproc_per_node=4 scripts/train_spatial_qa.py \
--train-mode spatial_lora \
--resume-from /path/to/stage1_checkpoint
Spatial Token Baselines
See docs/baseline_experiments.md for IV-token and CNN-IV baseline designs.
BEATs Integration
See docs/spatial_beats_design.md for Spatial-BEATs → LLM bridge design.
Citation
Based on DCASE 2024 SELD baseline and Qwen2.5-Omni.
- Downloads last month
- 1,310