MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / extend

Method extend

detrsmpl/core/cameras/cameras.py:221–236  ·  view source on GitHub ↗

Create new camera class which contains each input camera N times. Args: N: number of new copies of each camera. Returns: MMCamerasBase object.

(self, N)

Source from the content-addressed store, hash-verified

219 device=self.device)
220
221 def extend(self, N) -> 'MMCamerasBase':
222 """Create new camera class which contains each input camera N times.
223
224 Args:
225 N: number of new copies of each camera.
226
227 Returns:
228 MMCamerasBase object.
229 """
230 return self.__class__(K=self.K.repeat(N, 1, 1),
231 R=self.R.repeat(N, 1, 1),
232 T=self.T.repeat(N, 1),
233 image_size=self.get_image_size(),
234 in_ndc=self.in_ndc(),
235 convention='pytorch3d',
236 device=self.device)
237
238 def extend_(self, N):
239 """extend camera inplace."""

Callers 15

images_to_sorted_imagesFunction · 0.45
images_to_gifFunction · 0.45
__getitem__Method · 0.45
evaluateMethod · 0.45
evaluateMethod · 0.45
evaluateMethod · 0.45
_report_ihmrMethod · 0.45
evaluateMethod · 0.45
_report_ihmrMethod · 0.45
single_gpu_testFunction · 0.45
multi_gpu_testFunction · 0.45
collect_results_cpuFunction · 0.45

Calls 2

get_image_sizeMethod · 0.95
in_ndcMethod · 0.80

Tested by 4

single_gpu_testFunction · 0.36
multi_gpu_testFunction · 0.36
collect_results_cpuFunction · 0.36
collect_results_gpuFunction · 0.36