{"id":13564556,"url":"https://github.com/ksw0306/ClariNet","last_synced_at":"2025-04-03T21:31:06.129Z","repository":{"id":111978249,"uuid":"156490977","full_name":"ksw0306/ClariNet","owner":"ksw0306","description":"A Pytorch Implementation of ClariNet","archived":false,"fork":false,"pushed_at":"2019-08-05T17:58:06.000Z","size":41,"stargazers_count":289,"open_issues_count":8,"forks_count":64,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-11-04T17:47:44.107Z","etag":null,"topics":["clarinet","parallel-wavenet","pytorch","wavenet"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ksw0306.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-11-07T04:37:15.000Z","updated_at":"2024-10-25T03:16:23.000Z","dependencies_parsed_at":"2023-04-08T15:31:16.289Z","dependency_job_id":null,"html_url":"https://github.com/ksw0306/ClariNet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksw0306%2FClariNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksw0306%2FClariNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksw0306%2FClariNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksw0306%2FClariNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksw0306","download_url":"https://codeload.github.com/ksw0306/ClariNet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247083114,"owners_count":20880775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clarinet","parallel-wavenet","pytorch","wavenet"],"created_at":"2024-08-01T13:01:32.914Z","updated_at":"2025-04-03T21:31:04.096Z","avatar_url":"https://github.com/ksw0306.png","language":"Python","funding_links":[],"categories":["Python","Paper implementations｜论文实现","Paper implementations"],"sub_categories":["Other libraries｜其他库:","Other libraries:"],"readme":"# ClariNet\nA Pytorch Implementation of ClariNet (Mel Spectrogram --\u003e Waveform)\n\n\n# Requirements\n\nPyTorch 0.4.1 \u0026 python 3.6 \u0026 Librosa\n\n# Examples\n\n#### Step 1. Download Dataset\n\n- LJSpeech : [https://keithito.com/LJ-Speech-Dataset/](https://keithito.com/LJ-Speech-Dataset/)\n\n#### Step 2. Preprocessing (Preparing Mel Spectrogram)\n\n`python preprocessing.py --in_dir ljspeech --out_dir DATASETS/ljspeech`\n\n#### Step 3. Train Gaussian Autoregressive WaveNet (Teacher)\n\n`python train.py --model_name wavenet_gaussian --batch_size 8 --num_blocks 2 --num_layers 10`\n\n#### Step 4. Synthesize (Teacher)\n\n`--load_step CHECKPOINT` : the # of the pre-trained *teacher* model's global training step (also depicted in the trained weight file)\n\n`python synthesize.py --model_name wavenet_gaussian --num_blocks 2 --num_layers 10 --load_step 10000 --num_samples 5`\n\n#### Step 5. Train Gaussian Inverse Autoregressive Flow (Student)\n\n`--teacher_name (YOUR TEACHER MODEL'S NAME)`\n\n`--teacher_load_step CHECKPOINT` : the # of the pre-trained *teacher* model's global training step (also depicted in the trained weight file)\n\n`--KL_type qp` : Reversed KL divegence KL(q||p)  or `--KL_type pq` : Forward KL divergence KL(p||q)\n\n`python train_student.py --model_name wavenet_gaussian_student --teacher_name wavenet_gaussian --teacher_load_step 10000 --batch_size 2 --num_blocks_t 2 --num_layers_t 10 --num_layers_s 10 --KL_type qp`\n\n#### Step 6. Synthesize (Student)\n\n`--model_name (YOUR STUDENT MODEL'S NAME)`\n\n`--load_step CHECKPOINT` : the # of the pre-trained *student* model's global training step (also depicted in the trained weight file)\n\n`--teacher_name (YOUR TEACHER MODEL'S NAME)`\n\n`--teacher_load_step CHECKPOINT` :  the # of the pre-trained *teacher* model's global training step (also depicted in the trained weight file)\n\n`python synthesize_student.py --model_name wavenet_gaussian_student --load_step 10000 --teacher_name wavenet_gaussian --teacher_load_step 10000 --num_blocks_t 2 --num_layers_t 10 --num_layers_s 10 --num_samples 5`\n\n# References\n\n- WaveNet vocoder : [https://github.com/r9y9/wavenet_vocoder](https://github.com/r9y9/wavenet_vocoder)\n- ClariNet : [https://arxiv.org/abs/1807.07281](https://arxiv.org/abs/1807.07281)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksw0306%2FClariNet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksw0306%2FClariNet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksw0306%2FClariNet/lists"}