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

Method get_vector_field_from_eps

diff2flow/flow_obj.py:169–180  ·  view source on GitHub ↗

eps is the SD eps-parameterized vector field with the FM vector field is defined as z - eps First of all convert the x_t from the rectified flow trajectory to the original diffusion trajectory Then calculate the vector field from the eps-parameterized vector field

(self, noise, x_t, t)

Source from the content-addressed store, hash-verified

167 return vector_field
168
169 def get_vector_field_from_eps(self, noise, x_t, t):
170 """
171 eps is the SD eps-parameterized vector field with
172 the FM vector field is defined as z - eps
173
174 First of all convert the x_t from the rectified flow trajectory to the original diffusion trajectory
175 Then calculate the vector field from the eps-parameterized vector field
176 """
177 z_pred = self.predict_start_from_eps(x_t, t, noise)
178 eps_pred = noise
179 vector_field = z_pred - eps_pred # z - eps
180 return vector_field
181
182 def forward(self, x, t, **kwargs):
183 """

Callers 1

sample_vtMethod · 0.95

Calls 1

Tested by

no test coverage detected