MCPcopy Index your code
hub / github.com/CompVis/diff2flow / predict_start_from_eps

Method predict_start_from_eps

diff2flow/flow_obj.py:150–154  ·  view source on GitHub ↗
(self, x_t, t, noise)

Source from the content-addressed store, hash-verified

148 )
149
150 def predict_start_from_eps(self, x_t, t, noise):
151 return (
152 extract_into_tensor(self.sqrt_recip_alphas_cumprod, t, x_t.shape) * x_t -
153 extract_into_tensor(self.sqrt_recipm1_alphas_cumprod, t, x_t.shape) * noise
154 )
155
156 def get_vector_field_from_v(self, v, x_t, t):
157 """

Callers 1

Calls 1

extract_into_tensorFunction · 0.90

Tested by

no test coverage detected