Skip to content

Commit b7b0037

Browse files
committed
Update version to 1.4.1 and remove absolute path from config-example.json
1 parent e498aa7 commit b7b0037

2 files changed

Lines changed: 85 additions & 85 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.0
1+
1.4.1

examples/config-example.json

Lines changed: 84 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,86 @@
11
{
2-
"filter_text": null,
3-
"kernel_size": 3,
4-
"mask_dilation_offset": 20,
5-
"translator": {
6-
"translator": "openai_hq",
7-
"target_lang": "CHS",
8-
"no_text_lang_skip": false,
9-
"gpt_config": "../examples/gpt_config-example.yaml",
10-
"high_quality_prompt_path": "dict/prompt_example.json"
11-
},
12-
"ocr": {
13-
"use_mocr_merge": false,
14-
"ocr": "48px",
15-
"use_hybrid_ocr": false,
16-
"secondary_ocr": "mocr",
17-
"min_text_length": 0,
18-
"ignore_bubble": 0,
19-
"prob": 0.001,
20-
"merge_gamma": 0.8,
21-
"merge_sigma": 2.5,
22-
"kernel_size": 3
23-
},
24-
"detector": {
25-
"detector": "default",
26-
"detection_size": 2048,
27-
"text_threshold": 0.7,
28-
"det_rotate": false,
29-
"det_auto_rotate": false,
30-
"det_invert": false,
31-
"det_gamma_correct": false,
32-
"box_threshold": 0.5,
33-
"unclip_ratio": 2.5
34-
},
35-
"inpainter": {
36-
"inpainter": "lama_large",
37-
"inpainting_size": 2048,
38-
"inpainting_precision": "fp32"
39-
},
40-
"render": {
41-
"renderer": "default",
42-
"alignment": "auto",
43-
"disable_font_border": false,
44-
"font_size_offset": 0,
45-
"font_size_minimum": 0,
46-
"direction": "auto",
47-
"uppercase": false,
48-
"lowercase": false,
49-
"gimp_font": "Arial-Unicode-Regular.ttf",
50-
"font_path": "Arial-Unicode-Regular.ttf",
51-
"no_hyphenation": false,
52-
"font_color": ":FFFFFF",
53-
"rtl": true,
54-
"layout_mode": "smart_scaling"
55-
},
56-
"upscale": {
57-
"upscaler": "esrgan",
58-
"revert_upscaling": false
59-
},
60-
"colorizer": {
61-
"colorization_size": 576,
62-
"denoise_sigma": 30,
63-
"colorizer": "none"
64-
},
65-
"cli": {
66-
"verbose": true,
67-
"attempts": -1,
68-
"ignore_errors": false,
69-
"use_gpu": true,
70-
"use_gpu_limited": false,
71-
"context_size": 3,
72-
"format": "webp",
73-
"overwrite": true,
74-
"skip_no_text": false,
75-
"use_mtpe": false,
76-
"save_text": true,
77-
"load_text": false,
78-
"template": false,
79-
"prep_manual": false,
80-
"save_quality": 100,
81-
"batch_size": 1,
82-
"batch_concurrent": false,
83-
"high_quality_batch_size": 3
84-
},
85-
"last_output_path": "D:/xiazai/图片助手(ImageAssistant)_批量图片下载器/output"
2+
"filter_text": null,
3+
"kernel_size": 3,
4+
"mask_dilation_offset": 20,
5+
"translator": {
6+
"translator": "gemini_hq",
7+
"target_lang": "CHS",
8+
"no_text_lang_skip": false,
9+
"gpt_config": "../examples/gpt_config-example.yaml",
10+
"high_quality_prompt_path": "dict/prompt_example.json"
11+
},
12+
"ocr": {
13+
"use_mocr_merge": false,
14+
"ocr": "48px",
15+
"use_hybrid_ocr": false,
16+
"secondary_ocr": "mocr",
17+
"min_text_length": 0,
18+
"ignore_bubble": 0,
19+
"prob": 0.001,
20+
"merge_gamma": 0.8,
21+
"merge_sigma": 2.5,
22+
"kernel_size": 3
23+
},
24+
"detector": {
25+
"detector": "default",
26+
"detection_size": 2048,
27+
"text_threshold": 0.7,
28+
"det_rotate": false,
29+
"det_auto_rotate": false,
30+
"det_invert": false,
31+
"det_gamma_correct": false,
32+
"box_threshold": 0.5,
33+
"unclip_ratio": 2.5
34+
},
35+
"inpainter": {
36+
"inpainter": "lama_large",
37+
"inpainting_size": 2048,
38+
"inpainting_precision": "fp32"
39+
},
40+
"render": {
41+
"renderer": "default",
42+
"alignment": "auto",
43+
"disable_font_border": false,
44+
"font_size_offset": 0,
45+
"font_size_minimum": 0,
46+
"direction": "auto",
47+
"uppercase": false,
48+
"lowercase": false,
49+
"gimp_font": "Arial-Unicode-Regular.ttf",
50+
"font_path": "Arial-Unicode-Regular.ttf",
51+
"no_hyphenation": false,
52+
"font_color": null,
53+
"rtl": true,
54+
"layout_mode": "smart_scaling"
55+
},
56+
"upscale": {
57+
"upscaler": "esrgan",
58+
"revert_upscaling": false
59+
},
60+
"colorizer": {
61+
"colorization_size": 576,
62+
"denoise_sigma": 30,
63+
"colorizer": "none"
64+
},
65+
"cli": {
66+
"verbose": true,
67+
"attempts": -1,
68+
"ignore_errors": false,
69+
"use_gpu": true,
70+
"use_gpu_limited": false,
71+
"context_size": 3,
72+
"format": "不指定",
73+
"overwrite": true,
74+
"skip_no_text": false,
75+
"use_mtpe": false,
76+
"save_text": true,
77+
"load_text": false,
78+
"template": false,
79+
"prep_manual": false,
80+
"save_quality": 100,
81+
"batch_size": 1,
82+
"batch_concurrent": false,
83+
"high_quality_batch_size": 3
84+
},
85+
"last_output_path": null
8686
}

0 commit comments

Comments
 (0)