MCPcopy Create free account
hub / github.com/openai/shap-e / depth_directions

Method depth_directions

shap_e/rendering/view_data.py:98–99  ·  view source on GitHub ↗
(self, coords: np.ndarray)

Source from the content-addressed store, hash-verified

96 return np.stack([np.broadcast_to(self.origin, directions.shape), directions], axis=1)
97
98 def depth_directions(self, coords: np.ndarray) -> np.ndarray:
99 return np.tile((self.z / np.linalg.norm(self.z))[None], [len(coords), 1])
100
101 def resize_image(self, width: int, height: int) -> "ProjectiveCamera":
102 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected