MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / update

Method update

diffsynth/extensions/FastBlend/patch_match.py:158–163  ·  view source on GitHub ↗
(self, source_guide, target_guide, source_style, target_style, nnf, err, upd_nnf)

Source from the content-addressed store, hash-verified

156 return upd_nnf
157
158 def update(self, source_guide, target_guide, source_style, target_style, nnf, err, upd_nnf):
159 upd_err = self.get_error(source_guide, target_guide, source_style, target_style, upd_nnf)
160 upd_idx = (upd_err < err)
161 nnf[upd_idx] = upd_nnf[upd_idx]
162 err[upd_idx] = upd_err[upd_idx]
163 return nnf, err
164
165 def propagation(self, source_guide, target_guide, source_style, target_style, nnf, err):
166 for d in cp.random.permutation(4):

Callers 4

propagationMethod · 0.95
random_searchMethod · 0.95
trackMethod · 0.95

Calls 1

get_errorMethod · 0.95

Tested by

no test coverage detected