mirror of https://github.com/coqui-ai/TTS.git
use default_factory for audio parameter (#2576)
Python 3.11 complains about the mutable default and other members were already adapted to use the factory, so I expect this line just went unnoticed until now.pull/2603/head
parent
eec6beb966
commit
27e237ed08
|
@ -109,7 +109,7 @@ class VitsConfig(BaseTTSConfig):
|
|||
model: str = "vits"
|
||||
# model specific params
|
||||
model_args: VitsArgs = field(default_factory=VitsArgs)
|
||||
audio: VitsAudioConfig = VitsAudioConfig()
|
||||
audio: VitsAudioConfig = field(default_factory=VitsAudioConfig)
|
||||
|
||||
# optimizer
|
||||
grad_clip: List[float] = field(default_factory=lambda: [1000, 1000])
|
||||
|
|
Loading…
Reference in New Issue