MCPcopy Create free account
hub / github.com/Filarius/video2video / callback

Method callback

scripts/vid2vid.py:154–161  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

152 self.latentmem = LatentMemory(interp_factor=sfactor,scale_factor=sexp)
153 if not self.is_have_callback:
154 def callback(params):#CFGDenoiserParams
155 self.latentmem.put(params.x)
156 if self.latentmem.flushed:
157 latent = self.latentmem.get()
158 params.x = self.latentmem.interpolate(params.x, latent)
159
160 if params.sampling_step == params.total_sampling_steps-2:
161 self.latentmem.flush()
162
163 on_cfg_denoiser(callback)
164 self.is_have_callback = True

Callers

nothing calls this directly

Calls 4

putMethod · 0.80
getMethod · 0.80
interpolateMethod · 0.80
flushMethod · 0.80

Tested by

no test coverage detected