mirror of
https://github.com/FunAudioLLM/CosyVoice.git
synced 2026-02-05 18:09:24 +08:00
fix lint
This commit is contained in:
@@ -72,7 +72,7 @@
|
|||||||
# pynini is required by WeTextProcessing, use conda to install it as it can be executed on all platforms.
|
# pynini is required by WeTextProcessing, use conda to install it as it can be executed on all platforms.
|
||||||
conda install -y -c conda-forge pynini==2.1.5
|
conda install -y -c conda-forge pynini==2.1.5
|
||||||
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com
|
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com
|
||||||
|
|
||||||
# If you encounter sox compatibility issues
|
# If you encounter sox compatibility issues
|
||||||
# ubuntu
|
# ubuntu
|
||||||
sudo apt-get install sox libsox-dev
|
sudo apt-get install sox libsox-dev
|
||||||
|
|||||||
@@ -381,7 +381,7 @@ class Qwen2LM(TransformerLM):
|
|||||||
self,
|
self,
|
||||||
batch: dict,
|
batch: dict,
|
||||||
device: torch.device,
|
device: torch.device,
|
||||||
) -> Dict[str, Optional[torch.Tensor]]:
|
) -> Dict[str, Optional[torch.Tensor]]:
|
||||||
text_token = batch['text_token'].to(device)
|
text_token = batch['text_token'].to(device)
|
||||||
text_token_len = batch['text_token_len'].to(device)
|
text_token_len = batch['text_token_len'].to(device)
|
||||||
speech_token = batch['speech_token'].to(device)
|
speech_token = batch['speech_token'].to(device)
|
||||||
|
|||||||
Reference in New Issue
Block a user