Zeynep Akata, Leonard Salewski, A Koepke, Stefan Fauth
We lifted 17 functions out of this paper's own repositories and ran 13 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| explainableml/zeraucap | canonical | 13 of 17 |
| Function | Status | Where it lives |
|---|---|---|
| batch | Ran | explainableml/zeraucap/audio_captioning/sound_obj_generator.py pointer only (licence: NONE) · get_code("393efe21b22bf554") |
| build_mask_matrix | Ran | explainableml/zeraucap/audio_captioning/language_model/loss_func.py pointer only (licence: NONE) · get_code("5b343139acd21835") |
| clean_chat_gpt_response | Ran | explainableml/zeraucap/audio_captioning/sound_obj_generator.py pointer only (licence: NONE) · get_code("7eedca5ad3fd9e77") |
| compute_valid_token_num | Ran | explainableml/zeraucap/audio_captioning/language_model/loss_func.py pointer only (licence: NONE) · get_code("961114eca9f332c1") |
| contrastive_loss | Ran | explainableml/zeraucap/audio_captioning/language_model/loss_func.py pointer only (licence: NONE) · get_code("dbe18b03333fa2bc") |
| get_chat_gpt_answers | Ran | explainableml/zeraucap/audio_captioning/sound_obj_generator.py pointer only (licence: NONE) · get_code("46798ca8cd2b7123") |
| get_prompt_id | Ran | explainableml/zeraucap/audio_captioning/inference_magic.py pointer only (licence: NONE) · get_code("583f7e4fab57b315") |
| load_AudioClip | Ran | explainableml/zeraucap/audio_captioning/clip/load_clip_model.py pointer only (licence: NONE) · get_code("01cd1d45e20261ed") |
| load_CLAP | Ran | explainableml/zeraucap/audio_captioning/clip/load_clip_model.py pointer only (licence: NONE) · get_code("8c75381e91da6e52") |
| parse_prompt | Ran | explainableml/zeraucap/audio_captioning/language_model/utlis.py pointer only (licence: NONE) · get_code("56d5003b7ee3900b") |
| sorting_function_keyword_lists | Ran | explainableml/zeraucap/audio_captioning/evaluation/join_test_results.py pointer only (licence: NONE) · get_code("1d8ca634885a9ffb") |
| top_k_top_p_filtering | Ran | explainableml/zeraucap/audio_captioning/language_model/utlis.py pointer only (licence: NONE) · get_code("96370a572229a5a9") |
| typical_filtering | Ran | explainableml/zeraucap/audio_captioning/language_model/utlis.py pointer only (licence: NONE) · get_code("315ad037a2faafbf") |
| load_WavCaps | Not yet run | explainableml/zeraucap/audio_captioning/clip/load_clip_model.py pointer only (licence: NONE) · get_code("6e5afc29fdf09196") |
| preprocess_for_AudioCLIP | Not yet run | explainableml/zeraucap/audio_captioning/clip/audio_preprocessors.py pointer only (licence: NONE) · get_code("5dc63fbe479018d6") |
| preprocess_for_CLAP | Not yet run | explainableml/zeraucap/audio_captioning/clip/audio_preprocessors.py pointer only (licence: NONE) · get_code("f57277edc12fc6dc") |
| preprocess_for_WavCaps | Not yet run | explainableml/zeraucap/audio_captioning/clip/audio_preprocessors.py pointer only (licence: NONE) · get_code("089cf8fe536c8934") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Zero-shot audio captioning aims at automatically generating descriptive textual captions for audio content without prior training for this task. Different from speech recognition which translates audio content that contains spoken language into text, audio captioning is commonly concerned with ambient sounds, or sounds produced by a human performing an action. Inspired by zero-shot image captioning methods, we propose ZerAuCap, a novel framework for summarising such general audio signals in a text caption without requiring task-specific training. In particular, our framework exploits a pre-trained large language model (LLM) for generating the text which is guided by a pre-trained audio-language model to produce captions that describe the audio content. Additionally, we use audio context keywords that prompt the language model to generate text that is broadly relevant to sounds. Our proposed framework achieves state-of-the-art results in zero-shot audio captioning on the AudioCaps and Clotho datasets. Our code is available at https://github. com/ExplainableML/ZerAuCap. 37th Conference on Neural Information Processing Systems (NeurIPS 2023) -ML for Audio Workshop.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2311.08396")
get_code_for_paper("2311.08396")
have("2311.08396")
Connect an agent — have() is free.