MCPcopy
hub / github.com/SizheAn/PanoHead / mapping

Method mapping

training/triplane.py:53–56  ·  view source on GitHub ↗
(self, z, c, truncation_psi=1, truncation_cutoff=None, update_emas=False)

Source from the content-addressed store, hash-verified

51
52
53 def mapping(self, z, c, truncation_psi=1, truncation_cutoff=None, update_emas=False):
54 if self.rendering_kwargs['c_gen_conditioning_zero']:
55 c = torch.zeros_like(c)
56 return self.backbone.mapping(z, c * self.rendering_kwargs.get('c_scale', 0), truncation_psi=truncation_psi, truncation_cutoff=truncation_cutoff, update_emas=update_emas)
57
58 # camera pose self_adaptation mapping, return c after added t_vector
59 def apply_delta_c(self, z, c, truncation_psi=1, truncation_cutoff=None, update_emas=False):

Callers 15

sampleMethod · 0.95
forwardMethod · 0.95
gen_interp_videoFunction · 0.80
generate_imagesFunction · 0.80
generate_imagesFunction · 0.80
projectFunction · 0.80
gen_interp_videoFunction · 0.80
projectFunction · 0.80
generate_imagesFunction · 0.80
generate_imagesFunction · 0.80
forwardMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected