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

Method weights

diff2flow/openai_diffusion/timestep_sampler.py:38–42  ·  view source on GitHub ↗

Get a numpy array of weights, one per diffusion step. The weights needn't be normalized, but must be positive.

(self)

Source from the content-addressed store, hash-verified

36
37 @abstractmethod
38 def weights(self):
39 """
40 Get a numpy array of weights, one per diffusion step.
41 The weights needn't be normalized, but must be positive.
42 """
43
44 def sample(self, batch_size, device):
45 """

Callers 1

sampleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected