mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-06 11:37:03 +08:00
Fix
This commit is contained in:
parent
7705dccc99
commit
1f0814a32c
@ -72,7 +72,7 @@ class VoiceBpeTokenizer:
|
|||||||
token_idx = self.encode(line, lang)
|
token_idx = self.encode(line, lang)
|
||||||
lyric_token_idx = lyric_token_idx + token_idx + [2]
|
lyric_token_idx = lyric_token_idx + token_idx + [2]
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.warning("tokenize error {} for line {} major_language {}".format(e, line, lan))
|
logging.warning("tokenize error {} for line {} major_language {}".format(e, line, lang))
|
||||||
return {"input_ids": lyric_token_idx}
|
return {"input_ids": lyric_token_idx}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user