def METHOD_NAME(self, data_dir, render_dir):
    if self.data_type == 'blender':
        self.test_dataset = BlenderDataset(
            root_fp=data_dir,
            split='test',
            img_wh=self.img_wh,
        )
    elif self.data_type == 'colmap':
        self.test_dataset = ColmapDataset(
            root_fp=data_dir,
            split='test',
            img_wh=self.img_wh,
            max_size=self.max_size,
            n_test_traj_steps=self.n_test_traj_steps,
        )
    tic_start = time.time()
    os.makedirs(render_dir, exist_ok=True)
    logger.info('save render path: {}.'.format(render_dir))
    self.render_video(render_dir)
    tic_end = time.time()
    duration = tic_end - tic_start
    logger.info('reconstruction done, cost time: {}'.format(duration))