├── .gitignore ├── README.md ├── config └── audio │ ├── config.yaml │ ├── cpc │ └── defaults.yaml │ ├── general │ └── defaults.yaml │ └── reload │ └── defaults.yaml ├── data ├── librispeech.py ├── loaders.py └── phone_dict.py ├── download_datasets.sh ├── environment.yml ├── experiment.py ├── main.py ├── model.py ├── modules ├── __init__.py └── audio │ ├── autoregressor.py │ ├── cpc.py │ ├── encoder.py │ ├── infonce.py │ ├── model.py │ └── speaker_loss.py ├── setup.sh ├── setup_apex.sh ├── testing ├── logistic_regression_phones.py └── logistic_regression_speaker.py ├── train_audio.sh ├── train_classifier.sh ├── utils └── yaml_config_hook.py └── validation ├── __init__.py └── validate_speakers.py /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ 2 | 3 | datasets 4 | logs -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/README.md -------------------------------------------------------------------------------- /config/audio/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/config/audio/config.yaml -------------------------------------------------------------------------------- /config/audio/cpc/defaults.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/config/audio/cpc/defaults.yaml -------------------------------------------------------------------------------- /config/audio/general/defaults.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/config/audio/general/defaults.yaml -------------------------------------------------------------------------------- /config/audio/reload/defaults.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/config/audio/reload/defaults.yaml -------------------------------------------------------------------------------- /data/librispeech.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/data/librispeech.py -------------------------------------------------------------------------------- /data/loaders.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/data/loaders.py -------------------------------------------------------------------------------- /data/phone_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/data/phone_dict.py -------------------------------------------------------------------------------- /download_datasets.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/download_datasets.sh -------------------------------------------------------------------------------- /environment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/environment.yml -------------------------------------------------------------------------------- /experiment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/experiment.py -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/main.py -------------------------------------------------------------------------------- /model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/model.py -------------------------------------------------------------------------------- /modules/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/modules/__init__.py -------------------------------------------------------------------------------- /modules/audio/autoregressor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/modules/audio/autoregressor.py -------------------------------------------------------------------------------- /modules/audio/cpc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/modules/audio/cpc.py -------------------------------------------------------------------------------- /modules/audio/encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/modules/audio/encoder.py -------------------------------------------------------------------------------- /modules/audio/infonce.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/modules/audio/infonce.py -------------------------------------------------------------------------------- /modules/audio/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/modules/audio/model.py -------------------------------------------------------------------------------- /modules/audio/speaker_loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/modules/audio/speaker_loss.py -------------------------------------------------------------------------------- /setup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/setup.sh -------------------------------------------------------------------------------- /setup_apex.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/setup_apex.sh -------------------------------------------------------------------------------- /testing/logistic_regression_phones.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/testing/logistic_regression_phones.py -------------------------------------------------------------------------------- /testing/logistic_regression_speaker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/testing/logistic_regression_speaker.py -------------------------------------------------------------------------------- /train_audio.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/train_audio.sh -------------------------------------------------------------------------------- /train_classifier.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/train_classifier.sh -------------------------------------------------------------------------------- /utils/yaml_config_hook.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/utils/yaml_config_hook.py -------------------------------------------------------------------------------- /validation/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/validation/__init__.py -------------------------------------------------------------------------------- /validation/validate_speakers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spijkervet/contrastive-predictive-coding/HEAD/validation/validate_speakers.py --------------------------------------------------------------------------------