Skip to content

Commit

Permalink
Change the return value of synthesis(): now it additionally returns t…
Browse files Browse the repository at this point in the history
…he feature image and triplane.
  • Loading branch information
YanniZhangYZ committed Oct 11, 2023
1 parent c811e35 commit b406383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eg3d/training/triplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def synthesis(self, ws, c, neural_rendering_resolution=None, update_emas=False,
rgb_image = feature_image[:, :3]
sr_image = self.superresolution(rgb_image, feature_image, ws, noise_mode=self.rendering_kwargs['superresolution_noise_mode'], **{k:synthesis_kwargs[k] for k in synthesis_kwargs.keys() if k != 'noise_mode'})

return {'image': sr_image, 'image_raw': rgb_image, 'image_depth': depth_image, 'triplane': planes}
return {'image': sr_image, 'image_raw': rgb_image, 'image_depth': depth_image,'image_feature':feature_image, 'triplane': planes}

def sample(self, coordinates, directions, z, c, truncation_psi=1, truncation_cutoff=None, update_emas=False, **synthesis_kwargs):
# Compute RGB features, density for arbitrary 3D coordinates. Mostly used for extracting shapes.
Expand Down

0 comments on commit b406383

Please sign in to comment.