Fork of WhisperSeg for use with DAS.
conda create -n das-wseg python=3.13 uv -y
conda activate das-wseg
uv pip install git+https://github.com/janclemenslab/das-whisper --upgradeTrain/evaluate/predict using the CLI interface:
das-whisper train -h
das-whisper predict -h
das-whisper evaluate -hTo convert your own annotations for use with whisperseg, see the original docs.
Complete usage example:
das-whisper train nccratliri/whisperseg-base-animal-vad models/bf nccratliri/bengalese-finch-subset-with-csv-label/train --val-ratio 0.2 --validate-every 100 --save-every 100This will download the dataset nccratliri/bengalese-finch-subset-with-csv-label from huggingface, train a whisperseg model using the training set and using the pre-trained model nccratliri/whisperseg-base-animal-vad as a starting point. The best trained model will be saved to models/bf/final_checkpoint.
das-whisper evaluate nccratliri/bengalese-finch-subset-with-csv-label/test models/bf/final_checkpointThis will evaluate the best model on the test data in the dataset folder.
das-whisper predict nccratliri/bengalese-finch-subset-with-csv-label/test models/bf/final_checkpoint nccratliri/bengalese-finch-subset-with-csv-label/test_predictions.csvThis will use to trained model to create annotations files for the test data in results.