Skip to content

Commit

Permalink
feat(chtts): add copy asset/tokenizer & drop spk_stat
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Aug 5, 2024
1 parent bdb4b45 commit ff89493
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions assets/chtts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ Targets:
- asset/Decoder.pt
- asset/GPT.pt
- asset/Vocos.pt
- asset/spk_stat.pt
- asset/tokenizer.pt
- Folder: asset/tokenizer
Copy:
- asset/tokenizer/special_tokens_map.json
- asset/tokenizer/tokenizer_config.json
- asset/tokenizer/tokenizer.json

2 comments on commit ff89493

@goshut
Copy link

@goshut goshut commented on ff89493 Aug 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么把spk_stat.pt和tokenizer.pt去掉了???
而chatTTS还在检测?
https://github.com/2noise/ChatTTS/blob/main/ChatTTS/utils/dl.py

def check_all_assets(base_dir: Path, sha256_map: Dict[str, str], update=False) -> bool:
    logger.get_logger().info("checking assets...")
    current_dir = base_dir / "asset"
    names = [
        "Decoder.pt",
        "DVAE_full.pt",
        "GPT.pt",
        "spk_stat.pt",
        "tokenizer.pt",
        "Vocos.pt",
    ]
    for model in names:
        menv = model.replace(".", "_")
        if not check_model(
            current_dir, model, sha256_map[f"sha256_asset_{menv}"], update
        ):
            return False

    logger.get_logger().info("all assets are already latest.")
    return True

@fumiama
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不影响旧版本,旧版本仍继续使用旧代码。

Please sign in to comment.