dikdimon commited on
Commit
1e3b975
·
verified ·
1 Parent(s): bc40952

Upload custom-hires-fix-mod-for-automatic1111-2.9 using SD-Hub

Browse files
custom-hires-fix-mod-for-automatic1111-2.9/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
+
custom-hires-fix-mod-for-automatic1111-2.9/config.yaml ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ width: 0
2
+ height: 0
3
+ prompt: ''
4
+ negative_prompt: ''
5
+ steps: 10
6
+ first_upscaler: 2x-AnimeSharpV3
7
+ second_upscaler: SwinIR 4x
8
+ first_latent: 0.54
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: 10
22
+ steps_second: 10
23
+ denoise_first: 0.38
24
+ denoise_second: 0.28
25
+ second_pass_prompt: ''
26
+ second_pass_prompt_append: true
27
+ filter_mode: Noise sync (sharp)
28
+ latent_resample_mode: nearest
29
+ noise_schedule_mode: Use sampler default
30
+ adaptive_sigma_enable: false
31
+ sampler_first: Restart
32
+ sampler_second: Euler Negative Dy
33
+ scheduler_first: Karras Dynamic
34
+ scheduler_second: Beta
35
+ restore_scheduler_after: true
36
+ cfg: 4.0
37
+ cfg_second_pass_boost: true
38
+ cfg_second_pass_delta: -2.0
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: true
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: true
70
+ sdxl_denoise_boost: 0.1
71
+ second_custom_size_enable: true
72
+ second_width: 1040
73
+ second_height: 1520
custom-hires-fix-mod-for-automatic1111-2.9/scripts/__pycache__/custom_hires_fix.cpython-310.pyc ADDED
Binary file (69.1 kB). View file
 
custom-hires-fix-mod-for-automatic1111-2.9/scripts/custom_hires_fix.py ADDED
The diff for this file is too large to render. See raw diff