MCPcopy Create free account
hub / github.com/openai/improved-diffusion / get_feature_vectors

Method get_feature_vectors

improved_diffusion/unet.py:542–546  ·  view source on GitHub ↗
(self, x, timesteps, low_res=None, **kwargs)

Source from the content-addressed store, hash-verified

540 return super().forward(x, timesteps, **kwargs)
541
542 def get_feature_vectors(self, x, timesteps, low_res=None, **kwargs):
543 _, new_height, new_width, _ = x.shape
544 upsampled = F.interpolate(low_res, (new_height, new_width), mode="bilinear")
545 x = th.cat([x, upsampled], dim=1)
546 return super().get_feature_vectors(x, timesteps, **kwargs)
547

Callers

nothing calls this directly

Calls 1

get_feature_vectorsMethod · 0.45

Tested by

no test coverage detected