MCPcopy Create free account
hub / github.com/openai/point-e / output_to_point_clouds

Method output_to_point_clouds

point_e/diffusion/sampler.py:227–237  ·  view source on GitHub ↗
(self, output: torch.Tensor)

Source from the content-addressed store, hash-verified

225 return pos, aux
226
227 def output_to_point_clouds(self, output: torch.Tensor) -> List[PointCloud]:
228 res = []
229 for sample in output:
230 xyz, aux = self.split_model_output(sample[None], rescale_colors=True)
231 res.append(
232 PointCloud(
233 coords=xyz[0].t().cpu().numpy(),
234 channels={k: v[0].cpu().numpy() for k, v in aux.items()},
235 )
236 )
237 return res
238
239 def with_options(
240 self,

Callers

nothing calls this directly

Calls 2

split_model_outputMethod · 0.95
PointCloudClass · 0.90

Tested by

no test coverage detected