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]: web 本地启动,输出不了图片!!!web提示Something went wrong, please try again, #785

Open
liuquanyu opened this issue Dec 13, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@liuquanyu
Copy link

Issue

日志可以看到翻译了,但是输出不了图片;
本地启动,web 上传图片,选择有道翻译(设置了应用id和密钥,不确定有没有起作用,平台api调用次数0,应该没用,汗!), CTC,1024尺寸

Command Line Arguments

cd server && python main.py --use-gpu

Console logs

INFO:     127.0.0.1:50449 - "POST /translate/with-form/image/stream HTTP/1.1" 200 OK
[shared] Loading models
[shared] Running text detection
INFO:     127.0.0.1:50450 - "POST /execute/translate HTTP/1.1" 200 OK
[shared] Running ocr
[Model48pxOCR] prob: 0.6648881435394287 あ fg: (3, 3, 1) bg: (3, 3, 1)
[Model48pxOCR] prob: 0.9956433176994324 山田 fg: (7, 5, 4) bg: (7, 5, 4)
[Model48pxOCR] prob: 0.9997367858886719 まぁ fg: (8, 8, 3) bg: (8, 8, 3)
[Model48pxOCR] prob: 0.9998955726623535 なのに fg: (0, 0, 1) bg: (0, 0, 1)
[Model48pxOCR] prob: 0.9984569549560547 行くね fg: (7, 6, 4) bg: (7, 6, 4)
[Model48pxOCR] prob: 0.9996129870414734 じゃあ私 fg: (3, 5, 1) bg: (3, 5, 1)
[Model48pxOCR] prob: 0.9955269694328308 木之下さ… fg: (1, 1, 0) bg: (1, 1, 0)
[Model48pxOCR] prob: 0.9989407658576965 かっこいいし fg: (2, 4, 1) bg: (2, 4, 1)
[Model48pxOCR] prob: 0.9991170167922974 こっちだから fg: (2, 3, 0) bg: (2, 3, 0)
[Model48pxOCR] prob: 0.9998852014541626 なんでこんなに fg: (1, 0, 0) bg: (1, 0, 0)
[Model48pxOCR] prob: 0.9830853343009949 また学校で! fg: (3, 4, 1) bg: (3, 4, 1)
[Model48pxOCR] prob: 0.9999558925628662 思ってたけどね fg: (1, 2, 0) bg: (1, 2, 0)
[Model48pxOCR] prob: 0.9966431260108948 彼女の一人や二人 fg: (2, 2, 1) bg: (2, 2, 1)
[Model48pxOCR] prob: 0.9997823238372803 いないわけないって fg: (0, 1, 0) bg: (0, 1, 0)
[shared] No pre-translation replacements made.
[shared] Running text translation
[YoudaoTranslator] Translating into Chinese (Simplified)
[YoudaoTranslator] 0: まぁ => 嘛
[YoudaoTranslator] 1: いないわけないって思ってたけどね => 我还以为不可能没有呢
[YoudaoTranslator] 2: 彼女の一人や二人 => 她的一个或两个
[YoudaoTranslator] 3: 山田かっこいいし => 山田很帅
[YoudaoTranslator] 4: また学校で! => 又在学校!
[YoudaoTranslator] 5: あ => 啊
[YoudaoTranslator] 6: 木之下さ… => 木之下…
[YoudaoTranslator] 7: じゃあ私こっちだから行くね => 那我走这边走吧
[YoudaoTranslator] 8: なのに => 然而
[YoudaoTranslator] 9: なんでこんなに => 为什么这么多
[shared] No post-translation replacements made.
[shared] Running mask refinement
[mask]: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14/14 [00:00<00:00, 290.69it/s]
[shared] Running rendering
[render]: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 10/10 [00:00<00:00, 241.45it/s]
@liuquanyu liuquanyu added the bug Something isn't working label Dec 13, 2024
@liuquanyu
Copy link
Author

哪位朋友也有遇到这样的问题呀,回复一下呀,啊啊啊

@liuquanyu
Copy link
Author

No post-translation replacements made

@popcion
Copy link
Contributor

popcion commented Dec 14, 2024

可能是你的内存不足了,调小inpainting_size试试。你没添加替换字典的话就是会显示“No post-translation replacements made”

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

2 participants