MCPcopy Create free account
hub / github.com/Sygil-Dev/sygil-webui / __init__

Method __init__

ldm/models/diffusion/kdiffusion.py:7–11  ·  view source on GitHub ↗
(self, m, sampler, callback=None)

Source from the content-addressed store, hash-verified

5
6class KDiffusionSampler:
7 def __init__(self, m, sampler, callback=None):
8 self.model = m
9 self.model_wrap = K.external.CompVisDenoiser(m)
10 self.schedule = sampler
11 self.generation_callback = callback
12
13 def get_sampler_name(self):
14 return self.schedule

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected