CLAP
Contrastive Language-Audio Pretraining
File Explorer
- audioclip-arch.png
- clap-zeroshot.PNG
- logo.PNG
- audioset_class_labels_indices.json
- audioset_fsd50k_class_labels_indices.json
- ESC50_class_labels_indices.json
- ESC50_class_labels_indices_space.json
- FSD50k_class_labels_indices.json
- GTZAN_class_labels.json
- UrbanSound8K_class_labels_indices.json
- VGGSound_class_labels_indices.json
- esc50_api.py
- eval_retrieval_freesound.sh
- finetune-esc50.sh
- finetune-fsd50k.sh
- htsat-roberta-large-dataset-fusion.sh
- train-htsat-roberta.sh
- train-only-clotho.sh
- train-pann-roberta.sh
- zeroshot_esc50.sh
- HTSAT-base.json
- HTSAT-large.json
- HTSAT-tiny-win-1536.json
- HTSAT-tiny.json
- PANN-10.json
- PANN-14-fmax-18k.json
- PANN-14-fmax-8k-20s.json
- PANN-14-tiny-transformer.json
- PANN-14-win-1536.json
- PANN-14.json
- PANN-6.json
- RN101-quickgelu.json
- RN101.json
- RN50-quickgelu.json
- RN50.json
- RN50x16.json
- RN50x4.json
- ViT-B-16.json
- ViT-B-32-quickgelu.json
- ViT-B-32.json
- ViT-L-14.json
- __init__.py
- bert.py
- bpe_simple_vocab_16e6.txt.gz
- factory.py
- feature_fusion.py
- htsat.py
- linear_probe.py
- loss.py
- model.py
- openai.py
- pann_model.py
- pretrained.py
- timm_model.py
- tokenizer.py
- transform.py
- utils.py
- version.py
- __init__.py
- eval_dcase.py
- eval_linear_probe.py
- eval_retrieval.py
- eval_retrieval_main.py
- eval_zeroshot_classification.py
- __init__.py
- audioset_textmap.npy
- data.py
- distributed.py
- imagenet_zeroshot_data.py
- infer_demo.py
- logger.py
- lp_main.py
- lp_train.py
- main.py
- params.py
- scheduler.py
- train.py
- zero_shot.py
- __init__.py
- hook.py
- unit_test.py
- __init__.py
- check_ckpt.py
- check_tars.py
- data_loader_test.py
- .gitignore
- LICENSE
- MANIFEST.in
- pyproject.toml
- README.md
- requirements.txt
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
conda activate
View Details ▼
conda activate
Activate a conda environment.
See also: `conda deactivate`.
conda activate myenv
Activate an existing environment named `myenv`:
conda activate {{path/to/myenv}}
Activate an existing environment located at custom path:
conda activate --stack myenv
Stack `myenv` environment on top of a previous environment making libraries/commands/variables from both accessible:
conda create
View Details ▼
conda create
Create new conda environments.
conda create {{[-y|--yes]}} {{[-n|--name]}} py39 python=3.9 "numpy>=1.11" scipy
Create a new environment named `py39`, install Python 3.9, NumPy v1.11 or above in it, and the latest stable version of SciPy. Say yes to all confirmations:
conda create {{[-n|--name]}} myenv --file {{file1.yml}} --file {{file2.yml}}
Create a new environment named `myenv` and install packages listed in files:
conda create {{[-p|--prefix]}} {{path/to/myenv}}
Create a new environment at a custom path (i.e. prefix):
git clone
View Details ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
pip install
View Details ▼
pip install
Install Python packages.
pip install {{package1 package2 ...}}
Install one or more packages:
pip install {{package1 package2 ...}} {{[-U|--upgrade]}}
Upgrade all specified packages to the latest version, installing any that are not already present:
pip install {{package}}=={{version}}
Install a specific version of a package:
srun
View Details ▼
srun
Run a command under the Slurm workload manager.
srun hostname
Run a simple command interactively:
srun --pty /bin/bash
Submit a basic interactive job:
srun {{[-n|--ntasks]}} 4 {{path/to/program}}
Run a job with 4 tasks (CPUs):
