CNChTu / FCPE

MIT License
83 stars 16 forks source link

add test time augmentation #11

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, the final pitch curves may become overly smooth, and the uv may be shorter.

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


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

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