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

Function process_depth

shap_e/util/data_util.py:229–232  ·  view source on GitHub ↗
(depth_img: np.ndarray, image_size: int)

Source from the content-addressed store, hash-verified

227
228
229def process_depth(depth_img: np.ndarray, image_size: int) -> np.ndarray:
230 depth_img = center_crop(depth_img)
231 depth_img = resize(depth_img, width=image_size, height=image_size)
232 return np.squeeze(depth_img)
233
234
235def process_image(

Callers 1

Calls 2

center_cropFunction · 0.90
resizeFunction · 0.90

Tested by

no test coverage detected