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]: 单张/批量均无法使用 #809

Open
Andy-ax-as opened this issue Dec 31, 2024 · 1 comment
Open

[Bug]: 单张/批量均无法使用 #809

Andy-ax-as opened this issue Dec 31, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Andy-ax-as
Copy link

Issue

下载的是今天最新版本,python环境

Command Line Arguments

No response

Console logs

单张如下:
D:\manga-image-translator-main> python -m manga_translator --verbose --use-gpu --translator=google --target-lang=CHS -i  F:\FFOutput\008.jpg
usage: manga_translator [-h] [-v] [--attempts ATTEMPTS] [--ignore-errors] [--model-dir MODEL_DIR]
                        [--use-gpu | --use-gpu-limited] [--font-path FONT_PATH] [--pre-dict PRE_DICT]
                        [--post-dict POST_DICT] [--kernel-size KERNEL_SIZE]
                        {local,ws,shared,config-help} ...
manga_translator: error: argument mode: invalid choice: 'F:\\FFOutput\\008.jpg' (choose from local, ws, shared, config-help)

批量如下:
D:\manga-image-translator-main> python -m manga_translator --verbose --use-gpu --translator=google --target-lang=CHS -i  F:\FFOutput\008.jpg
usage: manga_translator [-h] [-v] [--attempts ATTEMPTS] [--ignore-errors] [--model-dir MODEL_DIR]
                        [--use-gpu | --use-gpu-limited] [--font-path FONT_PATH] [--pre-dict PRE_DICT]
                        [--post-dict POST_DICT] [--kernel-size KERNEL_SIZE]
                        {local,ws,shared,config-help} ...
manga_translator: error: argument mode: invalid choice: 'F:\\FFOutput\\008.jpg' (choose from local, ws, shared, config-help)
@Andy-ax-as Andy-ax-as added the bug Something isn't working label Dec 31, 2024
@PAIDAN250101
Copy link

折腾半天终于整清楚一些了,我来帮忙解决一些问题,
manga_translator: error: argument mode: invalid choice: 'F:\FFOutput\008.jpg' (choose from local, ws, shared, config-help)
现在这个版本 python -m manga_translator 跟的是 local, ws, shared, config-help
python -m manga_translato local
这才是正确的打开方式

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