MCPcopy
hub / github.com/zju3dv/4K4D / export_interps

Method export_interps

easyvolcap/utils/viewer_utils.py:292–300  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

290 self.update()
291
292 def export_interps(self, path: str):
293 # Store interpolations (animation) to path
294 us = np.linspace(0, 1, self.n_render_views, dtype=np.float32)
295
296 cameras = dotdict()
297 for i, u in enumerate(tqdm(us, desc='Exporting interpolated cameras')):
298 cameras[f'{i:06d}'] = self.interp(u).to_easymocap()
299 write_camera(cameras, path) # without extri.yml, only dirname
300 log(yellow(f'Interpolated cameras saved to: {blue(path)}'))
301
302 def render_imgui(self, viewer: 'VolumetricVideoViewer', batch: dotdict):
303 # from easyvolcap.utils.gl_utils import Mesh

Callers 1

draw_keyframes_guiMethod · 0.80

Calls 7

interpMethod · 0.95
dotdictClass · 0.90
write_cameraFunction · 0.90
yellowFunction · 0.85
blueFunction · 0.85
to_easymocapMethod · 0.80
logFunction · 0.70

Tested by

no test coverage detected