This commit is contained in:
SWivid
2024-10-24 01:19:01 +08:00
parent 8e0edfcf8f
commit d3951b93a7
2 changed files with 9 additions and 9 deletions

View File

@@ -29,7 +29,13 @@ pip install torch==2.3.0+cu118 torchaudio==2.3.0+cu118 --extra-index-url https:/
Then you can choose from a few options below: Then you can choose from a few options below:
### 1. Local editable ### 1. As a pip package (if just for inference)
```bash
pip install git+https://github.com/SWivid/F5-TTS.git
```
### 2. Local editable (if also do training, finetuning & evaluation)
```bash ```bash
git clone https://github.com/SWivid/F5-TTS.git git clone https://github.com/SWivid/F5-TTS.git
@@ -37,12 +43,6 @@ cd F5-TTS
pip install -e . pip install -e .
``` ```
### 2. As a pip package
```bash
pip install git+https://github.com/SWivid/F5-TTS.git
```
### 3. Build from dockerfile ### 3. Build from dockerfile
```bash ```bash
docker build -t f5tts:v1 . docker build -t f5tts:v1 .

View File

@@ -93,14 +93,14 @@ def main():
hop_length=hop_length, hop_length=hop_length,
) )
e2tts = CFM( model = CFM(
transformer=model_cls(**model_cfg, text_num_embeds=vocab_size, mel_dim=n_mel_channels), transformer=model_cls(**model_cfg, text_num_embeds=vocab_size, mel_dim=n_mel_channels),
mel_spec_kwargs=mel_spec_kwargs, mel_spec_kwargs=mel_spec_kwargs,
vocab_char_map=vocab_char_map, vocab_char_map=vocab_char_map,
) )
trainer = Trainer( trainer = Trainer(
e2tts, model,
args.epochs, args.epochs,
args.learning_rate, args.learning_rate,
num_warmup_updates=args.num_warmup_updates, num_warmup_updates=args.num_warmup_updates,