Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 上传的图片概率性翻译失败 #624

Closed
ToBeMaster-Mao opened this issue May 16, 2024 · 0 comments
Closed

[Bug]: 上传的图片概率性翻译失败 #624

ToBeMaster-Mao opened this issue May 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ToBeMaster-Mao
Copy link

Issue

在使用"/run"这个API时,用file或者url上传图片会出现概率性触发服务500的情况,经过验证,具体报错代码是这一行:
img.save(f'result/{task_id}/input.jpg')
在该行前面加上下面这行代码就能解决问题
img = img.convert('RGB')

上述内容在这里:
@routes.post("/manual-translate")
async def manual_translate_async(request)

Command Line Arguments

No response

Console logs

No response

@ToBeMaster-Mao ToBeMaster-Mao added the bug Something isn't working label May 16, 2024
Kolyada added a commit to Kolyada/manga-image-translator that referenced this issue Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant