File size: 5,991 Bytes
b9d52f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ca76c18
b9d52f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# defaults.py

# Default configuration
DEFAULT_CONFIG = {
    # Core Image Generation Parameters
    "prompt": """aidka as a pirate girl""",
    "negative_prompt": "",
    "batch_size": 1,
    "steps": 20,
    "cfg_scale": 1,
    "distilled_cfg_scale": 3.5,
    "width": 896,
    "height": 1152,
    "sampler_name": "Euler",
    "scheduler": "Simple",

    # Advanced Generation Settings
    "denoising_strength": 0.7,
    "seed": -1,
    "subseed": -1,
    "subseed_strength": 0,
    "seed_enable_extras": True,
    "seed_resize_from_h": -1,
    "seed_resize_from_w": -1,

    # High-res Settings
    "enable_hr": False,
    "hr_scale": 2,
    "hr_upscaler": "Latent",
    "hr_second_pass_steps": 0,
    "hr_resize_x": 0,
    "hr_resize_y": 0,
    "hr_prompt": "",
    "hr_negative_prompt": "",
    "hr_cfg": 1,
    "hr_distilled_cfg": 3.5,
    "hr_additional_modules": ["Use same choices"],

    # Additional Core Settings
    "restore_faces": False,
    "tiling": False,
    "do_not_save_samples": False,
    "do_not_save_grid": False,
    "disable_extra_networks": False,

    # Sampler Settings
    "s_churn": 0,
    "s_min_uncond": 0,
    "s_noise": 1,
    "s_tmax": None,
    "s_tmin": 0,

    # Script Settings
    "script_name": None,
    "script_args": [],
    "styles": [],
    "comments": {},
    "override_settings": {"forge_async_loading": "Queue", "encrypt_image_is_enable": "Yes", "forge_pin_shared_memory": "Shared"},
    "override_settings_restore_afterwards": True,

    # Always-on Scripts Configuration
    "alwayson_scripts": {
        # ADetailer Configuration
        "ADetailer": {
            "args": [True, True, {
                "ad_model": "face_yolov8s.pt",
                "ad_confidence": 0.3,
                "ad_mask_blur": 6,
                "ad_denoising_strength": 0.5,
                "ad_dilate_erode": 32,
                "ad_mask_k": 1,
                "ad_cfg_scale": 7,
                "ad_checkpoint": "Use same checkpoint",
                "ad_clip_skip": 1,
                "ad_controlnet_guidance_end": 1,
                "ad_controlnet_guidance_start": 0,
                "ad_controlnet_model": "None",
                "ad_controlnet_module": "None",
                "ad_controlnet_weight": 1,
                "ad_inpaint_height": 512,
                "ad_inpaint_only_masked": True,
                "ad_inpaint_only_masked_padding": 32,
                "ad_inpaint_width": 512,
                "ad_mask_filter_method": "Area",
                "ad_mask_max_ratio": 1,
                "ad_mask_merge_invert": "None",
                "ad_mask_min_ratio": 0,
                "ad_model_classes": "",
                "ad_negative_prompt": "",
                "ad_noise_multiplier": 1,
                "ad_prompt": "",
                "ad_restore_face": False,
                "ad_sampler": "DPM++ 2M",
                "ad_scheduler": "Use same scheduler",
                "ad_steps": 28,
                "ad_tab_enable": True,
                "ad_use_cfg_scale": False,
                "ad_use_checkpoint": False,
                "ad_use_clip_skip": False,
                "ad_use_inpaint_width_height": True,
                "ad_use_noise_multiplier": False,
                "ad_use_sampler": False,
                "ad_use_steps": False,
                "ad_use_vae": False,
                "ad_vae": "Use same VAE",
                "ad_x_offset": 0,
                "ad_y_offset": 0,
                "is_api": []
            }]
        },

        # ControlNet Configuration
        "ControlNet": {
            "args": [{
                "batch_image_dir": "",
                "batch_input_gallery": None,
                "batch_mask_dir": "",
                "batch_mask_gallery": None,
                "control_mode": "Balanced",
                "enabled": False,
                "generated_image": None,
                "guidance_end": 1.0,
                "guidance_start": 0.0,
                "hr_option": "Both",
                "image": None,
                "image_fg": None,
                "input_mode": "simple",
                "mask_image": None,
                "mask_image_fg": None,
                "model": "None",
                "module": "None",
                "pixel_perfect": False,
                "processor_res": -1,
                "resize_mode": "Crop and Resize",
                "save_detected_map": True,
                "threshold_a": -1,
                "threshold_b": -1,
                "use_preview_as_input": False,
                "weight": 1
            }]
        },

        # Additional Integrated Scripts
        "DynamicThresholding (CFG-Fix) Integrated": {
            "args": [False, 7, 1, "Constant", 0, "Constant", 0, 1, "enable", "MEAN", "AD", 1]
        },
        "Extra options": {
            "args": []
        },
        "FreeU Integrated (SD 1.x, SD 2.x, SDXL)": {
            "args": [False, 1.01, 1.02, 0.99, 0.95, 0, 1]
        },
        "Kohya HRFix Integrated": {
            "args": [False, 3, 2, 0, 0.35, True, "bicubic", "bicubic"]
        },
        "LatentModifier Integrated": {
            "args": [False, 0, "anisotropic", 0, "reinhard", 100, 0, "subtract", 0, 0,
                    "gaussian", "add", 0, 100, 127, 0, "hard_clamp", 5, 0, "None", "None"]
        },
        "MultiDiffusion Integrated": {
            "args": [False, "MultiDiffusion", 768, 768, 64, 4]
        },
        "Never OOM Integrated": {
            "args": [False, False]
        },
        "PerturbedAttentionGuidance Integrated": {
            "args": [False, 3]
        },
        "Refiner": {
            "args": [False, "", 0.8]
        },
        "Sampler": {
            "args": [20, "Euler", "Simple"]
        },
        "Seed": {
            "args": [-1, False, -1, 0, 0, 0]
        },
        "SelfAttentionGuidance Integrated (SD 1.x, SD 2.x, SDXL)": {
            "args": [False, 0.5, 2, 1]
        },
        "StyleAlign Integrated": {
            "args": [False, 1]
        }
    }
}