Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion examples/seld_spatialsoundqa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ Encoder | Projector | LLM |
[Spatial-AST](https://huggingface.co/datasets/zhisheng01/SpatialAudio/blob/main/SpatialAST/finetuned.pth) | [Q-former](https://huggingface.co/datasets/zhisheng01/SpatialAudio/blob/main/BAT/model.pt)(~73.56M) | [llama-2-7b-hf](https://huggingface.co/meta-llama/Llama-2-7b) |

## Demo (Spatial Audio Inference)
Try [`inference.ipynb`](https://github.com/X-LANCE/SLAM-LLM/blob/main/examples/seld_spatialsoundqa/inference.ipynb).
### Environment setup
```
cd SLAM-LLM/examples/seld_spatialsoundqa/
pip install -r requirements.txt
cd SLAM-LLM/
pip install -e .
```

Then try [`inference.ipynb`](https://github.com/X-LANCE/SLAM-LLM/blob/main/examples/seld_spatialsoundqa/inference.ipynb).


## Data preparation
Expand Down
18 changes: 18 additions & 0 deletions examples/seld_spatialsoundqa/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
timm==0.9.10
soundfile
numpy==1.26.4
HyperPyYAML==1.2.2
conformer==0.3.2
deepspeed==0.14.2; sys_platform == 'linux'
diffusers==0.27.2
gradio==5.3.0
grpcio==1.57.0
grpcio-tools==1.57.0
inflect==7.3.1
matplotlib==3.7.5
lightning==2.2.4
wget==3.2
librosa
torchaudio==2.3.0
torchlibrosa
transformers==4.51.0
1 change: 1 addition & 0 deletions examples/seld_spatialsoundqa/seld_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class ModelConfig:
encoder_projector: str = "q-former"
encoder_dim: int = 768
qformer_layers: int = 8
query_len: int = 64

@dataclass
class PeftConfig:
Expand Down
Loading