You can download the plugin files here: lamainpaint_plugins.zip
You need to run lama-cleaner as the backend of the plugin.
- Install Python
- Put the plugin files in ImageTrans's
plugins
folder - Install lama-cleaner:
pip install lama-cleaner==0.12.0
- Start the server at port 8087:
lama-cleaner --device=cpu --port=8087
- In ImageTrans, set the default inpainter to lama or use it in TextRemover.
For convenience, you can also use the Windows package of lama-cleaner. Download and unzip it and then start run.bat
to keep the server running. Download link.
Related issue: xulihang/ImageTrans-docs#216
PS: lama will resize images too large so it is recommended to process by text areas. You can enable this in the project settings.