mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
fix xyz with detailer, sd35 img2img
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -271,11 +271,16 @@ class DiffusionSampler:
|
||||
sampler = constructor(**self.config)
|
||||
accept_sigmas = "sigmas" in set(inspect.signature(sampler.set_timesteps).parameters.keys())
|
||||
accepts_timesteps = "timesteps" in set(inspect.signature(sampler.set_timesteps).parameters.keys())
|
||||
accept_scale_noise = hasattr(sampler, "scale_noise")
|
||||
debug(f'Sampler: sampler="{name}" sigmas={accept_sigmas} timesteps={accepts_timesteps}')
|
||||
if ('Flux' in model.__class__.__name__) and (not accept_sigmas):
|
||||
shared.log.warning(f'Sampler: sampler="{name}" does not accept sigmas')
|
||||
self.sampler = None
|
||||
return
|
||||
if ('StableDiffusion3' in model.__class__.__name__) and (not accept_scale_noise):
|
||||
shared.log.warning(f'Sampler: sampler="{name}" does not implement scale noise')
|
||||
self.sampler = None
|
||||
return
|
||||
self.sampler = sampler
|
||||
if name == 'DC Solver':
|
||||
if not hasattr(self.sampler, 'dc_ratios'):
|
||||
|
||||
Reference in New Issue
Block a user