MCPcopy Create free account
hub / github.com/CompVis/diff2flow / __call__

Method __call__

diff2flow/dataset/image_preprocessing.py:24–29  ·  view source on GitHub ↗
(self, sample)

Source from the content-addressed store, hash-verified

22 self.exclude_keys = exclude_keys or []
23
24 def __call__(self, sample):
25 for k, v in sample.items():
26 if k.endswith("_latent") and k not in self.exclude_keys:
27 latent = sample[k]
28 sample[k] = latent / self.divisor
29 return sample
30
31
32class AddNoiseLatent:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected