# LookOnceToHear **Repository Path**: liyihao17/LookOnceToHear ## Basic Information - **Project Name**: LookOnceToHear - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-30 - **Last Updated**: 2026-04-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Look Once to Hear [![Ab](https://img.shields.io/badge/arxiv-abs-green)](https://arxiv.org/abs/2405.06289) [![Gradio demo](https://img.shields.io/badge/arxiv-pdf-green)](https://arxiv.org/pdf/2405.06289) This repository provides code for the paper, __Look Once to Hear: Target Speech Hearing with Noisy Examples__. __Look Once to Hear__ is an intelligent hearable system where users choose to hear a target speaker by just looking at them for a few seconds. This paper won best paper honorable mention 🏆 at CHI 2024. https://github.com/vb000/LookOnceToHear/assets/16723254/49483e4d-9ebe-4c56-a84e-43c30d1cc3b9 ## Setup conda create -n ts-hear python=3.9 conda activate ts-hear pip install -r requirements.txt ## Training Training data includes clean speech, background sounds, head-related transfer functions (HRTFs) and binaural room impulse responses (BRIRs). We use [Scaper](https://github.com/justinsalamon/scaper) toolkit to synthetically generate audio mixtures. Each audio mixture is generated on-the-fly, during training or evaluation, using Scaper's `generate_from_jams` function on a `.jams` specification file. We provide self-contained datasets [here](https://drive.google.com/drive/u/1/folders/1-Jx23GXdjPe33EF5jGZpj6zn-kIm5jHR), with the source `.jams` specifications we used for training. To perform a training run, it is sufficient to download the `.zip` files provided there, unzip the contents to `data/` directory and run this command: python -m src.trainer --config --run_dir [--frac <0.05 (% train/val batches)>] To resume a partial run: python -m src.trainer --config --run_dir ## Evaluation Evaluation is done on speech mixture in similar format as training samples. Checkpoints of the embedding model and the target speech hearing (TSH) model are available [here](https://drive.google.com/file/d/1CP0zbZExcqvNLdP9epyhY4fEVp_oQr59/view?usp=sharing). python -m src.ts_hear_test