mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 19:21:21 +00:00
revise "send distilled_cfg_scale when generating hires conds"
This commit is contained in:
@@ -1500,7 +1500,12 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
|
|||||||
steps = self.hr_second_pass_steps or self.steps
|
steps = self.hr_second_pass_steps or self.steps
|
||||||
total_steps = sampler_config.total_steps(steps) if sampler_config else steps
|
total_steps = sampler_config.total_steps(steps) if sampler_config else steps
|
||||||
|
|
||||||
self.hr_uc = self.get_conds_with_caching(prompt_parser.get_learned_conditioning, hr_negative_prompts, self.firstpass_steps, [self.cached_hr_uc, self.cached_uc], self.hr_extra_network_data, total_steps)
|
if self.cfg_scale == 1:
|
||||||
|
self.hr_uc = None
|
||||||
|
print('Skipping unconditional conditioning (HR pass) when CFG = 1. Negative Prompts are ignored.')
|
||||||
|
else:
|
||||||
|
self.hr_uc = self.get_conds_with_caching(prompt_parser.get_learned_conditioning, hr_negative_prompts, self.firstpass_steps, [self.cached_hr_uc, self.cached_uc], self.hr_extra_network_data, total_steps)
|
||||||
|
|
||||||
self.hr_c = self.get_conds_with_caching(prompt_parser.get_multicond_learned_conditioning, hr_prompts, self.firstpass_steps, [self.cached_hr_c, self.cached_c], self.hr_extra_network_data, total_steps)
|
self.hr_c = self.get_conds_with_caching(prompt_parser.get_multicond_learned_conditioning, hr_prompts, self.firstpass_steps, [self.cached_hr_c, self.cached_c], self.hr_extra_network_data, total_steps)
|
||||||
|
|
||||||
def setup_conds(self):
|
def setup_conds(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user