change nougat batchsize

This commit is contained in:
binary-husky 2023-11-12 15:57:18 +08:00
parent f34f1091c3
commit c45336a3cd
2 changed files with 4 additions and 3 deletions

View File

@ -748,7 +748,7 @@ class nougat_interface():
yield from update_ui_lastest_msg("正在解析论文, 请稍候。进度正在加载NOUGAT... 提示首次运行需要花费较长时间下载NOUGAT参数",
chatbot=chatbot, history=history, delay=0)
self.nougat_with_timeout(f'nougat --out "{os.path.abspath(dst)}" "{os.path.abspath(fp)}" --batchsize 8', os.getcwd(), timeout=3600)
self.nougat_with_timeout(f'nougat --out "{os.path.abspath(dst)}" "{os.path.abspath(fp)}" --batchsize 4', os.getcwd(), timeout=3600)
res = glob.glob(os.path.join(dst,'*.mmd'))
if len(res) == 0:
self.threadLock.release()

View File

@ -501,7 +501,8 @@
"环境变量": "Environment variable",
"不支持通过环境变量设置!": "Setting through environment variables is not supported!",
"加载失败!": "Loading failed!",
"成功读取环境变量": "Successfully read environment variables",
"如": " e.g., ",
"成功读取环境变量": "Successfully read environment variable: ",
"本项目现已支持OpenAI和API2D的api-key": "This project now supports api-keys for OpenAI and API2D",
"也支持同时填写多个api-key": "It also supports filling in multiple api-keys at the same time",
"您既可以在config.py中修改api-key": "You can modify the api-key in config.py",
@ -512,7 +513,7 @@
"请在config文件中修改API密钥之后再运行": "Please modify the API key in the config file before running",
"网络代理状态": "Network proxy status",
"未配置": "Not configured",
"无代理状态下很可能无法访问OpenAI家族的模型": "It is very likely that you cannot access OpenAI's models without a proxy",
"无代理状态下很可能无法访问OpenAI家族的模型": "",
"建议": "Suggestion",
"检查USE_PROXY选项是否修改": "Check if the USE_PROXY option has been modified",
"已配置": "Configured",