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]: Skipping Translations when Translating in Batches #773

Open
BlaskKilt opened this issue Dec 4, 2024 · 4 comments
Open

[Bug]: Skipping Translations when Translating in Batches #773

BlaskKilt opened this issue Dec 4, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@BlaskKilt
Copy link

Issue

This bug is quite serious. I am not gonna lie; when I leave it just there and come back to see it, It skips Groq translation tested in JSON and TOML I keep getting these so I think I'm gonna revert back to past commit until this is fix as I have no problem's translating like this..

Command Line Arguments

python3 -m manga_translator local --font-path fonts/SSRosehipBold.otf --config-file config/ctdmocr2048.toml --ignore-errors --kernel-size 5 -f jpg -i /root/Manga/12.4.24/Muno Ha Fuyo to Iware Tokei v01 /root/Manga/12.4.24/Muno Ha Fuyo to Iware Tokei v02 /root/Manga/12.4.24/Muno Ha Fuyo to Iware Tokei v03 /root/Manga/12.4.24/Shoshin kenshi wa sekai saikyo v01

Console logs

[local] Running text detection
[local] Running ocr
[ModelMangaOCR] prob: 0.9994253516197205 ふむ...被告人は fg: (8, 7, 3) bg: (8, 7, 3)
[ModelMangaOCR] prob: 0.9999783039093018 こう主張 fg: (3, 3, 0) bg: (3, 3, 0)
[ModelMangaOCR] prob: 0.9994568228721619 しているが? fg: (6, 7, 3) bg: (6, 7, 3)
[ModelMangaOCR] prob: 0.9998621344566345 ボクが犯人である fg: (11, 11, 8) bg: (11, 11, 8)
[ModelMangaOCR] prob: 0.9999774098396301 証拠なんて何も fg: (10, 10, 6) bg: (10, 10, 6)
[ModelMangaOCR] prob: 0.9997366070747375 ないはずだ! fg: (10, 10, 6) bg: (10, 10, 6)
[ModelMangaOCR] prob: 0.9997943639755249 何かの間違いだ! fg: (10, 10, 6) bg: (10, 10, 6)
[ModelMangaOCR] prob: 0.9999731779098511 ボクは何も fg: (14, 14, 12) bg: (14, 14, 12)
[ModelMangaOCR] prob: 0.9997479319572449 してないんです! fg: (10, 11, 7) bg: (10, 11, 7)
[ModelMangaOCR] prob: 0.9994426369667053 まずは被告人 fg: (6, 7, 4) bg: (6, 7, 4)
[ModelMangaOCR] prob: 0.9664888381958008 シクローオーウェン fg: (4, 5, 2) bg: (4, 5, 2)
[ModelMangaOCR] prob: 0.8283188343048096 第2話それでもボク fg: (7, 7, 5) bg: (7, 7, 5)
[ModelMangaOCR] prob: 0.9617870450019836 ではこれより fg: (8, 7, 3) bg: (8, 8, 4)
[ModelMangaOCR] prob: 0.9999647736549377 裁判を始める fg: (8, 7, 5) bg: (8, 7, 5)
[local] No pre-translation replacements made.
[local] Running text translation
[GroqTranslator] Translating into English
[local] Loading models
[local] Running text detection
[local] Running ocr
[ModelMangaOCR] prob: 0.9931527376174927 『警吏』 fg: (21, 20, 17) bg: (21, 20, 17)
[ModelMangaOCR] prob: 0.9807634353637695 「ブジンーボージャック fg: (4, 6, 4) bg: (4, 6, 4)
[ModelMangaOCR] prob: 0.9999791979789734 証言いたします fg: (9, 9, 6) bg: (9, 9, 6)
[ModelMangaOCR] prob: 0.9997467994689941 被告人 fg: (9, 9, 6) bg: (9, 9, 6)
[ModelMangaOCR] prob: 0.9961348176002502 静粛に!! fg: (10, 9, 7) bg: (10, 9, 7)
[ModelMangaOCR] prob: 0.9994531869888306 ふざけるな! fg: (9, 11, 7) bg: (9, 11, 7)
[ModelMangaOCR] prob: 0.9994705319404602 お:お前が犯人 fg: (12, 12, 8) bg: (12, 12, 8)
[ModelMangaOCR] prob: 0.9995247721672058 じゃないかっ! fg: (10, 11, 5) bg: (10, 11, 5)
[ModelMangaOCR] prob: 0.9995409250259399 何でこいつが!? fg: (12, 13, 11) bg: (12, 13, 11)
[local] No pre-translation replacements made.
[local] Running text translation
[GroqTranslator] Translating into English
[local] Loading models
[local] Running text detection
[local] Running ocr
[ModelMangaOCR] prob: 0.9999682903289795 そんな重罪を fg: (5, 6, 3) bg: (5, 6, 3)
[ModelMangaOCR] prob: 0.999932587146759 なすりつけ fg: (4, 4, 1) bg: (4, 4, 1)
[ModelMangaOCR] prob: 0.9675083160400391 られたらーー! fg: (3, 4, 1) bg: (3, 4, 1)
[ModelMangaOCR] prob: 0.9984270334243774 証人もおります fg: (10, 9, 5) bg: (10, 9, 5)
[ModelMangaOCR] prob: 0.9594516754150391 どうぞこちらへ fg: (6, 6, 3) bg: (6, 6, 3)
[ModelMangaOCR] prob: 0.9999933242797852 みんな fg: (11, 10, 9) bg: (11, 10, 9)
[ModelMangaOCR] prob: 0.9999382495880127 被害に遭った fg: (7, 8, 5) bg: (7, 8, 5)
[ModelMangaOCR] prob: 0.9999038577079773 女性の関係者 fg: (5, 4, 2) bg: (5, 4, 2)
[ModelMangaOCR] prob: 0.9997026920318604 なんだ! fg: (5, 4, 1) bg: (5, 4, 1)
[ModelMangaOCR] prob: 0.9989165663719177 置易裁判にしては fg: (1, 1, 1) bg: (1, 1, 1)
[ModelMangaOCR] prob: 0.9999402165412903 傍聴人が多すぎる fg: (3, 4, 1) bg: (3, 4, 1)
[ModelMangaOCR] prob: 0.9457938075065613 シクロくん... fg: (7, 4, 1) bg: (7, 4, 1)
[ModelMangaOCR] prob: 0.999838650226593 ボクに fg: (1, 4, 1) bg: (1, 4, 1)
[ModelMangaOCR] prob: 0.9999661445617676 罪をなすりつける fg: (4, 4, 1) bg: (4, 4, 1)
[ModelMangaOCR] prob: 0.9998045563697815 気なのか! fg: (5, 5, 2) bg: (5, 5, 2)
[ModelMangaOCR] prob: 0.9957930445671082 なっ...!? fg: (10, 14, 9) bg: (10, 14, 9)
[ModelMangaOCR] prob: 0.9993776082992554 おいおい.. fg: (8, 9, 3) bg: (8, 9, 3)
[local] Loading models
[local] Running text detection
[local] Running ocr
@BlaskKilt BlaskKilt added the bug Something isn't working label Dec 4, 2024
@zyddnys
Copy link
Owner

zyddnys commented Dec 6, 2024

use an older version
i just merged the pull requests, i didn't test anything

@zyddnys
Copy link
Owner

zyddnys commented Dec 6, 2024

use commit 1fc572c

@BlaskKilt
Copy link
Author

BlaskKilt commented Dec 7, 2024

use commit 1fc572c

thanks for the #703 fix also As I'm using now Duck Prog reverted commit and It seems it point to this

@frederik-uni
Copy link
Contributor

oh I forgot about that. I thought this was dead code & just set a todo.

in the groq file I removed the config loading, bc it didn't load anyway or at least it seemed that way and set a todo.

the original code was(l63-64)

    def parse_args(self, args):
        self.config = args.groq_config

now its(l63-65)

    def parse_args(self, args):
        #todo: is nver set
        self.config = None

I searched for groq_config & groq-config in th whole directory and the only result was in this function. I dont know why, but it seems like this caused the issue. Or atleast I dont have a clue what else could have caused it and that's the only thing I changed in the file & the rest works, so I guess this needs to be the issue. I dont know why, bc even before that it should have had an issue

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

3 participants