CNChTu / FCPE

MIT License
83 stars 16 forks source link

Add test time augmentation #10

Closed qiuqiao closed 3 months ago

qiuqiao commented 3 months ago

when enabled, it can expand the model's tonal range and reduce erroneous outputs, but the process will be slower and the final pitch curves may become overly smooth.

In the InferCFNaiveMelPE.infer method, specify the parameter test_time_augmentation=True. You can also specify the parameters tta_uv_penalty and tta_key_shifts to achieve the desired effect.


启用后,可以扩展模型的音域,减少错误输出,但速度会更慢并且最终得到的音高曲线可能会过于平滑。

InferCFNaiveMelPE.infer方法中,指定参数test_time_augmentation=True。也可以同时指定参数tta_uv_penaltytta_key_shifts来达到想要的效果。