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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"module": {
|
3 |
+
"textdetector": "ctd",
|
4 |
+
"ocr": "manga_ocr",
|
5 |
+
"inpainter": "lama_mpe",
|
6 |
+
"translator": "DeepL",
|
7 |
+
"enable_ocr": true,
|
8 |
+
"enable_translate": true,
|
9 |
+
"enable_inpaint": true,
|
10 |
+
"textdetector_params": {
|
11 |
+
"ctd": {
|
12 |
+
"detect_size": {
|
13 |
+
"type": "selector",
|
14 |
+
"options": [
|
15 |
+
1024,
|
16 |
+
1152,
|
17 |
+
1280
|
18 |
+
],
|
19 |
+
"select": "1280"
|
20 |
+
},
|
21 |
+
"det_rearrange_max_batches": {
|
22 |
+
"type": "selector",
|
23 |
+
"options": [
|
24 |
+
1,
|
25 |
+
2,
|
26 |
+
4,
|
27 |
+
6,
|
28 |
+
8,
|
29 |
+
12,
|
30 |
+
16,
|
31 |
+
24,
|
32 |
+
32
|
33 |
+
],
|
34 |
+
"select": 4
|
35 |
+
},
|
36 |
+
"device": {
|
37 |
+
"type": "selector",
|
38 |
+
"options": [
|
39 |
+
"cpu",
|
40 |
+
"cuda",
|
41 |
+
"hip"
|
42 |
+
],
|
43 |
+
"select": "cuda"
|
44 |
+
},
|
45 |
+
"description": "ComicTextDetector"
|
46 |
+
}
|
47 |
+
},
|
48 |
+
"ocr_params": {
|
49 |
+
"mit32px": {
|
50 |
+
"chunk_size": {
|
51 |
+
"type": "selector",
|
52 |
+
"options": [
|
53 |
+
8,
|
54 |
+
16,
|
55 |
+
24,
|
56 |
+
32
|
57 |
+
],
|
58 |
+
"select": 16
|
59 |
+
},
|
60 |
+
"device": {
|
61 |
+
"type": "selector",
|
62 |
+
"options": [
|
63 |
+
"cpu",
|
64 |
+
"cuda",
|
65 |
+
"hip"
|
66 |
+
],
|
67 |
+
"select": "cuda"
|
68 |
+
},
|
69 |
+
"description": "OCRMIT32px"
|
70 |
+
},
|
71 |
+
"manga_ocr": {
|
72 |
+
"device": {
|
73 |
+
"type": "selector",
|
74 |
+
"options": [
|
75 |
+
"cpu",
|
76 |
+
"cuda",
|
77 |
+
"hip"
|
78 |
+
],
|
79 |
+
"select": "cuda"
|
80 |
+
}
|
81 |
+
},
|
82 |
+
"mit48px_ctc": {
|
83 |
+
"chunk_size": {
|
84 |
+
"type": "selector",
|
85 |
+
"options": [
|
86 |
+
8,
|
87 |
+
16,
|
88 |
+
24,
|
89 |
+
32
|
90 |
+
],
|
91 |
+
"select": "24"
|
92 |
+
},
|
93 |
+
"device": {
|
94 |
+
"type": "selector",
|
95 |
+
"options": [
|
96 |
+
"cpu",
|
97 |
+
"cuda",
|
98 |
+
"hip"
|
99 |
+
],
|
100 |
+
"select": "cuda"
|
101 |
+
},
|
102 |
+
"description": "mit48px_ctc"
|
103 |
+
}
|
104 |
+
},
|
105 |
+
"translator_params": {
|
106 |
+
"Baidu": {
|
107 |
+
"token": "",
|
108 |
+
"appId": "",
|
109 |
+
"delay": "0.0"
|
110 |
+
},
|
111 |
+
"Caiyun": {
|
112 |
+
"token": "",
|
113 |
+
"delay": "0.0"
|
114 |
+
},
|
115 |
+
"ChatGPT": {
|
116 |
+
"api key": "",
|
117 |
+
"model": {
|
118 |
+
"type": "selector",
|
119 |
+
"options": [
|
120 |
+
"gpt3",
|
121 |
+
"gpt35-turbo",
|
122 |
+
"gpt4"
|
123 |
+
],
|
124 |
+
"select": "gpt35-turbo"
|
125 |
+
},
|
126 |
+
"prompt template": {
|
127 |
+
"type": "editor",
|
128 |
+
"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"
|
129 |
+
},
|
130 |
+
"chat system template": {
|
131 |
+
"type": "editor",
|
132 |
+
"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}."
|
133 |
+
},
|
134 |
+
"chat sample": {
|
135 |
+
"type": "editor",
|
136 |
+
"content": "日本語-简体中文:\n source:\n - 二人のちゅーを 目撃した ぼっちちゃん\n - ふたりさん\n - 大好きなお友達には あいさつ代わりに ちゅーするんだって\n - アイス あげた\n - 喜多ちゃんとは どどど どういった ご関係なのでしようか...\n - テレビで見た!\n target:\n - 小孤独目击了两人的接吻\n - 二里酱\n - 我听说人们会把亲吻作为与喜爱的朋友打招呼��方式\n - 我给了她冰激凌\n - 喜多酱和你是怎么样的关系啊...\n - 我在电视上看到的!"
|
137 |
+
},
|
138 |
+
"invalid repeat count": 2,
|
139 |
+
"max requests per minute": 20,
|
140 |
+
"delay": 0.3,
|
141 |
+
"max tokens": 4096,
|
142 |
+
"temperature": 0.5,
|
143 |
+
"top p": 1,
|
144 |
+
"retry attempts": 5,
|
145 |
+
"3rd party api url": ""
|
146 |
+
},
|
147 |
+
"DeepL": {
|
148 |
+
"api_key": "",
|
149 |
+
"delay": "0.0"
|
150 |
+
},
|
151 |
+
"DeepL Free": {
|
152 |
+
"delay": "0.0"
|
153 |
+
},
|
154 |
+
"google": {
|
155 |
+
"delay": "0.0"
|
156 |
+
},
|
157 |
+
"Papago": {
|
158 |
+
"delay": "0.0"
|
159 |
+
},
|
160 |
+
"Sugoi": {
|
161 |
+
"device": {
|
162 |
+
"type": "selector",
|
163 |
+
"options": [
|
164 |
+
"cpu",
|
165 |
+
"cuda"
|
166 |
+
],
|
167 |
+
"select": "cpu"
|
168 |
+
}
|
169 |
+
},
|
170 |
+
"Yandex": {
|
171 |
+
"api_key": "",
|
172 |
+
"delay": "0.0"
|
173 |
+
}
|
174 |
+
},
|
175 |
+
"inpainter_params": {
|
176 |
+
"opencv-tela": null,
|
177 |
+
"patchmatch": null,
|
178 |
+
"aot": {
|
179 |
+
"inpaint_size": {
|
180 |
+
"type": "selector",
|
181 |
+
"options": [
|
182 |
+
1024,
|
183 |
+
2048
|
184 |
+
],
|
185 |
+
"select": 2048
|
186 |
+
},
|
187 |
+
"device": {
|
188 |
+
"type": "selector",
|
189 |
+
"options": [
|
190 |
+
"cpu",
|
191 |
+
"cuda",
|
192 |
+
"hip"
|
193 |
+
],
|
194 |
+
"select": "cuda"
|
195 |
+
},
|
196 |
+
"description": "manga-image-translator inpainter"
|
197 |
+
},
|
198 |
+
"lama_mpe": {
|
199 |
+
"inpaint_size": {
|
200 |
+
"type": "selector",
|
201 |
+
"options": [
|
202 |
+
1024,
|
203 |
+
2048
|
204 |
+
],
|
205 |
+
"select": "2048"
|
206 |
+
},
|
207 |
+
"device": {
|
208 |
+
"type": "selector",
|
209 |
+
"options": [
|
210 |
+
"cpu",
|
211 |
+
"cuda",
|
212 |
+
"hip"
|
213 |
+
],
|
214 |
+
"select": "cuda"
|
215 |
+
}
|
216 |
+
}
|
217 |
+
},
|
218 |
+
"translate_source": "日本語",
|
219 |
+
"translate_target": "русский язык",
|
220 |
+
"check_need_inpaint": true
|
221 |
+
},
|
222 |
+
"drawpanel": {
|
223 |
+
"pentool_color": [
|
224 |
+
0,
|
225 |
+
0,
|
226 |
+
0,
|
227 |
+
255
|
228 |
+
],
|
229 |
+
"pentool_width": 30.0,
|
230 |
+
"pentool_shape": 0,
|
231 |
+
"inpainter_width": 1000.0,
|
232 |
+
"inpainter_shape": 0,
|
233 |
+
"current_tool": 1,
|
234 |
+
"rectool_auto": false,
|
235 |
+
"rectool_method": 0,
|
236 |
+
"recttool_dilate_ksize": 0
|
237 |
+
},
|
238 |
+
"global_fontformat": {
|
239 |
+
"family": "Microsoft YaHei UI",
|
240 |
+
"size": 24,
|
241 |
+
"stroke_width": 0,
|
242 |
+
"frgb": [
|
243 |
+
0,
|
244 |
+
0,
|
245 |
+
0
|
246 |
+
],
|
247 |
+
"srgb": [
|
248 |
+
0,
|
249 |
+
0,
|
250 |
+
0
|
251 |
+
],
|
252 |
+
"bold": false,
|
253 |
+
"underline": false,
|
254 |
+
"italic": false,
|
255 |
+
"alignment": 0,
|
256 |
+
"vertical": false,
|
257 |
+
"weight": 50,
|
258 |
+
"line_spacing": 1.2,
|
259 |
+
"letter_spacing": 1.0,
|
260 |
+
"opacity": 1.0,
|
261 |
+
"shadow_radius": 0.0,
|
262 |
+
"shadow_strength": 1.0,
|
263 |
+
"shadow_color": [
|
264 |
+
0,
|
265 |
+
0,
|
266 |
+
0
|
267 |
+
],
|
268 |
+
"shadow_offset": [
|
269 |
+
0,
|
270 |
+
0
|
271 |
+
]
|
272 |
+
},
|
273 |
+
"recent_proj_list": [
|
274 |
+
],
|
275 |
+
"imgtrans_paintmode": false,
|
276 |
+
"imgtrans_textedit": true,
|
277 |
+
"imgtrans_textblock": true,
|
278 |
+
"mask_transparency": 0,
|
279 |
+
"original_transparency": 0,
|
280 |
+
"open_recent_on_startup": true,
|
281 |
+
"let_fntsize_flag": 0,
|
282 |
+
"let_fntstroke_flag": 0,
|
283 |
+
"let_fntcolor_flag": 0,
|
284 |
+
"let_fnt_scolor_flag": 0,
|
285 |
+
"let_fnteffect_flag": 1,
|
286 |
+
"let_alignment_flag": 0,
|
287 |
+
"let_autolayout_flag": true,
|
288 |
+
"let_uppercase_flag": true,
|
289 |
+
"font_presets": {},
|
290 |
+
"fsearch_case": false,
|
291 |
+
"fsearch_whole_word": false,
|
292 |
+
"fsearch_regex": false,
|
293 |
+
"fsearch_range": 0,
|
294 |
+
"gsearch_case": false,
|
295 |
+
"gsearch_whole_word": false,
|
296 |
+
"gsearch_regex": false,
|
297 |
+
"gsearch_range": 0,
|
298 |
+
"darkmode": true,
|
299 |
+
"src_link_flag": "",
|
300 |
+
"textselect_mini_menu": true,
|
301 |
+
"saladict_shortcut": "Alt+S",
|
302 |
+
"search_url": "https://www.google.com/search?q=",
|
303 |
+
"ocr_sublist": [],
|
304 |
+
"mt_sublist": [],
|
305 |
+
"display_lang": "ru_RU"
|
306 |
+
}
|