Comments (8)
在这次执行之前,百度api页面上所显示的是正常翻译,代表其实上次翻译是正常使用百度翻译的,但是这次却切换为谷歌了
from manga-image-translator.
用有道翻译器也是存在这个问题
from manga-image-translator.
问题似乎被解决了,因为用量确实的被记录在平台上,但是现在出现了新的问题,百度翻译器完全无法使用,显示
-- Translating
oh no.
fail to initialize deepl :
auth_key must not be empty
switch to google translator
Traceback (most recent call last):
File "D:\translate\manga-image-translator\translate_demo.py", line 326, in
loop.run_until_complete(main(args.mode))
File "C:\Users\sola\miniconda3\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "D:\translate\manga-image-translator\translate_demo.py", line 246, in main
await infer(img, mode, '', alpha_ch = alpha_ch)
File "D:\translate\manga-image-translator\translate_demo.py", line 160, in infer
translated_sentences = await run_translation(args.translator, 'auto', args.target_lang, [r.text for r in text_regions])
File "D:\translate\manga-image-translator\translators_init_.py", line 186, in dispatch
result = await BAIDU_CLIENT.translate(src_lang, tgt_lang, concat_texts)
File "D:\translate\manga-image-translator\translators\baidu.py", line 30, in translate
for ret in result["trans_result"]:
KeyError: 'trans_result'
我在本地机与另外的远程机器上尝试了,都出现了如示的报错
from manga-image-translator.
translators/keys.py里的百度的key填了吗
from manga-image-translator.
translators/keys.py里的百度的key填了吗
填了
from manga-image-translator.
translators/keys.py里的百度的key填了吗
填了
选的百度,不行,有道就能正常进行
from manga-image-translator.
key可能不对,我这里测的百度没有问题
from manga-image-translator.
确实,之前重置了一次然后少复制了一位,已解决,感谢!
from manga-image-translator.
Related Issues (20)
- [Feature Request]: Float16 for Default detection model
- [Feature Request]: Use Gemini for translation
- [Feature Request]: Support for Artists Providing Original Artwork
- [Feature Request]: Please add the ability to translate using the claud API
- [Bug]: sakura.py 和 chatgpt.py 争夺 openai 参数的初始化 HOT 1
- how to modify GoogleTranslator by using proxy
- 请问在哪里配置翻译服务(API key) Where can I configure the translation service (API key) HOT 1
- [Bug]: Api Mode error HOT 1
- [Bug]: Errors in api mode HOT 8
- [Bug]: We experienced an issue while translating your image. Error ID: not_found HOT 1
- [Bug]: TypeError: 'type' object is not subscriptable HOT 2
- [Feature Request]: Working on Mac HOT 16
- [Bug]: pydensecrf fails within mac m1 HOT 1
- [Bug]: Is it possible to avoid model download every docker run? HOT 1
- [Bug]: Segmentation Fault (Core Dumped) HOT 2
- [Bug]: pydensecrf link is broken
- How to use sakura model?
- [Bug]: Something went wrong, please try again HOT 1
- [Bug]: 求助:怎么配置翻译服务 HOT 1
- [Bug]: How to specify output file in demo mode? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manga-image-translator.