{ "module": { "textdetector": "ctd", "ocr": "manga_ocr", "inpainter": "lama_mpe", "translator": "DeepL", "enable_detect": true, "enable_ocr": true, "enable_translate": false, "enable_inpaint": true, "textdetector_params": { "ctd": { "detect_size": { "type": "selector", "options": [ 1024, 1152, 1280 ], "select": "1280" }, "det_rearrange_max_batches": { "type": "selector", "options": [ 1, 2, 4, 6, 8, 12, 16, 24, 32 ], "select": 4 }, "device": { "type": "selector", "options": [ "cpu", "cuda", "hip" ], "select": "cuda" }, "description": "ComicTextDetector" } }, "ocr_params": { "mit32px": { "chunk_size": { "type": "selector", "options": [ 8, 16, 24, 32 ], "select": 16 }, "device": { "type": "selector", "options": [ "cpu", "cuda", "hip" ], "select": "cuda" }, "description": "OCRMIT32px" }, "manga_ocr": { "device": { "type": "selector", "options": [ "cpu", "cuda", "hip" ], "select": "cuda" } }, "mit48px_ctc": { "chunk_size": { "type": "selector", "options": [ 8, 16, 24, 32 ], "select": 16 }, "device": { "type": "selector", "options": [ "cpu", "cuda", "hip" ], "select": "cuda" }, "description": "mit48px_ctc" }, "windows_ocr": { "language": { "type": "selector", "options": [ "Английский (США)", "Японский", "Русский" ], "select": "Японский" } } }, "translator_params": { "Baidu": { "token": "", "appId": "", "delay": "0.0" }, "Caiyun": { "token": "", "delay": "0.0" }, "ChatGPT": { "api key": "", "model": { "type": "selector", "options": [ "gpt3", "gpt35-turbo", "gpt4" ], "select": "gpt35-turbo" }, "prompt template": { "type": "editor", "content": "Please help me to translate the following text from a manga to {to_lang} (if it's already in {to_lang} or looks like gibberish you have to output it as it is instead):\n" }, "chat system template": { "type": "editor", "content": "You are a professional translation engine, please translate the text into a colloquial, elegant and fluent content, without referencing machine translations. You must only translate the text content, never interpret it. If there's any issue in the text, output the text as is.\nTranslate to {to_lang}." }, "chat sample": { "type": "editor", "content": "日本語-简体中文:\n source:\n - 二人のちゅーを 目撃した ぼっちちゃん\n - ふたりさん\n - 大好きなお友達には あいさつ代わりに ちゅーするんだって\n - アイス あげた\n - 喜多ちゃんとは どどど どういった ご関係なのでしようか...\n - テレビで見た!\n target:\n - 小孤独目击了两人的接吻\n - 二里酱\n - 我听说人们会把亲吻作为与喜爱的朋友打招呼的方式\n - 我给了她冰激凌\n - 喜多酱和你是怎么样的关系啊...\n - 我在电视上看到的!" }, "invalid repeat count": 2, "max requests per minute": 20, "delay": 0.3, "max tokens": 4096, "temperature": 0.5, "top p": 1, "retry attempts": 5, "3rd party api url": "" }, "DeepL": { "api_key": "", "delay": "0.0" }, "DeepL Free": { "delay": "0.0" }, "google": { "delay": "0.0" }, "Papago": { "delay": "0.0" }, "Sugoi": { "device": { "type": "selector", "options": [ "cpu", "cuda" ], "select": "cpu" } }, "Yandex": { "api_key": "", "delay": "0.0" } }, "inpainter_params": { "opencv-tela": null, "patchmatch": null, "aot": { "inpaint_size": { "type": "selector", "options": [ 1024, 2048 ], "select": 2048 }, "device": { "type": "selector", "options": [ "cpu", "cuda", "hip" ], "select": "cuda" }, "description": "manga-image-translator inpainter" }, "lama_mpe": { "inpaint_size": { "type": "selector", "options": [ 1024, 2048 ], "select": 2048 }, "device": { "type": "selector", "options": [ "cpu", "cuda", "hip" ], "select": "cuda" } } }, "translate_source": "日本語", "translate_target": "русский язык", "check_need_inpaint": true }, "drawpanel": { "pentool_color": [ 0, 0, 0, 255 ], "pentool_width": 30.0, "pentool_shape": 0, "inpainter_width": 41.0, "inpainter_shape": 0, "current_tool": 3, "rectool_auto": true, "rectool_method": 0, "recttool_dilate_ksize": 14 }, "global_fontformat": { "family": "Kurai Voice 2", "size": 18.0, "stroke_width": 0.0, "frgb": [ 0, 0, 0 ], "srgb": [ 255, 255, 255 ], "bold": false, "underline": false, "italic": false, "alignment": 1, "vertical": false, "weight": 400, "line_spacing": 1.2, "letter_spacing": 1.0, "opacity": 1.0, "shadow_radius": 0.0, "shadow_strength": 1.0, "shadow_color": [ 0, 0, 0 ], "shadow_offset": [ 0.0, 0.0 ] }, "recent_proj_list": [ ], "imgtrans_paintmode": false, "imgtrans_textedit": true, "imgtrans_textblock": true, "mask_transparency": 0, "original_transparency": 0, "open_recent_on_startup": true, "let_fntsize_flag": 1, "let_fntstroke_flag": 0, "let_fntcolor_flag": 0, "let_fnt_scolor_flag": 0, "let_fnteffect_flag": 1, "let_alignment_flag": 0, "let_autolayout_flag": true, "let_uppercase_flag": true, "font_presets": { "Default": { "family": "", "size": 16.0, "stroke_width": 0, "frgb": [ 0, 0, 0 ], "srgb": [ 255, 255, 255 ], "bold": false, "underline": false, "italic": false, "alignment": 1, "vertical": false, "weight": 400, "line_spacing": 1.2, "letter_spacing": 1.0, "opacity": 1.0, "shadow_radius": 0.0, "shadow_strength": 1.0, "shadow_color": [ 0, 0, 0 ], "shadow_offset": [ 0.0, 0.0 ] } }, "fsearch_case": false, "fsearch_whole_word": false, "fsearch_regex": false, "fsearch_range": 0, "gsearch_case": true, "gsearch_whole_word": false, "gsearch_regex": false, "gsearch_range": 2, "darkmode": true, "src_link_flag": "", "textselect_mini_menu": true, "fold_textarea": false, "show_source_text": true, "show_trans_text": true, "saladict_shortcut": "Alt+S", "search_url": "https://www.google.com/search?q=", "ocr_sublist": [], "mt_sublist": [], "display_lang": "English" }