tok_inference_reconstruction.py
Less than 1 minute
tok_inference_reconstruction.py
Resynthesize waveforms from the hard token IDs written by tokenizer stage 10.
The input is the saved discrete token sequence, not audio or the straight-through one-hot assignments used during joint training. This script measures the waveform available to a user of the exported hard tokens through the jointly trained reconstruction branch.
<a id="tok_inference_reconstruction.py"></a>
usage: tok_inference_reconstruction.py [-h] [--config CONFIG]
[--task {gan_tok}] --token_file
TOKEN_FILE [--spembs_scp SPEMBS_SCP]
--output_dir OUTPUT_DIR --train_config
TRAIN_CONFIG --model_file MODEL_FILE
[--key_file KEY_FILE] [--ngpu NGPU]
[--dtype {float16,float32,float64}]
[--num_workers NUM_WORKERS]
[--sample_rate SAMPLE_RATE]