TL;DR: Anime-XCodec2-44.1kHz-v2 is a fine-tuned variant of NandemoGHS/Anime-XCodec2. It incorporates upsampling layers and RMS loss (inspired by Inworld TTS-1) to produce 44.1kHz output, trained on ~22k hours of Japanese speech. This v2 updates upsampler parameters, loss configurations, and fixes a RoPE bug from the original XCodec2.
Only the decoder was updated; the encoder and codebook remain frozen, so speech tokens are identical to the original XCodec2. This makes the model a drop‑in decoder for downstream systems that already work with XCodec2 tokens (e.g., Llasa).
NandemoGHS/Anime-XCodec2-44.1kHz-v2NandemoGHS/Anime-XCodec2HKUSTAudio/xcodec2HKUSTAudio/xcodec2 and NandemoGHS/Anime-XCodec2.Anime-XCodec2 (16kHz) pipelines to 44.1kHz output.This model modifies the original XCodec2 architecture (upsampler blocks) and requires a custom library version that includes a fix for the RoPE bug (Issue #36).
You MUST use the provided custom xcodec2 library fork (v0.1.7 or later) for inference. The standard library or older custom libraries (like 0.1.6) will not work.
Installation:
# Install the custom xcodec2 library (v0.1.7)
pip install https://huggingface.co/NandemoGHS/Anime-XCodec2-44.1kHz-v2/resolve/main/xcodec2-0.1.7.tar.gz
Usage: Once the custom library is installed, you can load and use this model just as you would the original XCodec2 or Anime-XCodec2 models. The core inference logic remains the same.
For a complete, working code example, please refer to my Hugging Face Spaces Demo: https://huggingface.co/spaces/OmniAICreator/Anime-XCodec2-44.1kHz-v2-Demo
xcodec2 library (v0.1.7) linked above. It is not compatible with the original xcodec2 library or previous custom forks (e.g., v0.1.6).NandemoGHS/Anime-XCodec2 (16kHz)UpSamplerBlock from the Inworld TTS-1 implementation into the decoder.generator.backbone, generator.head, generator.upsampler, fc_post_aCompared to the first version, this v2 model includes the following key updates to the training configuration:
hop_length=98, upsample_factors=[3, 3], and kernel_sizes=[9, 9].kushinada-hubert-large model used in perceptual loss.4 commits
TL;DR: Anime-XCodec2-44.1kHz-v2 is a fine-tuned variant of NandemoGHS/Anime-XCodec2. It incorporates upsampling layers and RMS loss (inspired by Inworld TTS-1) to produce 44.1kHz output, trained on ~22k hours of Japanese speech. This v2 updates upsampler parameters, loss configurations, and fixes a RoPE bug from the original XCodec2.
Only the decoder was updated; the encoder and codebook remain frozen, so speech tokens are identical to the original XCodec2. This makes the model a drop‑in decoder for downstream systems that already work with XCodec2 tokens (e.g., Llasa).
NandemoGHS/Anime-XCodec2-44.1kHz-v2NandemoGHS/Anime-XCodec2HKUSTAudio/xcodec2HKUSTAudio/xcodec2 and NandemoGHS/Anime-XCodec2.Anime-XCodec2 (16kHz) pipelines to 44.1kHz output.This model modifies the original XCodec2 architecture (upsampler blocks) and requires a custom library version that includes a fix for the RoPE bug (Issue #36).
You MUST use the provided custom xcodec2 library fork (v0.1.7 or later) for inference. The standard library or older custom libraries (like 0.1.6) will not work.
Installation:
# Install the custom xcodec2 library (v0.1.7)
pip install https://huggingface.co/NandemoGHS/Anime-XCodec2-44.1kHz-v2/resolve/main/xcodec2-0.1.7.tar.gz
Usage: Once the custom library is installed, you can load and use this model just as you would the original XCodec2 or Anime-XCodec2 models. The core inference logic remains the same.
For a complete, working code example, please refer to my Hugging Face Spaces Demo: https://huggingface.co/spaces/OmniAICreator/Anime-XCodec2-44.1kHz-v2-Demo
xcodec2 library (v0.1.7) linked above. It is not compatible with the original xcodec2 library or previous custom forks (e.g., v0.1.6).NandemoGHS/Anime-XCodec2 (16kHz)UpSamplerBlock from the Inworld TTS-1 implementation into the decoder.generator.backbone, generator.head, generator.upsampler, fc_post_aCompared to the first version, this v2 model includes the following key updates to the training configuration:
hop_length=98, upsample_factors=[3, 3], and kernel_sizes=[9, 9].kushinada-hubert-large model used in perceptual loss.4 commits