File size: 10,937 Bytes
1f77393
 
 
 
 
 
0831bda
1f77393
0831bda
1f77393
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0831bda
1f77393
 
 
 
 
 
 
 
 
 
 
0831bda
 
 
 
 
 
 
 
 
 
 
1f77393
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0831bda
1f77393
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0831bda
1f77393
0831bda
 
1f77393
0831bda
1f77393
 
0831bda
 
 
1f77393
 
 
 
 
 
0831bda
 
 
1f77393
 
 
 
0831bda
1f77393
0831bda
1f77393
 
 
 
 
 
 
 
 
 
 
0831bda
 
1f77393
 
 
0831bda
1f77393
 
 
 
 
 
 
0831bda
1f77393
 
 
 
 
 
 
0831bda
 
4560497
0831bda
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1f77393
 
 
 
0831bda
1f77393
 
0831bda
1f77393
 
 
0831bda
 
 
1f77393
 
 
 
0831bda
1f77393
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
{
    "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"
}