dikdimon commited on
Commit
aa97ba2
·
verified ·
1 Parent(s): 2190bbe

Upload !1-custom-hires-fix-mod-for-automatic1111-2.9.5 using SD-Hub

Browse files
!1-custom-hires-fix-mod-for-automatic1111-2.9.5/README.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Custom Hires Fix (webui Extension)
2
+ ## Webui Extension for customizing highres fix and improve details (currently separated from original highres fix)
3
+
4
+
5
+ #### Update 16.10.23:
6
+ - added ControlNet support: choose preprocessor/model in CN settings, but don't enable unit
7
+ - added Lora support: put Lora in extension prompt to enable Lora only for upscaling, put Lora in negative prompt to disable active Lora
8
+
9
+ #### Update 02.07.23:
10
+ - code rewritten again
11
+ - simplified settings
12
+ - fixed batch generation and image saving
13
+
14
+ #### Update 13.06.23:
15
+ - added gaussian noise instead of random
16
+
17
+ #### Update 29.05.23:
18
+ - added ToMe optomization in second pass, latest Auto1111 update required, controlled via "Token merging ratio for high-res pass" in settings
19
+ - added "Sharp" setting, should be used only with "Smoothness" if image is too blurry
20
+
21
+ #### Update 12.05.23:
22
+ - added smoothness for negative, completely fix ghosting/smears/dirt on flat colors with high denoising
23
+
24
+ #### Update 02.04.23:
25
+ ###### Don't forget to clear ui-config.json!
26
+ - upscale separated from original high-res fix
27
+ - now works with img2img
28
+ - many fixes
29
+
!1-custom-hires-fix-mod-for-automatic1111-2.9.5/__pycache__/logging_utils.cpython-310.pyc ADDED
Binary file (483 Bytes). View file
 
!1-custom-hires-fix-mod-for-automatic1111-2.9.5/config.yaml ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ width: 1120
2
+ height: 1440
3
+ prompt: ''
4
+ negative_prompt: ''
5
+ steps: 13
6
+ first_upscaler: R-ESRGAN 4x+ Anime6B
7
+ second_upscaler: R-ESRGAN 4x+ Anime6B
8
+ first_latent: 0.0
9
+ second_latent: 0.0
10
+ strength: 0.0
11
+ filter: Noise sync (sharp)
12
+ filter_offset: 0.0
13
+ denoise_offset: 0.0
14
+ clip_skip: 0
15
+ sampler: Euler Dy
16
+ cn_ref: false
17
+ start_control_at: 0.0
18
+ enable: true
19
+ ratio: 0.0
20
+ long_edge: 0
21
+ steps_first: 12
22
+ steps_second: 13
23
+ denoise_first: 0.38
24
+ denoise_second: 0.33
25
+ second_pass_prompt: ''
26
+ second_pass_prompt_append: true
27
+ filter_mode: Noise sync (sharp)
28
+ latent_resample_mode: bicubic
29
+ noise_schedule_mode: Use sampler default
30
+ adaptive_sigma_enable: false
31
+ sampler_first: Euler_Dy
32
+ sampler_second: Euler_Smea
33
+ scheduler_first: Karras Dynamic
34
+ scheduler_second: Karras Exponential v3
35
+ restore_scheduler_after: true
36
+ cfg: 3.0
37
+ cfg_second_pass_boost: true
38
+ cfg_second_pass_delta: 1.7
39
+ reuse_seed_noise: false
40
+ mp_target_enabled: false
41
+ mp_target: 2.0
42
+ cond_cache_enabled: false
43
+ cond_cache_max: 64
44
+ vae_tiling_enabled: false
45
+ seamless_tiling_enabled: false
46
+ tile_overlap: 12
47
+ lora_weight_first_factor: 1.0
48
+ lora_weight_second_factor: 1.0
49
+ match_colors_preset: 'Off'
50
+ match_colors_enabled: false
51
+ match_colors_strength: 0.5
52
+ postfx_preset: 'Off'
53
+ clahe_enabled: false
54
+ clahe_clip: 2.0
55
+ clahe_tile_grid: 8
56
+ unsharp_enabled: false
57
+ unsharp_radius: 1.5
58
+ unsharp_amount: 0.75
59
+ unsharp_threshold: 0
60
+ cn_proc_res_cap: 1024
61
+ final_upscale_enable: false
62
+ final_upscaler: R-ESRGAN 4x+
63
+ final_scale: 4.0
64
+ final_tile: 512
65
+ final_tile_overlap: 16
66
+ first_latent_invert: false
67
+ deep_shrink_enable: false
68
+ deep_shrink_strength: 0.5
69
+ sdxl_mode: false
70
+ sdxl_denoise_boost: 0.1
71
+ second_custom_size_enable: true
72
+ second_width: 1389
73
+ second_height: 1786
74
+ latent_resample_enable: true
75
+ reuse_noise_cache: false
76
+ legacy_cfg_handling: false
77
+ cleanup_noise_overrides: false
78
+ noise_cache_max: 16
79
+ stop_mode: 'Off'
80
+ stop_first_at: 0
81
+ stop_second_at: 0
82
+ latent_resample_mode_first: nearest-exact
83
+ latent_resample_mode_second: nearest-exact
84
+ median_enabled: false
85
+ median_radius: 3
86
+ median_amount: 0.5
87
+ bilateral_enabled: false
88
+ bilateral_diameter: 5
89
+ bilateral_sigma_color: 75.0
90
+ bilateral_sigma_space: 75.0
91
+ postfx_order:
92
+ - Match colors
93
+ - CLAHE
94
+ - Unsharp
95
+ - Sharpen (median)
96
+ - Bilateral smooth
!1-custom-hires-fix-mod-for-automatic1111-2.9.5/logging_utils.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import logging
2
+
3
+ logger = logging.getLogger("custom_hires_fix")
4
+ if not logger.handlers:
5
+ handler = logging.StreamHandler()
6
+ formatter = logging.Formatter("[Custom Hires Fix] %(levelname)s: %(message)s")
7
+ handler.setFormatter(formatter)
8
+ logger.addHandler(handler)
9
+ logger.setLevel(logging.INFO)
10
+
11
+ __all__ = ["logger"]
!1-custom-hires-fix-mod-for-automatic1111-2.9.5/scripts/!!custom_hires_fix.py ADDED
The diff for this file is too large to render. See raw diff
 
!1-custom-hires-fix-mod-for-automatic1111-2.9.5/scripts/__pycache__/!!custom_hires_fix.cpython-310.pyc ADDED
Binary file (94.4 kB). View file
 
!1-custom-hires-fix-mod-for-automatic1111-2.9.5/scripts/__pycache__/#custom_hires_fix.cpython-310.pyc ADDED
Binary file (94.4 kB). View file
 
!1-custom-hires-fix-mod-for-automatic1111-2.9.5/scripts/__pycache__/custom_hires_fix.cpython-310.pyc ADDED
Binary file (89.8 kB). View file