MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / MeshDecoderOutput

Class MeshDecoderOutput

src/diffusers/pipelines/shap_e/renderer.py:467–482  ·  view source on GitHub ↗

A 3D triangle mesh with optional data at the vertices and faces. Args: verts (`torch.Tensor` of shape `(N, 3)`): array of vertext coordinates faces (`torch.Tensor` of shape `(N, 3)`): array of triangles, pointing to indices in verts. vertext_

Source from the content-addressed store, hash-verified

465
466@dataclass
467class MeshDecoderOutput(BaseOutput):
468 """
469 A 3D triangle mesh with optional data at the vertices and faces.
470
471 Args:
472 verts (`torch.Tensor` of shape `(N, 3)`):
473 array of vertext coordinates
474 faces (`torch.Tensor` of shape `(N, 3)`):
475 array of triangles, pointing to indices in verts.
476 vertext_channels (Dict):
477 vertext coordinates for each color channel
478 """
479
480 verts: torch.Tensor
481 faces: torch.Tensor
482 vertex_channels: Dict[str, torch.Tensor]
483
484
485class MeshDecoder(nn.Module):

Callers 1

forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected