Fix: Default value of False for compatibility with older models where the HyperParameters.data.use_jp_extra field does not exist

JP-Extra models always have use_jp_extra=True, but non-JP-Extra models do not always.
This commit is contained in:
tsukumi
2024-09-23 05:26:19 +09:00
parent 0e0b4bea31
commit cc1d6120fe

View File

@@ -38,7 +38,7 @@ class HyperParametersTrain(BaseModel):
class HyperParametersData(BaseModel):
use_jp_extra: bool = True
use_jp_extra: bool = False # このフィールドが存在しない旧モデルとの互換性のために False をデフォルト値とする
training_files: str = "Data/Dummy/train.list"
validation_files: str = "Data/Dummy/val.list"
max_wav_value: float = 32768.0