Files
pytorch3d/pytorch3d/renderer/__init__.py
Suresh Babu Kolla e17ed5cd50 Hipify Pulsar for PyTorch3D
Summary:
- Hipified Pytorch Pulsar
   - Created separate target for Pulsar tests and enabled RE testing
   - Pytorch3D full test suite requires additional work like fixing EGL
     dependencies on AMD

Reviewed By: danzimm

Differential Revision: D61339912

fbshipit-source-id: 0d10bc966e4de4a959f3834a386bad24e449dc1f
2024-10-09 14:38:42 -07:00

92 lines
2.2 KiB
Python

# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
# pyre-unsafe
import torch
from .blending import (
BlendParams,
hard_rgb_blend,
sigmoid_alpha_blend,
softmax_rgb_blend,
)
from .camera_utils import join_cameras_as_batch, rotate_on_spot
from .cameras import ( # deprecated # deprecated # deprecated # deprecated
camera_position_from_spherical_angles,
CamerasBase,
FoVOrthographicCameras,
FoVPerspectiveCameras,
get_world_to_view_transform,
look_at_rotation,
look_at_view_transform,
OpenGLOrthographicCameras,
OpenGLPerspectiveCameras,
OrthographicCameras,
PerspectiveCameras,
SfMOrthographicCameras,
SfMPerspectiveCameras,
)
from .implicit import (
AbsorptionOnlyRaymarcher,
EmissionAbsorptionRaymarcher,
GridRaysampler,
HarmonicEmbedding,
HeterogeneousRayBundle,
ImplicitRenderer,
MonteCarloRaysampler,
MultinomialRaysampler,
NDCGridRaysampler,
NDCMultinomialRaysampler,
ray_bundle_to_ray_points,
ray_bundle_variables_to_ray_points,
RayBundle,
VolumeRenderer,
VolumeSampler,
)
from .lighting import AmbientLights, diffuse, DirectionalLights, PointLights, specular
from .materials import Materials
from .mesh import (
gouraud_shading,
HardFlatShader,
HardGouraudShader,
HardPhongShader,
MeshRasterizer,
MeshRenderer,
MeshRendererWithFragments,
phong_shading,
RasterizationSettings,
rasterize_meshes,
SoftGouraudShader,
SoftPhongShader,
SoftSilhouetteShader,
SplatterPhongShader,
Textures,
TexturesAtlas,
TexturesUV,
TexturesVertex,
)
from .points import (
AlphaCompositor,
NormWeightedCompositor,
PointsRasterizationSettings,
PointsRasterizer,
PointsRenderer,
PulsarPointsRenderer,
rasterize_points,
)
from .splatter_blend import SplatterBlender
from .utils import (
convert_to_tensors_and_broadcast,
ndc_grid_sample,
ndc_to_grid_sample_coords,
TensorProperties,
)
__all__ = [k for k in globals().keys() if not k.startswith("_")]