MCPcopy Create free account
hub / github.com/apple/ml-pointersect / get_all_num_pixels

Method get_all_num_pixels

pointersect/data/mesh_dataset_v2.py:171–178  ·  view source on GitHub ↗

Return the number of pixels in each image.

(self)

Source from the content-addressed store, hash-verified

169 self.texture_idxs = None
170
171 def get_all_num_pixels(self) -> T.List[int]:
172 """Return the number of pixels in each image."""
173 n_pxs = []
174 for i in range(len(self.input_cameras)):
175 camera: structures.Camera = self.input_cameras[i]
176 n_px = camera.height_px * camera.width_px
177 n_pxs.append(n_px)
178 return n_pxs
179
180 def _set_camera_defaults(self):
181 """Set the defaults for attributes."""

Callers 2

get_dataloadersMethod · 0.45
get_all_num_pixelsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected