garbage / telebot /defaults.py
nseq's picture
Update telebot/defaults.py
ca76c18 verified
# 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]
}
}
}