mirror of
https://github.com/babysor/MockingBird.git
synced 2024-03-22 13:11:31 +08:00
Tell the hifigan type of a vocoder model by searching full text
This commit is contained in:
parent
a1f2e4a790
commit
7f799d322f
|
@ -447,7 +447,7 @@ class Toolbox:
|
||||||
return
|
return
|
||||||
# Sekect vocoder based on model name
|
# Sekect vocoder based on model name
|
||||||
model_config_fpath = None
|
model_config_fpath = None
|
||||||
if model_fpath.name[0] == "g":
|
if model_fpath.name is not None and model_fpath.name.find("hifigan") > -1:
|
||||||
vocoder = gan_vocoder
|
vocoder = gan_vocoder
|
||||||
self.ui.log("set hifigan as vocoder")
|
self.ui.log("set hifigan as vocoder")
|
||||||
# search a config file
|
# search a config file
|
||||||
|
|
Loading…
Reference in New Issue
Block a user