Download the **data** folder from https://drive.google.com/drive/folders/1uElIYRLNakJj-YS0Kd3r3HE-wzeEvrWd?usp=sharing and move it into BallonsTranslator/ballontranslator, finally run
```bash
python ballontranslator/__main__.py
python ballontranslator
```
To use Sugoi translator(Japanese-English only), download [offline model](https://drive.google.com/drive/folders/1KnDlfUM9zbnYFTo6iCbnBaBKabXfnVJm), move "sugoi_translator" into the BallonsTranslator/ballontranslator/data.
## Fully automated translation
**It is recommended to run the program in a terminal in case it crashed and left no information, see the following gif.**, Please select the desired translator and set the source and target languages the first time you run the application. Open a folder containing images that need translation, click the "Run" button and wait for the process to complete.
Drag the rectangle with left button pressed to erase the text inside the box, press right button and drag to clear inpainted result.
To 'erase' unwanted inpainted results, use the inpainting tool or rect tool with your **right button** pressed.
The result depends on how accurately the algorithm ("method 1" and "method 2" in the gif) extracts the text mask. It could perform worse on complex text & background.
## Text editing
@@ -103,6 +106,8 @@ This project is heavily dependent upon [manga-image-translator](https://github.c
- Patreon: <https://www.patreon.com/voilelabs>
- 爱发电: <https://afdian.net/@voilelabs>
Sugoi translator is created by [mingshiba](https://www.patreon.com/mingshiba).
## Text detection
Support English and Japanese text detection, training code and more details can be found at [comic-text-detector](https://github.com/dmMaze/comic-text-detector)
@@ -121,11 +126,14 @@ Support English and Japanese text detection, training code and more details can
* Please change the goolge translator url from *.cn to *.com if you are not blocked by GFW.
* Caiyun translator need to require a [token](https://dashboard.caiyunapp.com/)
To add a new translator, please reference [加别的翻译器](doc/加别的翻译器.md), it is simple as subclass a BaseClass and implementing two interfaces, then you can use it in the application, you are welcome to contribute to the project.
## Misc
* If your computer has an Nvidia GPU, the program will enable cuda acceleration for all models by default, which requires around 6G GPU memory, you can turn down the inpaint_size in the config panel to avoid OOM.
* Thanks to [bropines](https://github.com/bropines) for the Russian localisation.
## Previews of fully automated translation results
| Original | Translated (CHS) | Translated (ENG) |
Скачайте папку **data** с сайта https://drive.google.com/drive/folders/1uElIYRLNakJj-YS0Kd3r3HE-wzeEvrWd?usp=sharing и переместите ее в BallonsTranslator/ballontranslator, наконец, выполните команду