Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding checkpoint and config version #565

Merged
merged 7 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
849 changes: 849 additions & 0 deletions everyvoice/.schema/everyvoice-aligner-0.2.json

Large diffs are not rendered by default.

233 changes: 233 additions & 0 deletions everyvoice/.schema/everyvoice-shared-data-0.2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
{
"$defs": {
"AudioConfig": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"min_audio_length": {
"default": 0.4,
"description": "The minimum length of an audio sample in seconds. Audio shorter than this will be ignored during preprocessing.",
"title": "Min Audio Length",
"type": "number"
},
"max_audio_length": {
"default": 11.0,
"description": "The maximum length of an audio sample in seconds. Audio longer than this will be ignored during preprocessing. Increasing the max_audio_length will result in larger memory usage. If you are running out of memory, consider lowering the max_audio_length.",
"title": "Max Audio Length",
"type": "number"
},
"max_wav_value": {
"default": 32767.0,
"description": "Advanced. The maximum value allowed to be in your wav files. For 16-bit audio, this should be (2**16)/2 - 1.",
"title": "Max Wav Value",
"type": "number"
},
"input_sampling_rate": {
"default": 22050,
"description": "The sampling rate describes the number of samples per second of audio. The 'input_sampling_rate' is with respect to your vocoder, or spec-to-wav model. This means that the spectrograms predicted by your text-to-spec model will also be calculated from audio at this sampling rate. If you change this value, your audio will automatically be re-sampled during preprocessing.",
"title": "Input Sampling Rate",
"type": "integer"
},
"output_sampling_rate": {
"default": 22050,
"description": "Advanced. The sampling rate describes the number of samples per second of audio. The 'output_sampling_rate' is with respect to your vocoder, or spec-to-wav model. This means that the wav files generated by your vocoder or spec-to-wav model will be at this sampling rate. If you change this value, you will also need to change the upsample rates in your vocoder. Your audio will automatically be re-sampled during preprocessing.",
"title": "Output Sampling Rate",
"type": "integer"
},
"alignment_sampling_rate": {
"default": 22050,
"description": "Advanced. The sampling rate describes the number of samples per second of audio. The 'alignment_sampling_rate' describes the sampling rate used when training an alignment model. If you change this value, your audio will automatically be re-sampled during preprocessing.",
"title": "Alignment Sampling Rate",
"type": "integer"
},
"target_bit_depth": {
"default": 16,
"description": "Advanced. This is the bit depth of each sample in your audio files.",
"title": "Target Bit Depth",
"type": "integer"
},
"n_fft": {
"default": 1024,
"description": "Advanced. This is the number of bins used by the Fast Fourier Transform (FFT).",
"title": "FFT Size",
"type": "integer"
},
"fft_window_size": {
"default": 1024,
"description": "Advanced. This is the window size used by the Fast Fourier Transform (FFT).",
"title": "FFT Window Size",
"type": "integer"
},
"fft_hop_size": {
"default": 256,
"description": "Advanced. This is the hop size for calculating the Short-Time Fourier Transform (STFT) which calculates a sequence of spectrograms from a single audio file. Another way of putting it is that the hop size is equal to the amount of non-intersecting samples from the audio in each spectrogram.",
"title": "FFT Hop Size",
"type": "integer"
},
"f_min": {
"default": 0,
"description": "Advanced. This is the minimum frequency for the lowest frequency bin when calculating the spectrogram.",
"title": "Minimum Frequency",
"type": "integer"
},
"f_max": {
"default": 8000,
"description": "Advanced. This is the maximum frequency for the highest frequency bin when calculating the spectrogram.",
"title": "Maximum Frequency",
"type": "integer"
},
"n_mels": {
"default": 80,
"description": "Advanced. This is the number of filters in the Mel-scale spaced filterbank.",
"title": "Number of Mel bins",
"type": "integer"
},
"spec_type": {
"anyOf": [
{
"$ref": "#/$defs/AudioSpecTypeEnum"
},
{
"type": "string"
}
],
"default": "mel-librosa",
"description": "Advanced. Defines how to calculate the spectrogram. 'mel' uses the TorchAudio implementation for a Mel spectrogram. 'mel-librosa' uses Librosa's implementation. 'linear' calculates a non-Mel linear spectrogram and 'raw' calculates a complex-valued spectrogram. 'linear' and 'raw' are not currently supported by EveryVoice. We recommend using 'mel-librosa'.",
"title": "Spec Type"
},
"vocoder_segment_size": {
"default": 8192,
"description": "Advanced. The vocoder, or spec-to-wav model is trained by sampling random fixed-size sections of the audio. This value specifies the number of samples in those sections.",
"title": "Vocoder Segment Size",
"type": "integer"
}
},
"title": "AudioConfig",
"type": "object"
},
"AudioSpecTypeEnum": {
"enum": [
"mel",
"mel-librosa",
"linear",
"raw"
],
"title": "AudioSpecTypeEnum",
"type": "string"
},
"Dataset": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"label": {
"default": "YourDataSet",
"description": "A label for the source of data",
"title": "Label",
"type": "string"
},
"permissions_obtained": {
"default": false,
"description": "An attestation that permission has been obtained to use this data. You may not use EveryVoice to build a TTS system with data that you do not have permission to use and there are serious possible consequences for doing so. Finding data online does not constitute permission. The speaker should be aware and consent to their data being used in this way.",
"title": "Permissions Obtained",
"type": "boolean"
},
"data_dir": {
"default": "/please/create/a/path/to/your/dataset/data",
"description": "The path to the directory with your audio files.",
"format": "path",
"title": "Data Dir",
"type": "string"
},
"filelist": {
"default": "/please/create/a/path/to/your/dataset/filelist",
"description": "The path to your dataset's filelist.",
"format": "path",
"title": "Filelist",
"type": "string"
},
"filelist_loader": {
"description": "Advanced. The file-loader function to use to load your dataset's filelist.",
"title": "Filelist Loader",
"type": "string"
},
"sox_effects": {
"default": [
[
"channels",
"1"
]
],
"description": "Advanced. A list of SoX effects to apply to your audio prior to preprocessing. Run python -c 'import torchaudio; print(torchaudio.sox_effects.effect_names())' to see a list of supported effects.",
"items": {},
"title": "Sox Effects",
"type": "array"
}
},
"title": "Dataset",
"type": "object"
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"dataset": {
"default": "YourDataSet",
"description": "The name of the dataset.",
"title": "Dataset",
"type": "string"
},
"train_split": {
"default": 0.9,
"description": "The amount of the dataset to use for training. The rest will be used as validation. Hold some of the validation set out for a test set if you are performing experiments.",
"maximum": 1.0,
"minimum": 0.0,
"title": "Train Split",
"type": "number"
},
"dataset_split_seed": {
"default": 1234,
"description": "The seed to use when splitting the dataset into train and validation sets.",
"title": "Dataset Split Seed",
"type": "integer"
},
"save_dir": {
"default": "preprocessed/YourDataSet",
"description": "The directory to save preprocessed files to.",
"format": "path",
"title": "Save Dir",
"type": "string"
},
"audio": {
"allOf": [
{
"$ref": "#/$defs/AudioConfig"
}
],
"description": "Configuration settings for audio."
},
"path_to_audio_config_file": {
"anyOf": [
{
"format": "file-path",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The path to an audio configuration file.",
"title": "Path To Audio Config File"
},
"source_data": {
"description": "A list of datasets.",
"items": {
"$ref": "#/$defs/Dataset"
},
"title": "Source Data",
"type": "array"
}
},
"title": "PreprocessingConfig",
"type": "object"
}
137 changes: 137 additions & 0 deletions everyvoice/.schema/everyvoice-shared-text-0.2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"$defs": {
"Punctuation": {
"properties": {
"exclamations": {
"default": [
"!",
"\u00a1"
],
"description": "Exclamation punctuation symbols used in your datasets. Replaces these symbols with <EXCL> internally.",
"items": {
"type": "string"
},
"title": "Exclamations",
"type": "array"
},
"question_symbols": {
"default": [
"?",
"\u00bf"
],
"description": "Question/interrogative punctuation symbols used in your datasets. Replaces these symbols with <QINT> internally.",
"items": {
"type": "string"
},
"title": "Question Symbols",
"type": "array"
},
"quotemarks": {
"default": [
"\"",
"'",
"\u201c",
"\u201d",
"\u00ab",
"\u00bb"
],
"description": "Quotemark punctuation symbols used in your datasets. Replaces these symbols with <QUOTE> internally.",
"items": {
"type": "string"
},
"title": "Quotemarks",
"type": "array"
},
"big_breaks": {
"default": [
".",
":",
";"
],
"description": "Punctuation symbols indicating a 'big break' used in your datasets. Replaces these symbols with <BB> internally.",
"items": {
"type": "string"
},
"title": "Big Breaks",
"type": "array"
},
"small_breaks": {
"default": [
",",
"-",
"\u2014"
],
"description": "Punctuation symbols indicating a 'small break' used in your datasets. Replaces these symbols with <SB> internally.",
"items": {
"type": "string"
},
"title": "Small Breaks",
"type": "array"
},
"ellipsis": {
"default": [
"\u2026"
],
"description": "Punctuation symbols indicating an ellipsis used in your datasets. Replaces these symbols with <EPS> internally.",
"items": {
"type": "string"
},
"title": "Ellipsis",
"type": "array"
}
},
"title": "Punctuation",
"type": "object"
},
"Symbols": {
"additionalProperties": true,
"properties": {
"silence": {
"default": [
"<SIL>"
],
"description": "The symbol(s) used to indicate silence.",
"items": {
"type": "string"
},
"title": "Silence",
"type": "array"
},
"punctuation": {
"allOf": [
{
"$ref": "#/$defs/Punctuation"
}
],
"description": "EveryVoice will combine punctuation and normalize it into a set of five permissible types of punctuation to help tractable training."
}
},
"title": "Symbols",
"type": "object"
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"symbols": {
"$ref": "#/$defs/Symbols"
},
"to_replace": {
"additionalProperties": {
"type": "string"
},
"default": {},
"title": "To Replace",
"type": "object"
},
"cleaners": {
"items": {
"type": "string"
},
"title": "Cleaners",
"type": "array"
}
},
"title": "TextConfig",
"type": "object"
}
Loading
Loading