xulihang / ImageTrans-docs

Documentation of ImageTrans, a computer-aided image translation tool. ImageTrans的文档项目。ImageTrans是一款计算机辅助图片/漫画翻译软件。
https://imagetrans.readthedocs.io/
85 stars 7 forks source link

Add lama inpainting #216

Closed xulihang closed 2 years ago

xulihang commented 2 years ago

The lama inpainting works great on comics as well. The lama-cleaner project provides a server version which we can use to create a plugin.

Telea (ImageTrans's default):

image

Lama:

image

xulihang commented 2 years ago

Here is the plugin: https://github.com/xulihang/ImageTrans_plugins/tree/master/LamaInpaint

xulihang commented 2 years ago

Plugin files:

lama_inpainting_plugin.zip

lhj5426 commented 2 years ago

image 新的修复 哈哈是这样用吧?

CoolGenius-123 commented 5 months ago

I have tried translating some of the comics but not able to get proper result could anyone tell me the reason is it due Mask , if then how can I edit the mask after generation and if possible can I do it automated way . In the one image its worked fine but in second image its got covered only to some extent. 759 814

OCR + text_recognition : manga translator Mask : InsetRectMaskGen Remover : LamaInaint

xulihang commented 5 months ago

You can use ExternalMaskGen to use manga translator to accurately generate the mask.

You can edit the mask using the mask editor.

CoolGenius-123 commented 5 months ago

You can use ExternalMaskGen to use manga translator to accurately generate the mask.

You can edit the mask using the mask editor.

Will ExternalMaskGen will be able to remove the text from complex background

xulihang commented 5 months ago

Just try it with Japanese manga.