From 8ba7eeb1da8423fca375c4b7e80f53e86953c937 Mon Sep 17 00:00:00 2001 From: iclementine Date: Wed, 13 Jan 2021 20:30:51 +0800 Subject: [PATCH] rename doc folder --- {doc => docs}/Makefile | 0 {doc => docs}/make.bat | 0 {doc => docs}/source/advanced.rst | 0 {doc => docs}/source/conf.py | 0 {doc => docs}/source/demo.rst | 0 {doc => docs}/source/design.rst | 0 {doc => docs}/source/index.rst | 0 {doc => docs}/source/install.rst | 0 {doc => docs}/source/modules.rst | 0 {doc => docs}/source/parakeet.audio.rst | 0 {doc => docs}/source/parakeet.data.rst | 0 {doc => docs}/source/parakeet.datasets.rst | 0 {doc => docs}/source/parakeet.frontend.normalizer.rst | 0 {doc => docs}/source/parakeet.frontend.rst | 0 {doc => docs}/source/parakeet.models.rst | 0 {doc => docs}/source/parakeet.modules.rst | 0 {doc => docs}/source/parakeet.rst | 0 {doc => docs}/source/parakeet.training.rst | 0 {doc => docs}/source/parakeet.utils.rst | 0 {doc => docs}/source/tutorials.rst | 6 +++--- {docs => docs_cn}/config_cn.md | 0 {docs => docs_cn}/data_cn.md | 0 {docs => docs_cn}/experiment_cn.md | 0 {docs => docs_cn}/experiment_guide_cn.md | 0 {docs => docs_cn}/install.rst | 0 {docs => docs_cn}/overview_cn.md | 0 26 files changed, 3 insertions(+), 3 deletions(-) rename {doc => docs}/Makefile (100%) rename {doc => docs}/make.bat (100%) rename {doc => docs}/source/advanced.rst (100%) rename {doc => docs}/source/conf.py (100%) rename {doc => docs}/source/demo.rst (100%) rename {doc => docs}/source/design.rst (100%) rename {doc => docs}/source/index.rst (100%) rename {doc => docs}/source/install.rst (100%) rename {doc => docs}/source/modules.rst (100%) rename {doc => docs}/source/parakeet.audio.rst (100%) rename {doc => docs}/source/parakeet.data.rst (100%) rename {doc => docs}/source/parakeet.datasets.rst (100%) rename {doc => docs}/source/parakeet.frontend.normalizer.rst (100%) rename {doc => docs}/source/parakeet.frontend.rst (100%) rename {doc => docs}/source/parakeet.models.rst (100%) rename {doc => docs}/source/parakeet.modules.rst (100%) rename {doc => docs}/source/parakeet.rst (100%) rename {doc => docs}/source/parakeet.training.rst (100%) rename {doc => docs}/source/parakeet.utils.rst (100%) rename {doc => docs}/source/tutorials.rst (99%) rename {docs => docs_cn}/config_cn.md (100%) rename {docs => docs_cn}/data_cn.md (100%) rename {docs => docs_cn}/experiment_cn.md (100%) rename {docs => docs_cn}/experiment_guide_cn.md (100%) rename {docs => docs_cn}/install.rst (100%) rename {docs => docs_cn}/overview_cn.md (100%) diff --git a/doc/Makefile b/docs/Makefile similarity index 100% rename from doc/Makefile rename to docs/Makefile diff --git a/doc/make.bat b/docs/make.bat similarity index 100% rename from doc/make.bat rename to docs/make.bat diff --git a/doc/source/advanced.rst b/docs/source/advanced.rst similarity index 100% rename from doc/source/advanced.rst rename to docs/source/advanced.rst diff --git a/doc/source/conf.py b/docs/source/conf.py similarity index 100% rename from doc/source/conf.py rename to docs/source/conf.py diff --git a/doc/source/demo.rst b/docs/source/demo.rst similarity index 100% rename from doc/source/demo.rst rename to docs/source/demo.rst diff --git a/doc/source/design.rst b/docs/source/design.rst similarity index 100% rename from doc/source/design.rst rename to docs/source/design.rst diff --git a/doc/source/index.rst b/docs/source/index.rst similarity index 100% rename from doc/source/index.rst rename to docs/source/index.rst diff --git a/doc/source/install.rst b/docs/source/install.rst similarity index 100% rename from doc/source/install.rst rename to docs/source/install.rst diff --git a/doc/source/modules.rst b/docs/source/modules.rst similarity index 100% rename from doc/source/modules.rst rename to docs/source/modules.rst diff --git a/doc/source/parakeet.audio.rst b/docs/source/parakeet.audio.rst similarity index 100% rename from doc/source/parakeet.audio.rst rename to docs/source/parakeet.audio.rst diff --git a/doc/source/parakeet.data.rst b/docs/source/parakeet.data.rst similarity index 100% rename from doc/source/parakeet.data.rst rename to docs/source/parakeet.data.rst diff --git a/doc/source/parakeet.datasets.rst b/docs/source/parakeet.datasets.rst similarity index 100% rename from doc/source/parakeet.datasets.rst rename to docs/source/parakeet.datasets.rst diff --git a/doc/source/parakeet.frontend.normalizer.rst b/docs/source/parakeet.frontend.normalizer.rst similarity index 100% rename from doc/source/parakeet.frontend.normalizer.rst rename to docs/source/parakeet.frontend.normalizer.rst diff --git a/doc/source/parakeet.frontend.rst b/docs/source/parakeet.frontend.rst similarity index 100% rename from doc/source/parakeet.frontend.rst rename to docs/source/parakeet.frontend.rst diff --git a/doc/source/parakeet.models.rst b/docs/source/parakeet.models.rst similarity index 100% rename from doc/source/parakeet.models.rst rename to docs/source/parakeet.models.rst diff --git a/doc/source/parakeet.modules.rst b/docs/source/parakeet.modules.rst similarity index 100% rename from doc/source/parakeet.modules.rst rename to docs/source/parakeet.modules.rst diff --git a/doc/source/parakeet.rst b/docs/source/parakeet.rst similarity index 100% rename from doc/source/parakeet.rst rename to docs/source/parakeet.rst diff --git a/doc/source/parakeet.training.rst b/docs/source/parakeet.training.rst similarity index 100% rename from doc/source/parakeet.training.rst rename to docs/source/parakeet.training.rst diff --git a/doc/source/parakeet.utils.rst b/docs/source/parakeet.utils.rst similarity index 100% rename from doc/source/parakeet.utils.rst rename to docs/source/parakeet.utils.rst diff --git a/doc/source/tutorials.rst b/docs/source/tutorials.rst similarity index 99% rename from doc/source/tutorials.rst rename to docs/source/tutorials.rst index 18f0843..c4f5b2c 100644 --- a/doc/source/tutorials.rst +++ b/docs/source/tutorials.rst @@ -34,7 +34,7 @@ The code below show how to use a transformer_tts model. After loading the pretra >>> model = TransformerTTS.from_pretrained( >>> frontend, config, checkpoint_path) >>> model.eval() - +>>> >>> # text to spectrogram >>> sentence = "Printing, in the only sense with which we are at present concerned, differs from most if not from all the arts and crafts represented in the Exhibition" >>> outputs = model.predict(sentence, verbose=args.verbose) @@ -47,14 +47,14 @@ Like the example above, after loading the pretrained ConditionalWaveFlow model, >>> import soundfile as df >>> from parakeet.models import ConditionalWaveFlow - +>>> >>> # load the pretrained model >>> checkpoint_dir = Path("waveflow_pretrained") >>> config = yacs.config.CfgNode.load_cfg(str(checkpoint_dir / "config.yaml")) >>> checkpoint_path = str(checkpoint_dir / "step-2000000") >>> vocoder = ConditionalWaveFlow.from_pretrained(config, checkpoint_path) >>> vocoder.eval() - +>>> >>> # synthesize >>> audio = vocoder.predict(mel_output) >>> sf.write(audio_path, audio, config.data.sample_rate) diff --git a/docs/config_cn.md b/docs_cn/config_cn.md similarity index 100% rename from docs/config_cn.md rename to docs_cn/config_cn.md diff --git a/docs/data_cn.md b/docs_cn/data_cn.md similarity index 100% rename from docs/data_cn.md rename to docs_cn/data_cn.md diff --git a/docs/experiment_cn.md b/docs_cn/experiment_cn.md similarity index 100% rename from docs/experiment_cn.md rename to docs_cn/experiment_cn.md diff --git a/docs/experiment_guide_cn.md b/docs_cn/experiment_guide_cn.md similarity index 100% rename from docs/experiment_guide_cn.md rename to docs_cn/experiment_guide_cn.md diff --git a/docs/install.rst b/docs_cn/install.rst similarity index 100% rename from docs/install.rst rename to docs_cn/install.rst diff --git a/docs/overview_cn.md b/docs_cn/overview_cn.md similarity index 100% rename from docs/overview_cn.md rename to docs_cn/overview_cn.md