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

Method predict_start_from_z_and_v

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

Source from the content-addressed store, hash-verified

136 return dm_xt
137
138 def predict_start_from_z_and_v(self, x_t, t, v):
139 return (
140 extract_into_tensor(self.sqrt_alphas_cumprod, t, x_t.shape) * x_t -
141 extract_into_tensor(self.sqrt_one_minus_alphas_cumprod, t, x_t.shape) * v
142 )
143
144 def predict_eps_from_z_and_v(self, x_t, t, v):
145 return (

Callers 2

p_sample_ddimMethod · 0.45

Calls 1

extract_into_tensorFunction · 0.90

Tested by

no test coverage detected