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
Michael Görner 2023-05-08 11:17:36 +02:00 committed by GitHub
parent eec6beb966
commit 27e237ed08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class VitsConfig(BaseTTSConfig):
model: str = "vits" model: str = "vits"
# model specific params # model specific params
model_args: VitsArgs = field(default_factory=VitsArgs) model_args: VitsArgs = field(default_factory=VitsArgs)
audio: VitsAudioConfig = VitsAudioConfig() audio: VitsAudioConfig = field(default_factory=VitsAudioConfig)
# optimizer # optimizer
grad_clip: List[float] = field(default_factory=lambda: [1000, 1000]) grad_clip: List[float] = field(default_factory=lambda: [1000, 1000])