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

Method predict_eps_from_z_and_v

diff2flow/flow_obj.py:144–148  ·  view source on GitHub ↗
(self, x_t, t, v)

Source from the content-addressed store, hash-verified

142 )
143
144 def predict_eps_from_z_and_v(self, x_t, t, v):
145 return (
146 extract_into_tensor(self.sqrt_alphas_cumprod, t, x_t.shape) * v +
147 extract_into_tensor(self.sqrt_one_minus_alphas_cumprod, t, x_t.shape) * x_t
148 )
149
150 def predict_start_from_eps(self, x_t, t, noise):
151 return (

Callers 2

p_sample_ddimMethod · 0.45

Calls 1

extract_into_tensorFunction · 0.90

Tested by

no test coverage detected