#2305 ValueError: invalid literal for int() with base 10: '0.2'

151.241* Posted at: 22 hours ago 👁19

Traceback (most recent call last):
File "videotrans\mainwin\_actions.py", line 633, in check_start
ValueError: invalid literal for int() with base 10: '0.2'


=
system:Windows-10-10.0.26100-SP0
version:v3.91
frozen:True
language:zh
root_dir:D:/Portable/pyvideotrans

1 Replies

这个错误是由于在“高级选项”中,某些需要输入整数的参数被错误地填写了小数(如 0.2)导致的。具体来说,是 beam_sizebest_of 这类参数被设置成了非整数值。

请按以下步骤解决:

  1. 在软件主界面,点击菜单栏的 工具 -> 选项 -> 高级选项
  2. 在打开的“高级选项”窗口中,找到 “Faster/OpenAI/Whisper 语音识别微调” 区域。
  3. 检查以下两个参数,确保它们都是 整数(例如 15),而不是小数:

    • 识别准确度 (beam_size)
    • 识别准确度 (best_of)
  4. 将这两个值都修改为整数(例如,如果显存不足,建议都设为 1)。
  5. 点击“保存”并重启软件。

完成以上操作后,错误应该会消失。

有用的文档链接:优化语音识别精度和断句效果

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions