#8149 无返回翻译结果self=[LocalLLM]: uuid='81a73530b7', proxy_str='http://127.0.0.1:7897', translate_type=9, is_test=False, source_co

142.249**4 Posted at: 2 hours ago

无返回翻译结果
self=[LocalLLM]: uuid='81a73530b7', proxy_str='http://127.0.0.1:7897', translate_type=9, is_test=False, source_code='Simplified Chinese', target_code='Indonesian', common_target_code='id', api_url='http://127.0.0.1:11434/v1', model_name='qwen3:8b', trans_thread=4, wait_sec=0.0, local_dir=None, is_cuda=True, aisendsrt=True, ainame='localllm', temperature=0.1, max_tokens=8192, reasoning_effort=None, extra_body=None
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 90, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 71, in run
File "videotrans\translator\_base.py", line 82, in run
File "videotrans\translator\_base.py", line 167, in _run_srt
videotrans.configure.excepts.TranslateSrtError: 无返回翻译结果
self=[LocalLLM]: uuid='81a73530b7', proxy_str='http://127.0.0.1:7897', translate_type=9, is_test=False, source_code='Simplified Chinese', target_code='Indonesian', common_target_code='id', api_url='http://127.0.0.1:11434/v1', model_name='qwen3:8b', trans_thread=4, wait_sec=0.0, local_dir=None, is_cuda=True, aisendsrt=True, ainame='localllm', temperature=0.1, max_tokens=8192, reasoning_effort=None, extra_body=None

trk=[TransCreate]: uuid='81a73530b7', proxy_str='http://127.0.0.1:7897', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/douyindowland/DouK-Downloader_V5.8_Windows_X64/Volume/UID3544434561525911_复旦中山心内科周达新_发布作品/2026-07-13 18.32.20-视频-复旦中山心内科周达新-什么是结构性心脏病?今天周医生一...山心内科周达新 #抖出健康知识宝藏.mp4,
输出结果保存到文件夹: D:/douyindowland/DouK-Downloader_V5.8_Windows_X64/Volume/UID3544434561525911_复旦中山心内科周达新_发布作品/_video_out/2026-07-13 18.32.20-视频-复旦中山心内科周达新-什么是结构性心脏病?今天周医生一...山心内科周达新 #抖出健康知识宝藏-mp4,
临时文件夹: D:/fanyi/tmp/30648/81a73530b7
已选 清理已存在
已启用CUDA加速
未选 降噪
已选 恢复标点符号
语音识别:Qwen-ASR(内置), 1.7B, 发音语言: 简体中文, LLM纠错
翻译渠道:本地大模型(兼容OpenAI),原始语言:简体中文,目标语言:印度尼西亚, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件
代理地址: http://127.0.0.1:7897, precent=12, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=True, is_copy_video=False, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='D:/fanyi/tmp/30648/81a73530b7/vocal.wav', should_recogn2=False, do_diarize=True
video_duration_ms=87887


=
system:Windows-10-10.0.26200-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/fanyi

1 Replies

#1 DeepSeek reply at 2 hours ago

这是本地大模型(qwen3:8b)通过 Ollama 的 OpenAI 兼容接口返回了空内容导致的。qwen3 是思考型模型,如果软件未正确开启其思考开关,或模型未按提示词返回合法译文,就会报“无返回翻译结果”。

按以下顺序排查:

  1. 测试接口是否正常:浏览器访问 http://127.0.0.1:11434/v1/models,确认 qwen3:8b 模型存在且 Ollama 服务正常。
  2. 在软件中进入本地大模型(兼容OpenAI)对应的设置窗口,尝试勾选 Thinking(启用思考)后保存重试;如果勾选后仍然报错,则取消勾选再试。qwen3 系列通常需要开启思考才能正常返回内容。
  3. 主界面翻译渠道中,暂时取消勾选“发送完整字幕(SendSrt)”,并到 高级选项-字幕翻译 将 AI翻译渠道每批字幕行数调小(如 10),降低模型单次输出压力。
  4. 若仍失败,精简本地模型提示词:打开 软件目录/videotrans/prompts/srt/localllm.txt 和 videotrans/prompts/text/localllm.txt,删减复杂指令(保留 {} 变量)。小模型对复杂提示词理解能力弱,容易输出空内容或无关文本。
  5. 建议将本地模型换成能力更强的模型,或改用 DeepSeek 等在线 AI 翻译渠道,中文→印尼语翻译会更稳定。

如果以上操作后仍然失败,请提供 logs/ 目录下最新日志的最后约30行,并说明你的 Ollama 版本和是否已修改过提示词。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource