manga-image-translator icon indicating copy to clipboard operation
manga-image-translator copied to clipboard

求助,翻译后图片残留原文字问题

Open ZsIsMe opened this issue 1 year ago • 1 comments

Issue

描述问题

非常感谢作者开发这个出色的漫画翻译项目,实在太好用了。

我在使用时遇到了一个问题。当我使用的时候,发现翻译后的图片上还有原来日文的残留,看起来像是擦不干净的样子。

复现步骤

  1. 我使用以下指令进行翻译:
PYTORCH_ENABLE_MPS_FALLBACK=1 python3 -m manga_translator -v --mode batch --translator=gpt3.5 -l CHT --detector ctd --inpainter=lama_large --use-gpu --force-vertical --upscale-ratio 2
  1. 翻译完成后,生成的图片显示原文字残留。

预期行为

我期望翻译后的图片能够完全清除原始文字,只显示翻译后的中文。

实际行为

翻译后的图片仍然显示原文的残留文字。

相关屏幕截图

03-058

Command Line Arguments

No response

Console logs

No response

ZsIsMe avatar Dec 20 '23 14:12 ZsIsMe

I have the same issue, does anyone know which parameters tunning could help remove/reduce original text ghost artifact? Edit: using high value for --mask-dilation-offset seems to old text artifacts:

  • --mask-dilation-offset 30

hcharbonnier avatar Feb 29 '24 11:02 hcharbonnier