MCPcopy
hub / github.com/TencentARC/Pixal3D / to

Method to

pixal3d/pipelines/pixal3d_image_to_3d.py:137–142  ·  view source on GitHub ↗
(self, device: torch.device)

Source from the content-addressed store, hash-verified

135 return pipeline
136
137 def to(self, device: torch.device) -> None:
138 self._device = device
139 if not self.low_vram:
140 super().to(device)
141 if self.rembg_model is not None:
142 self.rembg_model.to(device)
143
144 def preprocess_image(self, input: Image.Image, bg_color: tuple = (0, 0, 0)) -> Image.Image:
145 """

Callers 10

preprocess_imageMethod · 0.45
get_proj_cond_ssMethod · 0.45
get_proj_cond_shapeMethod · 0.45
sample_shape_slatMethod · 0.45
decode_shape_slatMethod · 0.45
sample_tex_slatMethod · 0.45
decode_tex_slatMethod · 0.45
runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected