Skip to content

Commit

Permalink
use default_factory for audio parameter (#2576)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
v4hn authored May 8, 2023
1 parent eec6beb commit 27e237e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/tts/configs/vits_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 27e237e

Please sign in to comment.