mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
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.
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user