(params)
| 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 |
nothing calls this directly
no test coverage detected