From af93f348341da0696e30299d390ad0c4f5d22499 Mon Sep 17 00:00:00 2001 From: Patrick Labatut Date: Tue, 22 Jun 2021 03:44:27 -0700 Subject: [PATCH] License lint codebase Summary: License lint codebase Reviewed By: theschnitz Differential Revision: D29001799 fbshipit-source-id: 5c59869911785b0181b1663bbf430bc8b7fb2909 --- .circleci/build_count.py | 6 +++++- .circleci/check.sh | 6 +++++- .circleci/regenerate.py | 6 +++++- LICENSE | 2 +- README.md | 2 +- dev/linter.sh | 6 +++++- dev/run_tutorials.sh | 6 +++++- docs/conf.py | 6 +++++- docs/examples/pulsar_basic.py | 7 ++++++- docs/examples/pulsar_basic_unified.py | 7 ++++++- docs/examples/pulsar_cam.py | 7 ++++++- docs/examples/pulsar_cam_unified.py | 7 ++++++- docs/examples/pulsar_multiview.py | 7 ++++++- docs/examples/pulsar_optimization.py | 7 ++++++- docs/examples/pulsar_optimization_unified.py | 7 ++++++- docs/tutorials/utils/__init__.py | 6 +++++- docs/tutorials/utils/camera_visualization.py | 6 +++++- docs/tutorials/utils/generate_cow_renders.py | 6 +++++- docs/tutorials/utils/plot_image_grid.py | 6 +++++- packaging/build_conda.sh | 7 ++++++- packaging/build_wheel.sh | 7 ++++++- packaging/conda/build_pytorch3d.sh | 7 ++++++- packaging/conda/install_conda.bat | 6 ++++++ packaging/conda/switch_cuda_version.sh | 7 ++++++- packaging/linux_wheels/after.sh | 7 ++++++- packaging/linux_wheels/go.sh | 7 ++++++- packaging/linux_wheels/inside.sh | 7 ++++++- packaging/linux_wheels/publish.py | 7 ++++++- packaging/vs2017/activate.bat | 7 ++++++- packaging/vs2017/install_activate.bat | 7 ++++++- packaging/vs2017/install_runtime.bat | 7 ++++++- packaging/vs2019/activate.bat | 7 ++++++- packaging/vs2019/install_activate.bat | 7 ++++++- packaging/vs2019/install_runtime.bat | 7 ++++++- projects/nerf/__init__.py | 6 +++++- projects/nerf/nerf/__init__.py | 6 +++++- projects/nerf/nerf/dataset.py | 7 ++++++- projects/nerf/nerf/eval_video_utils.py | 7 ++++++- projects/nerf/nerf/harmonic_embedding.py | 7 ++++++- projects/nerf/nerf/implicit_function.py | 7 ++++++- projects/nerf/nerf/linear_with_repeat.py | 7 ++++++- projects/nerf/nerf/nerf_renderer.py | 7 ++++++- projects/nerf/nerf/raymarcher.py | 7 ++++++- projects/nerf/nerf/raysampler.py | 7 ++++++- projects/nerf/nerf/stats.py | 7 ++++++- projects/nerf/nerf/utils.py | 7 ++++++- projects/nerf/test_nerf.py | 7 ++++++- projects/nerf/tests/__init__.py | 6 +++++- projects/nerf/tests/test_raymarcher.py | 6 +++++- projects/nerf/tests/test_raysampler.py | 6 +++++- projects/nerf/train_nerf.py | 7 ++++++- pytorch3d/__init__.py | 6 +++++- pytorch3d/common/__init__.py | 6 +++++- pytorch3d/common/types.py | 6 +++++- pytorch3d/csrc/blending/sigmoid_alpha_blend.cu | 8 +++++++- pytorch3d/csrc/blending/sigmoid_alpha_blend.h | 8 +++++++- pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.cpp | 8 +++++++- pytorch3d/csrc/compositing/alpha_composite.cu | 8 +++++++- pytorch3d/csrc/compositing/alpha_composite.h | 8 +++++++- pytorch3d/csrc/compositing/alpha_composite_cpu.cpp | 8 +++++++- pytorch3d/csrc/compositing/norm_weighted_sum.cu | 8 +++++++- pytorch3d/csrc/compositing/norm_weighted_sum.h | 8 +++++++- pytorch3d/csrc/compositing/norm_weighted_sum_cpu.cpp | 8 +++++++- pytorch3d/csrc/compositing/weighted_sum.cu | 8 +++++++- pytorch3d/csrc/compositing/weighted_sum.h | 8 +++++++- pytorch3d/csrc/compositing/weighted_sum_cpu.cpp | 8 +++++++- pytorch3d/csrc/ext.cpp | 8 +++++++- .../csrc/face_areas_normals/face_areas_normals.cu | 8 +++++++- pytorch3d/csrc/face_areas_normals/face_areas_normals.h | 8 +++++++- .../csrc/face_areas_normals/face_areas_normals_cpu.cpp | 8 +++++++- pytorch3d/csrc/gather_scatter/gather_scatter.cu | 8 +++++++- pytorch3d/csrc/gather_scatter/gather_scatter.h | 8 +++++++- pytorch3d/csrc/gather_scatter/gather_scatter_cpu.cpp | 8 +++++++- pytorch3d/csrc/interp_face_attrs/interp_face_attrs.cu | 8 +++++++- pytorch3d/csrc/interp_face_attrs/interp_face_attrs.h | 8 +++++++- pytorch3d/csrc/knn/knn.cu | 8 +++++++- pytorch3d/csrc/knn/knn.h | 8 +++++++- pytorch3d/csrc/knn/knn_cpu.cpp | 8 +++++++- .../mesh_normal_consistency/mesh_normal_consistency.h | 8 +++++++- .../mesh_normal_consistency_cpu.cpp | 8 +++++++- .../packed_to_padded_tensor/packed_to_padded_tensor.cu | 8 +++++++- .../packed_to_padded_tensor/packed_to_padded_tensor.h | 8 +++++++- .../packed_to_padded_tensor_cpu.cpp | 8 +++++++- pytorch3d/csrc/point_mesh/point_mesh_cpu.cpp | 8 +++++++- pytorch3d/csrc/point_mesh/point_mesh_cuda.cu | 8 +++++++- pytorch3d/csrc/point_mesh/point_mesh_cuda.h | 8 +++++++- pytorch3d/csrc/pulsar/constants.h | 9 ++++++++- pytorch3d/csrc/pulsar/cuda/commands.h | 9 ++++++++- pytorch3d/csrc/pulsar/cuda/renderer.backward.gpu.cu | 9 ++++++++- .../csrc/pulsar/cuda/renderer.backward_dbg.gpu.cu | 9 ++++++++- .../csrc/pulsar/cuda/renderer.calc_gradients.gpu.cu | 9 ++++++++- .../csrc/pulsar/cuda/renderer.calc_signature.gpu.cu | 9 ++++++++- pytorch3d/csrc/pulsar/cuda/renderer.construct.gpu.cu | 9 ++++++++- .../csrc/pulsar/cuda/renderer.create_selector.gpu.cu | 9 ++++++++- pytorch3d/csrc/pulsar/cuda/renderer.destruct.gpu.cu | 9 ++++++++- pytorch3d/csrc/pulsar/cuda/renderer.fill_bg.gpu.cu | 9 ++++++++- pytorch3d/csrc/pulsar/cuda/renderer.forward.gpu.cu | 9 ++++++++- .../pulsar/cuda/renderer.norm_cam_gradients.gpu.cu | 9 ++++++++- .../pulsar/cuda/renderer.norm_sphere_gradients.gpu.cu | 9 ++++++++- pytorch3d/csrc/pulsar/cuda/renderer.render.gpu.cu | 9 ++++++++- pytorch3d/csrc/pulsar/global.h | 9 ++++++++- pytorch3d/csrc/pulsar/host/commands.h | 9 ++++++++- pytorch3d/csrc/pulsar/host/renderer.backward.cpu.cpp | 9 ++++++++- .../csrc/pulsar/host/renderer.backward_dbg.cpu.cpp | 9 ++++++++- .../csrc/pulsar/host/renderer.calc_gradients.cpu.cpp | 9 ++++++++- .../csrc/pulsar/host/renderer.calc_signature.cpu.cpp | 9 ++++++++- pytorch3d/csrc/pulsar/host/renderer.construct.cpu.cpp | 9 ++++++++- .../csrc/pulsar/host/renderer.create_selector.cpu.cpp | 9 ++++++++- pytorch3d/csrc/pulsar/host/renderer.destruct.cpu.cpp | 9 ++++++++- pytorch3d/csrc/pulsar/host/renderer.fill_bg.cpu.cpp | 9 ++++++++- pytorch3d/csrc/pulsar/host/renderer.forward.cpu.cpp | 9 ++++++++- .../pulsar/host/renderer.norm_cam_gradients.cpu.cpp | 9 ++++++++- .../pulsar/host/renderer.norm_sphere_gradients.cpu.cpp | 9 ++++++++- pytorch3d/csrc/pulsar/host/renderer.render.cpu.cpp | 9 ++++++++- pytorch3d/csrc/pulsar/include/camera.device.h | 9 ++++++++- pytorch3d/csrc/pulsar/include/camera.h | 9 ++++++++- .../pulsar/include/closest_sphere_tracker.device.h | 9 ++++++++- pytorch3d/csrc/pulsar/include/commands.h | 9 ++++++++- pytorch3d/csrc/pulsar/include/fastermath.h | 1 + pytorch3d/csrc/pulsar/include/math.h | 9 ++++++++- .../csrc/pulsar/include/renderer.backward.device.h | 9 ++++++++- .../pulsar/include/renderer.backward.instantiate.h | 9 ++++++++- .../csrc/pulsar/include/renderer.backward_dbg.device.h | 9 ++++++++- .../pulsar/include/renderer.backward_dbg.instantiate.h | 9 ++++++++- .../pulsar/include/renderer.calc_gradients.device.h | 9 ++++++++- .../include/renderer.calc_gradients.instantiate.h | 9 ++++++++- .../pulsar/include/renderer.calc_signature.device.h | 9 ++++++++- .../include/renderer.calc_signature.instantiate.h | 9 ++++++++- .../csrc/pulsar/include/renderer.construct.device.h | 9 ++++++++- .../pulsar/include/renderer.construct.instantiate.h | 9 ++++++++- .../pulsar/include/renderer.create_selector.device.h | 9 ++++++++- .../include/renderer.create_selector.instantiate.h | 9 ++++++++- .../csrc/pulsar/include/renderer.destruct.device.h | 9 ++++++++- .../pulsar/include/renderer.destruct.instantiate.h | 9 ++++++++- pytorch3d/csrc/pulsar/include/renderer.draw.device.h | 9 ++++++++- .../csrc/pulsar/include/renderer.fill_bg.device.h | 9 ++++++++- .../csrc/pulsar/include/renderer.fill_bg.instantiate.h | 9 ++++++++- .../csrc/pulsar/include/renderer.forward.device.h | 9 ++++++++- .../csrc/pulsar/include/renderer.forward.instantiate.h | 9 ++++++++- .../pulsar/include/renderer.get_screen_area.device.h | 9 ++++++++- pytorch3d/csrc/pulsar/include/renderer.h | 9 ++++++++- .../include/renderer.norm_cam_gradients.device.h | 9 ++++++++- .../include/renderer.norm_cam_gradients.instantiate.h | 9 ++++++++- .../include/renderer.norm_sphere_gradients.device.h | 9 ++++++++- .../renderer.norm_sphere_gradients.instantiate.h | 9 ++++++++- pytorch3d/csrc/pulsar/include/renderer.render.device.h | 9 ++++++++- .../csrc/pulsar/include/renderer.render.instantiate.h | 9 ++++++++- pytorch3d/csrc/pulsar/logging.h | 9 ++++++++- pytorch3d/csrc/pulsar/pytorch/camera.cpp | 9 ++++++++- pytorch3d/csrc/pulsar/pytorch/camera.h | 9 ++++++++- pytorch3d/csrc/pulsar/pytorch/renderer.cpp | 9 ++++++++- pytorch3d/csrc/pulsar/pytorch/renderer.h | 9 ++++++++- pytorch3d/csrc/pulsar/pytorch/tensor_util.cpp | 9 ++++++++- pytorch3d/csrc/pulsar/pytorch/tensor_util.h | 9 ++++++++- pytorch3d/csrc/pulsar/pytorch/util.cpp | 9 ++++++++- pytorch3d/csrc/pulsar/pytorch/util.h | 9 ++++++++- pytorch3d/csrc/pulsar/warnings.cpp | 9 ++++++++- pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu | 8 +++++++- pytorch3d/csrc/rasterize_meshes/rasterize_meshes.h | 8 +++++++- .../csrc/rasterize_meshes/rasterize_meshes_cpu.cpp | 8 +++++++- pytorch3d/csrc/rasterize_points/bitmask.cuh | 8 +++++++- .../csrc/rasterize_points/rasterization_utils.cuh | 8 +++++++- pytorch3d/csrc/rasterize_points/rasterization_utils.h | 8 +++++++- pytorch3d/csrc/rasterize_points/rasterize_points.cu | 8 +++++++- pytorch3d/csrc/rasterize_points/rasterize_points.h | 8 +++++++- .../csrc/rasterize_points/rasterize_points_cpu.cpp | 8 +++++++- pytorch3d/csrc/utils/dispatch.cuh | 10 ++++++++-- pytorch3d/csrc/utils/float_math.cuh | 8 +++++++- pytorch3d/csrc/utils/geometry_utils.cuh | 8 +++++++- pytorch3d/csrc/utils/geometry_utils.h | 8 +++++++- pytorch3d/csrc/utils/index_utils.cuh | 8 +++++++- pytorch3d/csrc/utils/mink.cuh | 8 +++++++- pytorch3d/csrc/utils/pytorch3d_cutils.h | 8 +++++++- pytorch3d/csrc/utils/vec2.h | 8 +++++++- pytorch3d/csrc/utils/vec3.h | 8 +++++++- pytorch3d/csrc/utils/warp_reduce.cuh | 8 +++++++- pytorch3d/datasets/__init__.py | 6 +++++- pytorch3d/datasets/r2n2/__init__.py | 6 +++++- pytorch3d/datasets/r2n2/r2n2.py | 6 +++++- pytorch3d/datasets/r2n2/utils.py | 7 ++++++- pytorch3d/datasets/shapenet/__init__.py | 6 +++++- pytorch3d/datasets/shapenet/shapenet_core.py | 6 +++++- pytorch3d/datasets/shapenet_base.py | 6 +++++- pytorch3d/datasets/utils.py | 7 ++++++- pytorch3d/io/__init__.py | 6 +++++- pytorch3d/io/experimental_gltf_io.py | 6 ++++-- pytorch3d/io/mtl_io.py | 6 +++++- pytorch3d/io/obj_io.py | 6 +++++- pytorch3d/io/off_io.py | 6 ++++-- pytorch3d/io/pluggable.py | 6 ++++-- pytorch3d/io/pluggable_formats.py | 6 ++++-- pytorch3d/io/ply_io.py | 6 ++++-- pytorch3d/io/utils.py | 6 +++++- pytorch3d/loss/__init__.py | 6 +++++- pytorch3d/loss/chamfer.py | 6 +++++- pytorch3d/loss/mesh_edge_loss.py | 6 +++++- pytorch3d/loss/mesh_laplacian_smoothing.py | 6 +++++- pytorch3d/loss/mesh_normal_consistency.py | 6 +++++- pytorch3d/loss/point_mesh_distance.py | 6 +++++- pytorch3d/ops/__init__.py | 6 +++++- pytorch3d/ops/cameras_alignment.py | 6 +++++- pytorch3d/ops/cubify.py | 6 +++++- pytorch3d/ops/graph_conv.py | 6 +++++- pytorch3d/ops/interp_face_attrs.py | 6 +++++- pytorch3d/ops/knn.py | 6 +++++- pytorch3d/ops/marching_cubes.py | 6 +++++- pytorch3d/ops/marching_cubes_data.py | 6 +++++- pytorch3d/ops/mesh_face_areas_normals.py | 6 +++++- pytorch3d/ops/mesh_filtering.py | 7 ++++++- pytorch3d/ops/packed_to_padded.py | 6 +++++- pytorch3d/ops/perspective_n_points.py | 6 +++++- pytorch3d/ops/points_alignment.py | 6 +++++- pytorch3d/ops/points_normals.py | 6 +++++- pytorch3d/ops/points_to_volumes.py | 7 ++++++- pytorch3d/ops/sample_points_from_meshes.py | 6 +++++- pytorch3d/ops/subdivide_meshes.py | 6 +++++- pytorch3d/ops/utils.py | 7 ++++++- pytorch3d/ops/vert_align.py | 6 +++++- pytorch3d/renderer/__init__.py | 6 +++++- pytorch3d/renderer/blending.py | 6 +++++- pytorch3d/renderer/camera_utils.py | 6 +++++- pytorch3d/renderer/cameras.py | 6 +++++- pytorch3d/renderer/compositing.py | 6 +++++- pytorch3d/renderer/implicit/__init__.py | 6 +++++- pytorch3d/renderer/implicit/raymarching.py | 7 ++++++- pytorch3d/renderer/implicit/raysampling.py | 7 ++++++- pytorch3d/renderer/implicit/renderer.py | 7 ++++++- pytorch3d/renderer/implicit/utils.py | 7 ++++++- pytorch3d/renderer/lighting.py | 6 +++++- pytorch3d/renderer/materials.py | 6 +++++- pytorch3d/renderer/mesh/__init__.py | 6 +++++- pytorch3d/renderer/mesh/clip.py | 6 +++++- pytorch3d/renderer/mesh/rasterize_meshes.py | 6 +++++- pytorch3d/renderer/mesh/rasterizer.py | 6 +++++- pytorch3d/renderer/mesh/renderer.py | 6 +++++- pytorch3d/renderer/mesh/shader.py | 6 +++++- pytorch3d/renderer/mesh/shading.py | 6 +++++- pytorch3d/renderer/mesh/textures.py | 6 +++++- pytorch3d/renderer/mesh/utils.py | 6 +++++- pytorch3d/renderer/points/__init__.py | 6 +++++- pytorch3d/renderer/points/compositor.py | 6 +++++- pytorch3d/renderer/points/pulsar/__init__.py | 7 ++++++- pytorch3d/renderer/points/pulsar/renderer.py | 7 ++++++- pytorch3d/renderer/points/pulsar/unified.py | 7 ++++++- pytorch3d/renderer/points/rasterize_points.py | 6 +++++- pytorch3d/renderer/points/rasterizer.py | 6 +++++- pytorch3d/renderer/points/renderer.py | 7 ++++++- pytorch3d/renderer/utils.py | 6 +++++- pytorch3d/structures/__init__.py | 6 +++++- pytorch3d/structures/meshes.py | 6 +++++- pytorch3d/structures/pointclouds.py | 6 +++++- pytorch3d/structures/utils.py | 6 +++++- pytorch3d/structures/volumes.py | 6 +++++- pytorch3d/transforms/__init__.py | 6 +++++- pytorch3d/transforms/math.py | 7 ++++++- pytorch3d/transforms/rotation_conversions.py | 6 +++++- pytorch3d/transforms/se3.py | 6 +++++- pytorch3d/transforms/so3.py | 6 +++++- pytorch3d/transforms/transform3d.py | 6 +++++- pytorch3d/utils/__init__.py | 6 +++++- pytorch3d/utils/camera_conversions.py | 6 ++++++ pytorch3d/utils/ico_sphere.py | 6 +++++- pytorch3d/utils/torus.py | 6 +++++- pytorch3d/vis/__init__.py | 6 +++++- pytorch3d/vis/plotly_vis.py | 6 +++++- pytorch3d/vis/texture_vis.py | 7 ++++++- scripts/build_website.sh | 6 +++++- scripts/parse_tutorials.py | 6 +++++- scripts/publish_website.sh | 6 +++++- setup.py | 6 +++++- tests/__init__.py | 6 +++++- tests/bm_acos_linear_extrapolation.py | 6 +++++- tests/bm_barycentric_clipping.py | 6 +++++- tests/bm_blending.py | 6 +++++- tests/bm_cameras_alignment.py | 6 +++++- tests/bm_chamfer.py | 6 +++++- tests/bm_cubify.py | 6 +++++- tests/bm_face_areas_normals.py | 6 +++++- tests/bm_graph_conv.py | 6 +++++- tests/bm_interpolate_face_attributes.py | 6 +++++- tests/bm_knn.py | 6 +++++- tests/bm_lighting.py | 6 +++++- tests/bm_main.py | 6 +++++- tests/bm_marching_cubes.py | 6 +++++- tests/bm_mesh_edge_loss.py | 6 +++++- tests/bm_mesh_io.py | 6 +++++- tests/bm_mesh_laplacian_smoothing.py | 6 +++++- tests/bm_mesh_normal_consistency.py | 6 +++++- tests/bm_mesh_rasterizer_transform.py | 6 +++++- tests/bm_meshes.py | 6 +++++- tests/bm_packed_to_padded.py | 6 +++++- tests/bm_perspective_n_points.py | 6 +++++- tests/bm_point_mesh_distance.py | 6 +++++- tests/bm_pointclouds.py | 6 +++++- tests/bm_points_alignment.py | 6 +++++- tests/bm_points_to_volumes.py | 6 +++++- tests/bm_pulsar.py | 7 ++++++- tests/bm_rasterize_meshes.py | 6 +++++- tests/bm_rasterize_points.py | 6 +++++- tests/bm_raymarching.py | 6 +++++- tests/bm_raysampling.py | 6 +++++- tests/bm_render_implicit.py | 6 +++++- tests/bm_render_volumes.py | 6 +++++- tests/bm_sample_points_from_meshes.py | 6 +++++- tests/bm_se3.py | 6 +++++- tests/bm_so3.py | 6 +++++- tests/bm_subdivide_meshes.py | 6 +++++- tests/bm_vert_align.py | 6 +++++- tests/common_testing.py | 6 +++++- tests/pulsar/__init__.py | 6 +++++- tests/pulsar/create_multiview.py | 7 ++++++- tests/pulsar/test_channels.py | 7 ++++++- tests/pulsar/test_depth.py | 7 ++++++- tests/pulsar/test_forward.py | 7 ++++++- tests/pulsar/test_hands.py | 7 ++++++- tests/pulsar/test_ortho.py | 7 ++++++- tests/pulsar/test_small_spheres.py | 7 ++++++- tests/test_acos_linear_extrapolation.py | 6 +++++- tests/test_blending.py | 6 +++++- tests/test_build.py | 7 ++++++- tests/test_camera_conversions.py | 6 +++++- tests/test_camera_utils.py | 6 +++++- tests/test_cameras.py | 8 ++++++-- tests/test_cameras_alignment.py | 6 +++++- tests/test_chamfer.py | 6 +++++- tests/test_common_testing.py | 6 +++++- tests/test_compositing.py | 6 +++++- tests/test_cubify.py | 6 +++++- tests/test_face_areas_normals.py | 6 +++++- tests/test_graph_conv.py | 6 +++++- tests/test_interpolate_face_attributes.py | 6 +++++- tests/test_io_gltf.py | 6 +++++- tests/test_io_obj.py | 6 +++++- tests/test_io_off.py | 6 +++++- tests/test_io_ply.py | 6 +++++- tests/test_knn.py | 6 +++++- tests/test_lighting.py | 6 +++++- tests/test_marching_cubes.py | 7 ++++++- tests/test_materials.py | 6 +++++- tests/test_mesh_edge_loss.py | 6 +++++- tests/test_mesh_filtering.py | 6 +++++- tests/test_mesh_laplacian_smoothing.py | 6 +++++- tests/test_mesh_normal_consistency.py | 6 +++++- tests/test_mesh_rendering_utils.py | 6 +++++- tests/test_meshes.py | 6 +++++- tests/test_ops_utils.py | 7 ++++++- tests/test_packed_to_padded.py | 6 +++++- tests/test_perspective_n_points.py | 6 +++++- tests/test_point_mesh_distance.py | 6 +++++- tests/test_pointclouds.py | 6 +++++- tests/test_points_alignment.py | 6 +++++- tests/test_points_normals.py | 6 +++++- tests/test_points_to_volumes.py | 7 ++++++- tests/test_r2n2.py | 7 ++++++- tests/test_rasterize_meshes.py | 6 +++++- tests/test_rasterize_points.py | 6 +++++- tests/test_rasterize_rectangle_images.py | 6 +++++- tests/test_rasterizer.py | 6 +++++- tests/test_raymarching.py | 6 +++++- tests/test_raysampling.py | 6 +++++- tests/test_render_implicit.py | 7 ++++++- tests/test_render_meshes.py | 6 +++++- tests/test_render_meshes_clipped.py | 6 +++++- tests/test_render_multigpu.py | 6 +++++- tests/test_render_points.py | 6 +++++- tests/test_render_volumes.py | 7 ++++++- tests/test_rendering_utils.py | 6 +++++- tests/test_rotation_conversions.py | 6 +++++- tests/test_sample_points_from_meshes.py | 6 +++++- tests/test_se3.py | 6 +++++- tests/test_shader.py | 6 +++++- tests/test_shapenet_core.py | 7 ++++++- tests/test_so3.py | 6 +++++- tests/test_struct_utils.py | 6 +++++- tests/test_subdivide_meshes.py | 6 +++++- tests/test_texturing.py | 6 +++++- tests/test_transforms.py | 6 +++++- tests/test_vert_align.py | 6 +++++- tests/test_volumes.py | 7 ++++++- website/core/Footer.js | 6 +++++- website/core/Tutorial.js | 5 +++++ website/core/TutorialSidebar.js | 5 +++++ website/pages/en/help.js | 8 ++++++-- website/pages/en/index.js | 8 ++++++-- website/pages/en/users.js | 7 +++++-- website/pages/tutorials/index.js | 7 ++++++- website/siteConfig.js | 1 + website/static/css/custom.css | 7 +++++-- website/static/css/pygments.css | 6 +++++- 389 files changed, 2308 insertions(+), 394 deletions(-) diff --git a/.circleci/build_count.py b/.circleci/build_count.py index 2a59b741..a00abce7 100644 --- a/.circleci/build_count.py +++ b/.circleci/build_count.py @@ -1,5 +1,9 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. """ Print the number of nightly builds diff --git a/.circleci/check.sh b/.circleci/check.sh index 113afd50..9630dc24 100644 --- a/.circleci/check.sh +++ b/.circleci/check.sh @@ -1,5 +1,9 @@ #!/bin/bash -e -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. # Run this script before committing config.yml to verify it is valid yaml. diff --git a/.circleci/regenerate.py b/.circleci/regenerate.py index 3099e812..7781ba0b 100755 --- a/.circleci/regenerate.py +++ b/.circleci/regenerate.py @@ -1,5 +1,9 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. """ This script is adapted from the torchvision one. diff --git a/LICENSE b/LICENSE index 73e4e88e..dc73e2d2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -BSD 3-Clause License +BSD License For PyTorch3D software diff --git a/README.md b/README.md index 437c94b3..a1f30ab3 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ For detailed instructions refer to [INSTALL.md](INSTALL.md). ## License -PyTorch3D is released under the [BSD-3-Clause License](LICENSE). +PyTorch3D is released under the [BSD License](LICENSE). ## Tutorials diff --git a/dev/linter.sh b/dev/linter.sh index 300efd87..47779095 100755 --- a/dev/linter.sh +++ b/dev/linter.sh @@ -1,5 +1,9 @@ #!/bin/bash -e -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. # Run this script at project root by "./dev/linter.sh" before you commit diff --git a/dev/run_tutorials.sh b/dev/run_tutorials.sh index c9370eff..a3947af5 100644 --- a/dev/run_tutorials.sh +++ b/dev/run_tutorials.sh @@ -1,5 +1,9 @@ #!/usr/bin/bash -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. # This script is for running some of the tutorials using the nightly build in # an isolated environment. It is designed to be run in docker. diff --git a/docs/conf.py b/docs/conf.py index bf139755..b2e87e9e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,5 +1,9 @@ # -*- coding: utf-8 -*- -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. # flake8: noqa diff --git a/docs/examples/pulsar_basic.py b/docs/examples/pulsar_basic.py index 1cd5f8cd..1163772c 100755 --- a/docs/examples/pulsar_basic.py +++ b/docs/examples/pulsar_basic.py @@ -1,5 +1,10 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """ This example demonstrates the most trivial, direct interface of the pulsar sphere renderer. It renders and saves an image with 10 random spheres. diff --git a/docs/examples/pulsar_basic_unified.py b/docs/examples/pulsar_basic_unified.py index d0237270..7bfe35bf 100755 --- a/docs/examples/pulsar_basic_unified.py +++ b/docs/examples/pulsar_basic_unified.py @@ -1,5 +1,10 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """ This example demonstrates the most trivial use of the pulsar PyTorch3D interface for sphere renderering. It renders and saves an image with diff --git a/docs/examples/pulsar_cam.py b/docs/examples/pulsar_cam.py index 036c718e..d4fff4d3 100755 --- a/docs/examples/pulsar_cam.py +++ b/docs/examples/pulsar_cam.py @@ -1,5 +1,10 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """ This example demonstrates camera parameter optimization with the plain pulsar interface. For this, a reference image has been pre-generated diff --git a/docs/examples/pulsar_cam_unified.py b/docs/examples/pulsar_cam_unified.py index 578b891a..7e718a52 100755 --- a/docs/examples/pulsar_cam_unified.py +++ b/docs/examples/pulsar_cam_unified.py @@ -1,5 +1,10 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """ This example demonstrates camera parameter optimization with the pulsar PyTorch3D interface. For this, a reference image has been pre-generated diff --git a/docs/examples/pulsar_multiview.py b/docs/examples/pulsar_multiview.py index 26889a11..859c73c2 100755 --- a/docs/examples/pulsar_multiview.py +++ b/docs/examples/pulsar_multiview.py @@ -1,5 +1,10 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """ This example demonstrates multiview 3D reconstruction using the plain pulsar interface. For this, reference images have been pre-generated diff --git a/docs/examples/pulsar_optimization.py b/docs/examples/pulsar_optimization.py index 5bd64424..9449fa5f 100755 --- a/docs/examples/pulsar_optimization.py +++ b/docs/examples/pulsar_optimization.py @@ -1,5 +1,10 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """ This example demonstrates scene optimization with the plain pulsar interface. For this, a reference image has been pre-generated diff --git a/docs/examples/pulsar_optimization_unified.py b/docs/examples/pulsar_optimization_unified.py index abcc5d85..ba987fb7 100755 --- a/docs/examples/pulsar_optimization_unified.py +++ b/docs/examples/pulsar_optimization_unified.py @@ -1,5 +1,10 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """ This example demonstrates scene optimization with the PyTorch3D pulsar interface. For this, a reference image has been pre-generated diff --git a/docs/tutorials/utils/__init__.py b/docs/tutorials/utils/__init__.py index 8e3bf5ec..6a02fead 100644 --- a/docs/tutorials/utils/__init__.py +++ b/docs/tutorials/utils/__init__.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from .camera_visualization import get_camera_wireframe, plot_camera_scene, plot_cameras from .plot_image_grid import image_grid diff --git a/docs/tutorials/utils/camera_visualization.py b/docs/tutorials/utils/camera_visualization.py index 2a846715..aa0fb37a 100644 --- a/docs/tutorials/utils/camera_visualization.py +++ b/docs/tutorials/utils/camera_visualization.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D # noqa: F401 unused import diff --git a/docs/tutorials/utils/generate_cow_renders.py b/docs/tutorials/utils/generate_cow_renders.py index 2a05c7d9..65f885d0 100644 --- a/docs/tutorials/utils/generate_cow_renders.py +++ b/docs/tutorials/utils/generate_cow_renders.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import os diff --git a/docs/tutorials/utils/plot_image_grid.py b/docs/tutorials/utils/plot_image_grid.py index 7af8e167..726a3096 100644 --- a/docs/tutorials/utils/plot_image_grid.py +++ b/docs/tutorials/utils/plot_image_grid.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import matplotlib.pyplot as plt diff --git a/packaging/build_conda.sh b/packaging/build_conda.sh index 18230c67..aa1ba2e0 100755 --- a/packaging/build_conda.sh +++ b/packaging/build_conda.sh @@ -1,5 +1,10 @@ #!/bin/bash -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + set -ex script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" diff --git a/packaging/build_wheel.sh b/packaging/build_wheel.sh index 68c1ab3c..12dbc176 100755 --- a/packaging/build_wheel.sh +++ b/packaging/build_wheel.sh @@ -1,5 +1,10 @@ #!/bin/bash -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + set -ex script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" diff --git a/packaging/conda/build_pytorch3d.sh b/packaging/conda/build_pytorch3d.sh index e0dcf2e9..ec0dcbc5 100755 --- a/packaging/conda/build_pytorch3d.sh +++ b/packaging/conda/build_pytorch3d.sh @@ -1,5 +1,10 @@ #!/usr/bin/env bash -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + if [[ -x "/remote/anaconda_token" ]]; then . /remote/anaconda_token || true fi diff --git a/packaging/conda/install_conda.bat b/packaging/conda/install_conda.bat index c8200b6f..b629bf57 100644 --- a/packaging/conda/install_conda.bat +++ b/packaging/conda/install_conda.bat @@ -1,2 +1,8 @@ +@REM Copyright (c) Facebook, Inc. and its affiliates. +@REM All rights reserved. +@REM +@REM This source code is licensed under the BSD-style license found in the +@REM LICENSE file in the root directory of this source tree. + :: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. start /wait "" "%miniconda_exe%" /S /InstallationType=JustMe /RegisterPython=0 /AddToPath=0 /D=%tmp_conda% diff --git a/packaging/conda/switch_cuda_version.sh b/packaging/conda/switch_cuda_version.sh index 05fa5249..a9496ed2 100755 --- a/packaging/conda/switch_cuda_version.sh +++ b/packaging/conda/switch_cuda_version.sh @@ -1,5 +1,10 @@ #!/usr/bin/env bash -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + if [[ "$OSTYPE" == "msys" ]]; then CUDA_DIR="/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v$1" else diff --git a/packaging/linux_wheels/after.sh b/packaging/linux_wheels/after.sh index 51de777e..8c178691 100644 --- a/packaging/linux_wheels/after.sh +++ b/packaging/linux_wheels/after.sh @@ -1,5 +1,10 @@ #!/usr/bin/bash -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + set -ex sudo chown -R "$USER" output python publish.py diff --git a/packaging/linux_wheels/go.sh b/packaging/linux_wheels/go.sh index 28cdbf3b..45c4261e 100644 --- a/packaging/linux_wheels/go.sh +++ b/packaging/linux_wheels/go.sh @@ -1,3 +1,8 @@ #!/usr/bin/bash -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + sudo docker run --rm -v "$PWD/../../:/inside" pytorch/conda-cuda bash inside/packaging/linux_wheels/inside.sh diff --git a/packaging/linux_wheels/inside.sh b/packaging/linux_wheels/inside.sh index 4ca4b48d..47c54c9b 100644 --- a/packaging/linux_wheels/inside.sh +++ b/packaging/linux_wheels/inside.sh @@ -1,5 +1,10 @@ #!/bin/bash -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + set -ex conda init bash diff --git a/packaging/linux_wheels/publish.py b/packaging/linux_wheels/publish.py index b2a09193..21d6df04 100644 --- a/packaging/linux_wheels/publish.py +++ b/packaging/linux_wheels/publish.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import os import subprocess from pathlib import Path diff --git a/packaging/vs2017/activate.bat b/packaging/vs2017/activate.bat index b95e10c7..b9f970c5 100644 --- a/packaging/vs2017/activate.bat +++ b/packaging/vs2017/activate.bat @@ -1,4 +1,9 @@ -:: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +@REM Copyright (c) Facebook, Inc. and its affiliates. +@REM All rights reserved. +@REM +@REM This source code is licensed under the BSD-style license found in the +@REM LICENSE file in the root directory of this source tree. + :: Set env vars that tell distutils to use the compiler that we put on path SET DISTUTILS_USE_SDK=1 SET MSSdk=1 diff --git a/packaging/vs2017/install_activate.bat b/packaging/vs2017/install_activate.bat index fdbb7212..70103174 100644 --- a/packaging/vs2017/install_activate.bat +++ b/packaging/vs2017/install_activate.bat @@ -1,4 +1,9 @@ -:: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +@REM Copyright (c) Facebook, Inc. and its affiliates. +@REM All rights reserved. +@REM +@REM This source code is licensed under the BSD-style license found in the +@REM LICENSE file in the root directory of this source tree. + set YEAR=2017 set VER=15 diff --git a/packaging/vs2017/install_runtime.bat b/packaging/vs2017/install_runtime.bat index f0749d44..143a24da 100644 --- a/packaging/vs2017/install_runtime.bat +++ b/packaging/vs2017/install_runtime.bat @@ -1,4 +1,9 @@ -:: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +@REM Copyright (c) Facebook, Inc. and its affiliates. +@REM All rights reserved. +@REM +@REM This source code is licensed under the BSD-style license found in the +@REM LICENSE file in the root directory of this source tree. + set VC_PATH=x86 if "%ARCH%"=="64" ( set VC_PATH=x64 diff --git a/packaging/vs2019/activate.bat b/packaging/vs2019/activate.bat index 660551a8..ff199a33 100644 --- a/packaging/vs2019/activate.bat +++ b/packaging/vs2019/activate.bat @@ -1,4 +1,9 @@ -:: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +@REM Copyright (c) Facebook, Inc. and its affiliates. +@REM All rights reserved. +@REM +@REM This source code is licensed under the BSD-style license found in the +@REM LICENSE file in the root directory of this source tree. + :: Set env vars that tell distutils to use the compiler that we put on path SET DISTUTILS_USE_SDK=1 SET MSSdk=1 diff --git a/packaging/vs2019/install_activate.bat b/packaging/vs2019/install_activate.bat index 70ef1831..34817885 100644 --- a/packaging/vs2019/install_activate.bat +++ b/packaging/vs2019/install_activate.bat @@ -1,4 +1,9 @@ -:: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +@REM Copyright (c) Facebook, Inc. and its affiliates. +@REM All rights reserved. +@REM +@REM This source code is licensed under the BSD-style license found in the +@REM LICENSE file in the root directory of this source tree. + set YEAR=2019 set VER=16 diff --git a/packaging/vs2019/install_runtime.bat b/packaging/vs2019/install_runtime.bat index 21c939dd..d7009203 100644 --- a/packaging/vs2019/install_runtime.bat +++ b/packaging/vs2019/install_runtime.bat @@ -1,4 +1,9 @@ -:: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +@REM Copyright (c) Facebook, Inc. and its affiliates. +@REM All rights reserved. +@REM +@REM This source code is licensed under the BSD-style license found in the +@REM LICENSE file in the root directory of this source tree. + set VC_PATH=x86 if "%ARCH%"=="64" ( set VC_PATH=x64 diff --git a/projects/nerf/__init__.py b/projects/nerf/__init__.py index 40539064..10a55772 100644 --- a/projects/nerf/__init__.py +++ b/projects/nerf/__init__.py @@ -1 +1,5 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. diff --git a/projects/nerf/nerf/__init__.py b/projects/nerf/nerf/__init__.py index 40539064..10a55772 100644 --- a/projects/nerf/nerf/__init__.py +++ b/projects/nerf/nerf/__init__.py @@ -1 +1,5 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. diff --git a/projects/nerf/nerf/dataset.py b/projects/nerf/nerf/dataset.py index f9e82e50..91ef8bdd 100644 --- a/projects/nerf/nerf/dataset.py +++ b/projects/nerf/nerf/dataset.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import os from typing import List, Optional, Tuple diff --git a/projects/nerf/nerf/eval_video_utils.py b/projects/nerf/nerf/eval_video_utils.py index c31e31f9..b35dde73 100644 --- a/projects/nerf/nerf/eval_video_utils.py +++ b/projects/nerf/nerf/eval_video_utils.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import math from typing import Tuple diff --git a/projects/nerf/nerf/harmonic_embedding.py b/projects/nerf/nerf/harmonic_embedding.py index fc47d11b..2aab985e 100644 --- a/projects/nerf/nerf/harmonic_embedding.py +++ b/projects/nerf/nerf/harmonic_embedding.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import torch diff --git a/projects/nerf/nerf/implicit_function.py b/projects/nerf/nerf/implicit_function.py index f07cec2c..82cdc4cc 100644 --- a/projects/nerf/nerf/implicit_function.py +++ b/projects/nerf/nerf/implicit_function.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + from typing import Tuple import torch diff --git a/projects/nerf/nerf/linear_with_repeat.py b/projects/nerf/nerf/linear_with_repeat.py index efdc0321..5f23e6b3 100644 --- a/projects/nerf/nerf/linear_with_repeat.py +++ b/projects/nerf/nerf/linear_with_repeat.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + from typing import Tuple import torch diff --git a/projects/nerf/nerf/nerf_renderer.py b/projects/nerf/nerf/nerf_renderer.py index 4880edfb..0c2d5dc8 100644 --- a/projects/nerf/nerf/nerf_renderer.py +++ b/projects/nerf/nerf/nerf_renderer.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + from typing import List, Optional, Tuple import torch diff --git a/projects/nerf/nerf/raymarcher.py b/projects/nerf/nerf/raymarcher.py index 36c3da98..c1f0b5fb 100644 --- a/projects/nerf/nerf/raymarcher.py +++ b/projects/nerf/nerf/raymarcher.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import torch from pytorch3d.renderer import EmissionAbsorptionRaymarcher from pytorch3d.renderer.implicit.raymarching import ( diff --git a/projects/nerf/nerf/raysampler.py b/projects/nerf/nerf/raysampler.py index c46cdbe1..366e71e9 100644 --- a/projects/nerf/nerf/raysampler.py +++ b/projects/nerf/nerf/raysampler.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import math from typing import List diff --git a/projects/nerf/nerf/stats.py b/projects/nerf/nerf/stats.py index 183ce88f..0e54f383 100644 --- a/projects/nerf/nerf/stats.py +++ b/projects/nerf/nerf/stats.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import time import warnings from itertools import cycle diff --git a/projects/nerf/nerf/utils.py b/projects/nerf/nerf/utils.py index ca2897a5..a50bcf7e 100644 --- a/projects/nerf/nerf/utils.py +++ b/projects/nerf/nerf/utils.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import torch diff --git a/projects/nerf/test_nerf.py b/projects/nerf/test_nerf.py index 64682ec2..b5fd8c5c 100644 --- a/projects/nerf/test_nerf.py +++ b/projects/nerf/test_nerf.py @@ -1,5 +1,10 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import os import warnings diff --git a/projects/nerf/tests/__init__.py b/projects/nerf/tests/__init__.py index 40539064..10a55772 100644 --- a/projects/nerf/tests/__init__.py +++ b/projects/nerf/tests/__init__.py @@ -1 +1,5 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. diff --git a/projects/nerf/tests/test_raymarcher.py b/projects/nerf/tests/test_raymarcher.py index 3bed5e93..0497c4ef 100644 --- a/projects/nerf/tests/test_raymarcher.py +++ b/projects/nerf/tests/test_raymarcher.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/projects/nerf/tests/test_raysampler.py b/projects/nerf/tests/test_raysampler.py index 72de843e..75fabc97 100644 --- a/projects/nerf/tests/test_raysampler.py +++ b/projects/nerf/tests/test_raysampler.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/projects/nerf/train_nerf.py b/projects/nerf/train_nerf.py index d028d9ca..9c6525ac 100644 --- a/projects/nerf/train_nerf.py +++ b/projects/nerf/train_nerf.py @@ -1,5 +1,10 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import collections import os import pickle diff --git a/pytorch3d/__init__.py b/pytorch3d/__init__.py index 2d5312a9..2d94b131 100644 --- a/pytorch3d/__init__.py +++ b/pytorch3d/__init__.py @@ -1,3 +1,7 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. __version__ = "0.4.0" diff --git a/pytorch3d/common/__init__.py b/pytorch3d/common/__init__.py index 40539064..10a55772 100644 --- a/pytorch3d/common/__init__.py +++ b/pytorch3d/common/__init__.py @@ -1 +1,5 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. diff --git a/pytorch3d/common/types.py b/pytorch3d/common/types.py index 4a3bf10d..622c24e5 100644 --- a/pytorch3d/common/types.py +++ b/pytorch3d/common/types.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import Optional, Union diff --git a/pytorch3d/csrc/blending/sigmoid_alpha_blend.cu b/pytorch3d/csrc/blending/sigmoid_alpha_blend.cu index 84e9529a..11044424 100644 --- a/pytorch3d/csrc/blending/sigmoid_alpha_blend.cu +++ b/pytorch3d/csrc/blending/sigmoid_alpha_blend.cu @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/blending/sigmoid_alpha_blend.h b/pytorch3d/csrc/blending/sigmoid_alpha_blend.h index 3565a086..93f4bc8b 100644 --- a/pytorch3d/csrc/blending/sigmoid_alpha_blend.h +++ b/pytorch3d/csrc/blending/sigmoid_alpha_blend.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #include diff --git a/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.cpp b/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.cpp index 85d19bf8..5ba4855d 100644 --- a/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.cpp +++ b/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/compositing/alpha_composite.cu b/pytorch3d/csrc/compositing/alpha_composite.cu index 16fadb02..2be0625d 100644 --- a/pytorch3d/csrc/compositing/alpha_composite.cu +++ b/pytorch3d/csrc/compositing/alpha_composite.cu @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/compositing/alpha_composite.h b/pytorch3d/csrc/compositing/alpha_composite.h index c910c32d..2945b327 100644 --- a/pytorch3d/csrc/compositing/alpha_composite.h +++ b/pytorch3d/csrc/compositing/alpha_composite.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include "utils/pytorch3d_cutils.h" diff --git a/pytorch3d/csrc/compositing/alpha_composite_cpu.cpp b/pytorch3d/csrc/compositing/alpha_composite_cpu.cpp index a10e0faa..63607b1b 100644 --- a/pytorch3d/csrc/compositing/alpha_composite_cpu.cpp +++ b/pytorch3d/csrc/compositing/alpha_composite_cpu.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include diff --git a/pytorch3d/csrc/compositing/norm_weighted_sum.cu b/pytorch3d/csrc/compositing/norm_weighted_sum.cu index 1885bec6..eade1e35 100644 --- a/pytorch3d/csrc/compositing/norm_weighted_sum.cu +++ b/pytorch3d/csrc/compositing/norm_weighted_sum.cu @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/compositing/norm_weighted_sum.h b/pytorch3d/csrc/compositing/norm_weighted_sum.h index c2878503..ef556bae 100644 --- a/pytorch3d/csrc/compositing/norm_weighted_sum.h +++ b/pytorch3d/csrc/compositing/norm_weighted_sum.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include "utils/pytorch3d_cutils.h" diff --git a/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.cpp b/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.cpp index a2d4390c..28fce017 100644 --- a/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.cpp +++ b/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include diff --git a/pytorch3d/csrc/compositing/weighted_sum.cu b/pytorch3d/csrc/compositing/weighted_sum.cu index cee8e75a..d3c565ea 100644 --- a/pytorch3d/csrc/compositing/weighted_sum.cu +++ b/pytorch3d/csrc/compositing/weighted_sum.cu @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/compositing/weighted_sum.h b/pytorch3d/csrc/compositing/weighted_sum.h index aa4154ed..c3a40c62 100644 --- a/pytorch3d/csrc/compositing/weighted_sum.h +++ b/pytorch3d/csrc/compositing/weighted_sum.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include "utils/pytorch3d_cutils.h" diff --git a/pytorch3d/csrc/compositing/weighted_sum_cpu.cpp b/pytorch3d/csrc/compositing/weighted_sum_cpu.cpp index 4c3000c6..c2e0b868 100644 --- a/pytorch3d/csrc/compositing/weighted_sum_cpu.cpp +++ b/pytorch3d/csrc/compositing/weighted_sum_cpu.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include diff --git a/pytorch3d/csrc/ext.cpp b/pytorch3d/csrc/ext.cpp index 79dc76db..e3022a16 100644 --- a/pytorch3d/csrc/ext.cpp +++ b/pytorch3d/csrc/ext.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ // clang-format off #include "./pulsar/global.h" // Include before . diff --git a/pytorch3d/csrc/face_areas_normals/face_areas_normals.cu b/pytorch3d/csrc/face_areas_normals/face_areas_normals.cu index 54f15d33..1d4b73dc 100644 --- a/pytorch3d/csrc/face_areas_normals/face_areas_normals.cu +++ b/pytorch3d/csrc/face_areas_normals/face_areas_normals.cu @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/face_areas_normals/face_areas_normals.h b/pytorch3d/csrc/face_areas_normals/face_areas_normals.h index ecc8827a..623d3d1b 100644 --- a/pytorch3d/csrc/face_areas_normals/face_areas_normals.h +++ b/pytorch3d/csrc/face_areas_normals/face_areas_normals.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #include diff --git a/pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.cpp b/pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.cpp index 4fa8ec55..2ff30f0f 100644 --- a/pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.cpp +++ b/pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/gather_scatter/gather_scatter.cu b/pytorch3d/csrc/gather_scatter/gather_scatter.cu index bd0a97db..68ab369c 100644 --- a/pytorch3d/csrc/gather_scatter/gather_scatter.cu +++ b/pytorch3d/csrc/gather_scatter/gather_scatter.cu @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/gather_scatter/gather_scatter.h b/pytorch3d/csrc/gather_scatter/gather_scatter.h index 20e5919b..2a17f802 100644 --- a/pytorch3d/csrc/gather_scatter/gather_scatter.h +++ b/pytorch3d/csrc/gather_scatter/gather_scatter.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #include diff --git a/pytorch3d/csrc/gather_scatter/gather_scatter_cpu.cpp b/pytorch3d/csrc/gather_scatter/gather_scatter_cpu.cpp index ba24b8b1..7bf9fde0 100644 --- a/pytorch3d/csrc/gather_scatter/gather_scatter_cpu.cpp +++ b/pytorch3d/csrc/gather_scatter/gather_scatter_cpu.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include diff --git a/pytorch3d/csrc/interp_face_attrs/interp_face_attrs.cu b/pytorch3d/csrc/interp_face_attrs/interp_face_attrs.cu index 66a2534c..9478cc70 100644 --- a/pytorch3d/csrc/interp_face_attrs/interp_face_attrs.cu +++ b/pytorch3d/csrc/interp_face_attrs/interp_face_attrs.cu @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/interp_face_attrs/interp_face_attrs.h b/pytorch3d/csrc/interp_face_attrs/interp_face_attrs.h index ace48ca2..f419743f 100644 --- a/pytorch3d/csrc/interp_face_attrs/interp_face_attrs.h +++ b/pytorch3d/csrc/interp_face_attrs/interp_face_attrs.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #include diff --git a/pytorch3d/csrc/knn/knn.cu b/pytorch3d/csrc/knn/knn.cu index c4c87d7c..48eaff54 100644 --- a/pytorch3d/csrc/knn/knn.cu +++ b/pytorch3d/csrc/knn/knn.cu @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/knn/knn.h b/pytorch3d/csrc/knn/knn.h index 77c83221..f5f0503d 100644 --- a/pytorch3d/csrc/knn/knn.h +++ b/pytorch3d/csrc/knn/knn.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #include diff --git a/pytorch3d/csrc/knn/knn_cpu.cpp b/pytorch3d/csrc/knn/knn_cpu.cpp index aa3a6be1..0f8b9967 100644 --- a/pytorch3d/csrc/knn/knn_cpu.cpp +++ b/pytorch3d/csrc/knn/knn_cpu.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/mesh_normal_consistency/mesh_normal_consistency.h b/pytorch3d/csrc/mesh_normal_consistency/mesh_normal_consistency.h index 521f635a..e95bfca7 100644 --- a/pytorch3d/csrc/mesh_normal_consistency/mesh_normal_consistency.h +++ b/pytorch3d/csrc/mesh_normal_consistency/mesh_normal_consistency.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #include diff --git a/pytorch3d/csrc/mesh_normal_consistency/mesh_normal_consistency_cpu.cpp b/pytorch3d/csrc/mesh_normal_consistency/mesh_normal_consistency_cpu.cpp index 73e31aa0..495e8729 100644 --- a/pytorch3d/csrc/mesh_normal_consistency/mesh_normal_consistency_cpu.cpp +++ b/pytorch3d/csrc/mesh_normal_consistency/mesh_normal_consistency_cpu.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/packed_to_padded_tensor/packed_to_padded_tensor.cu b/pytorch3d/csrc/packed_to_padded_tensor/packed_to_padded_tensor.cu index f185c674..b9de938f 100644 --- a/pytorch3d/csrc/packed_to_padded_tensor/packed_to_padded_tensor.cu +++ b/pytorch3d/csrc/packed_to_padded_tensor/packed_to_padded_tensor.cu @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/packed_to_padded_tensor/packed_to_padded_tensor.h b/pytorch3d/csrc/packed_to_padded_tensor/packed_to_padded_tensor.h index 326f4dcb..77e2b491 100644 --- a/pytorch3d/csrc/packed_to_padded_tensor/packed_to_padded_tensor.h +++ b/pytorch3d/csrc/packed_to_padded_tensor/packed_to_padded_tensor.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #include diff --git a/pytorch3d/csrc/packed_to_padded_tensor/packed_to_padded_tensor_cpu.cpp b/pytorch3d/csrc/packed_to_padded_tensor/packed_to_padded_tensor_cpu.cpp index 283c54db..18fab8f6 100644 --- a/pytorch3d/csrc/packed_to_padded_tensor/packed_to_padded_tensor_cpu.cpp +++ b/pytorch3d/csrc/packed_to_padded_tensor/packed_to_padded_tensor_cpu.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include diff --git a/pytorch3d/csrc/point_mesh/point_mesh_cpu.cpp b/pytorch3d/csrc/point_mesh/point_mesh_cpu.cpp index 3480a801..cb2d0ac2 100644 --- a/pytorch3d/csrc/point_mesh/point_mesh_cpu.cpp +++ b/pytorch3d/csrc/point_mesh/point_mesh_cpu.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/point_mesh/point_mesh_cuda.cu b/pytorch3d/csrc/point_mesh/point_mesh_cuda.cu index f762c82f..b1ebf78c 100644 --- a/pytorch3d/csrc/point_mesh/point_mesh_cuda.cu +++ b/pytorch3d/csrc/point_mesh/point_mesh_cuda.cu @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/point_mesh/point_mesh_cuda.h b/pytorch3d/csrc/point_mesh/point_mesh_cuda.h index d0ffb57d..1aa7cdb4 100644 --- a/pytorch3d/csrc/point_mesh/point_mesh_cuda.h +++ b/pytorch3d/csrc/point_mesh/point_mesh_cuda.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #include diff --git a/pytorch3d/csrc/pulsar/constants.h b/pytorch3d/csrc/pulsar/constants.h index 787f0456..82b4be5a 100644 --- a/pytorch3d/csrc/pulsar/constants.h +++ b/pytorch3d/csrc/pulsar/constants.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_CONSTANTS_H_ #define PULSAR_NATIVE_CONSTANTS_H_ diff --git a/pytorch3d/csrc/pulsar/cuda/commands.h b/pytorch3d/csrc/pulsar/cuda/commands.h index 2ea94a50..910efd31 100644 --- a/pytorch3d/csrc/pulsar/cuda/commands.h +++ b/pytorch3d/csrc/pulsar/cuda/commands.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_CUDA_COMMANDS_H_ #define PULSAR_NATIVE_CUDA_COMMANDS_H_ diff --git a/pytorch3d/csrc/pulsar/cuda/renderer.backward.gpu.cu b/pytorch3d/csrc/pulsar/cuda/renderer.backward.gpu.cu index 6969a3fc..11a50b97 100644 --- a/pytorch3d/csrc/pulsar/cuda/renderer.backward.gpu.cu +++ b/pytorch3d/csrc/pulsar/cuda/renderer.backward.gpu.cu @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.backward.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/cuda/renderer.backward_dbg.gpu.cu b/pytorch3d/csrc/pulsar/cuda/renderer.backward_dbg.gpu.cu index e38f3b5b..2ea5a618 100644 --- a/pytorch3d/csrc/pulsar/cuda/renderer.backward_dbg.gpu.cu +++ b/pytorch3d/csrc/pulsar/cuda/renderer.backward_dbg.gpu.cu @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.backward_dbg.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/cuda/renderer.calc_gradients.gpu.cu b/pytorch3d/csrc/pulsar/cuda/renderer.calc_gradients.gpu.cu index 0668eced..ba6e1f98 100644 --- a/pytorch3d/csrc/pulsar/cuda/renderer.calc_gradients.gpu.cu +++ b/pytorch3d/csrc/pulsar/cuda/renderer.calc_gradients.gpu.cu @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.calc_gradients.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/cuda/renderer.calc_signature.gpu.cu b/pytorch3d/csrc/pulsar/cuda/renderer.calc_signature.gpu.cu index 8e05de28..e48ab7ff 100644 --- a/pytorch3d/csrc/pulsar/cuda/renderer.calc_signature.gpu.cu +++ b/pytorch3d/csrc/pulsar/cuda/renderer.calc_signature.gpu.cu @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.calc_signature.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/cuda/renderer.construct.gpu.cu b/pytorch3d/csrc/pulsar/cuda/renderer.construct.gpu.cu index f04df519..38e97d90 100644 --- a/pytorch3d/csrc/pulsar/cuda/renderer.construct.gpu.cu +++ b/pytorch3d/csrc/pulsar/cuda/renderer.construct.gpu.cu @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.construct.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/cuda/renderer.create_selector.gpu.cu b/pytorch3d/csrc/pulsar/cuda/renderer.create_selector.gpu.cu index c9a64f78..cfc278a4 100644 --- a/pytorch3d/csrc/pulsar/cuda/renderer.create_selector.gpu.cu +++ b/pytorch3d/csrc/pulsar/cuda/renderer.create_selector.gpu.cu @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.create_selector.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/cuda/renderer.destruct.gpu.cu b/pytorch3d/csrc/pulsar/cuda/renderer.destruct.gpu.cu index e5dec0db..a82640ba 100644 --- a/pytorch3d/csrc/pulsar/cuda/renderer.destruct.gpu.cu +++ b/pytorch3d/csrc/pulsar/cuda/renderer.destruct.gpu.cu @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.destruct.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/cuda/renderer.fill_bg.gpu.cu b/pytorch3d/csrc/pulsar/cuda/renderer.fill_bg.gpu.cu index 01e6c6f9..8c975b36 100644 --- a/pytorch3d/csrc/pulsar/cuda/renderer.fill_bg.gpu.cu +++ b/pytorch3d/csrc/pulsar/cuda/renderer.fill_bg.gpu.cu @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.fill_bg.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/cuda/renderer.forward.gpu.cu b/pytorch3d/csrc/pulsar/cuda/renderer.forward.gpu.cu index c73b8f69..4e7332a3 100644 --- a/pytorch3d/csrc/pulsar/cuda/renderer.forward.gpu.cu +++ b/pytorch3d/csrc/pulsar/cuda/renderer.forward.gpu.cu @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.forward.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/cuda/renderer.norm_cam_gradients.gpu.cu b/pytorch3d/csrc/pulsar/cuda/renderer.norm_cam_gradients.gpu.cu index 2c26f5a9..9b934a41 100644 --- a/pytorch3d/csrc/pulsar/cuda/renderer.norm_cam_gradients.gpu.cu +++ b/pytorch3d/csrc/pulsar/cuda/renderer.norm_cam_gradients.gpu.cu @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.norm_cam_gradients.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/cuda/renderer.norm_sphere_gradients.gpu.cu b/pytorch3d/csrc/pulsar/cuda/renderer.norm_sphere_gradients.gpu.cu index 4ee8128e..a26a20a7 100644 --- a/pytorch3d/csrc/pulsar/cuda/renderer.norm_sphere_gradients.gpu.cu +++ b/pytorch3d/csrc/pulsar/cuda/renderer.norm_sphere_gradients.gpu.cu @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.norm_sphere_gradients.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/cuda/renderer.render.gpu.cu b/pytorch3d/csrc/pulsar/cuda/renderer.render.gpu.cu index c9a664e1..b99a8fe6 100644 --- a/pytorch3d/csrc/pulsar/cuda/renderer.render.gpu.cu +++ b/pytorch3d/csrc/pulsar/cuda/renderer.render.gpu.cu @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.render.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/global.h b/pytorch3d/csrc/pulsar/global.h index 88257d67..7511e304 100644 --- a/pytorch3d/csrc/pulsar/global.h +++ b/pytorch3d/csrc/pulsar/global.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_GLOBAL_H #define PULSAR_GLOBAL_H diff --git a/pytorch3d/csrc/pulsar/host/commands.h b/pytorch3d/csrc/pulsar/host/commands.h index 737c6224..37b6bd01 100644 --- a/pytorch3d/csrc/pulsar/host/commands.h +++ b/pytorch3d/csrc/pulsar/host/commands.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_COMMANDS_H_ #define PULSAR_NATIVE_COMMANDS_H_ diff --git a/pytorch3d/csrc/pulsar/host/renderer.backward.cpu.cpp b/pytorch3d/csrc/pulsar/host/renderer.backward.cpu.cpp index 6969a3fc..11a50b97 100644 --- a/pytorch3d/csrc/pulsar/host/renderer.backward.cpu.cpp +++ b/pytorch3d/csrc/pulsar/host/renderer.backward.cpu.cpp @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.backward.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/host/renderer.backward_dbg.cpu.cpp b/pytorch3d/csrc/pulsar/host/renderer.backward_dbg.cpu.cpp index e38f3b5b..2ea5a618 100644 --- a/pytorch3d/csrc/pulsar/host/renderer.backward_dbg.cpu.cpp +++ b/pytorch3d/csrc/pulsar/host/renderer.backward_dbg.cpu.cpp @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.backward_dbg.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/host/renderer.calc_gradients.cpu.cpp b/pytorch3d/csrc/pulsar/host/renderer.calc_gradients.cpu.cpp index 0668eced..ba6e1f98 100644 --- a/pytorch3d/csrc/pulsar/host/renderer.calc_gradients.cpu.cpp +++ b/pytorch3d/csrc/pulsar/host/renderer.calc_gradients.cpu.cpp @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.calc_gradients.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/host/renderer.calc_signature.cpu.cpp b/pytorch3d/csrc/pulsar/host/renderer.calc_signature.cpu.cpp index 8e05de28..e48ab7ff 100644 --- a/pytorch3d/csrc/pulsar/host/renderer.calc_signature.cpu.cpp +++ b/pytorch3d/csrc/pulsar/host/renderer.calc_signature.cpu.cpp @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.calc_signature.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/host/renderer.construct.cpu.cpp b/pytorch3d/csrc/pulsar/host/renderer.construct.cpu.cpp index f04df519..38e97d90 100644 --- a/pytorch3d/csrc/pulsar/host/renderer.construct.cpu.cpp +++ b/pytorch3d/csrc/pulsar/host/renderer.construct.cpu.cpp @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.construct.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/host/renderer.create_selector.cpu.cpp b/pytorch3d/csrc/pulsar/host/renderer.create_selector.cpu.cpp index c9a64f78..cfc278a4 100644 --- a/pytorch3d/csrc/pulsar/host/renderer.create_selector.cpu.cpp +++ b/pytorch3d/csrc/pulsar/host/renderer.create_selector.cpu.cpp @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.create_selector.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/host/renderer.destruct.cpu.cpp b/pytorch3d/csrc/pulsar/host/renderer.destruct.cpu.cpp index e5dec0db..a82640ba 100644 --- a/pytorch3d/csrc/pulsar/host/renderer.destruct.cpu.cpp +++ b/pytorch3d/csrc/pulsar/host/renderer.destruct.cpu.cpp @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.destruct.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/host/renderer.fill_bg.cpu.cpp b/pytorch3d/csrc/pulsar/host/renderer.fill_bg.cpu.cpp index 01e6c6f9..8c975b36 100644 --- a/pytorch3d/csrc/pulsar/host/renderer.fill_bg.cpu.cpp +++ b/pytorch3d/csrc/pulsar/host/renderer.fill_bg.cpu.cpp @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.fill_bg.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/host/renderer.forward.cpu.cpp b/pytorch3d/csrc/pulsar/host/renderer.forward.cpu.cpp index c73b8f69..4e7332a3 100644 --- a/pytorch3d/csrc/pulsar/host/renderer.forward.cpu.cpp +++ b/pytorch3d/csrc/pulsar/host/renderer.forward.cpu.cpp @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.forward.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/host/renderer.norm_cam_gradients.cpu.cpp b/pytorch3d/csrc/pulsar/host/renderer.norm_cam_gradients.cpu.cpp index 2c26f5a9..9b934a41 100644 --- a/pytorch3d/csrc/pulsar/host/renderer.norm_cam_gradients.cpu.cpp +++ b/pytorch3d/csrc/pulsar/host/renderer.norm_cam_gradients.cpu.cpp @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.norm_cam_gradients.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/host/renderer.norm_sphere_gradients.cpu.cpp b/pytorch3d/csrc/pulsar/host/renderer.norm_sphere_gradients.cpu.cpp index 4ee8128e..a26a20a7 100644 --- a/pytorch3d/csrc/pulsar/host/renderer.norm_sphere_gradients.cpu.cpp +++ b/pytorch3d/csrc/pulsar/host/renderer.norm_sphere_gradients.cpu.cpp @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.norm_sphere_gradients.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/host/renderer.render.cpu.cpp b/pytorch3d/csrc/pulsar/host/renderer.render.cpu.cpp index c9a664e1..b99a8fe6 100644 --- a/pytorch3d/csrc/pulsar/host/renderer.render.cpu.cpp +++ b/pytorch3d/csrc/pulsar/host/renderer.render.cpu.cpp @@ -1,2 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "../include/renderer.render.instantiate.h" diff --git a/pytorch3d/csrc/pulsar/include/camera.device.h b/pytorch3d/csrc/pulsar/include/camera.device.h index 5633bc62..3ca21e09 100644 --- a/pytorch3d/csrc/pulsar/include/camera.device.h +++ b/pytorch3d/csrc/pulsar/include/camera.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_CAMERA_DEVICE_H_ #define PULSAR_NATIVE_INCLUDE_CAMERA_DEVICE_H_ diff --git a/pytorch3d/csrc/pulsar/include/camera.h b/pytorch3d/csrc/pulsar/include/camera.h index 25d12558..2883be40 100644 --- a/pytorch3d/csrc/pulsar/include/camera.h +++ b/pytorch3d/csrc/pulsar/include/camera.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_CAMERA_H_ #define PULSAR_NATIVE_INCLUDE_CAMERA_H_ diff --git a/pytorch3d/csrc/pulsar/include/closest_sphere_tracker.device.h b/pytorch3d/csrc/pulsar/include/closest_sphere_tracker.device.h index 85423e50..e191e22b 100644 --- a/pytorch3d/csrc/pulsar/include/closest_sphere_tracker.device.h +++ b/pytorch3d/csrc/pulsar/include/closest_sphere_tracker.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_CLOSEST_SPHERE_TRACKER_DEVICE_H_ #define PULSAR_NATIVE_INCLUDE_CLOSEST_SPHERE_TRACKER_DEVICE_H_ diff --git a/pytorch3d/csrc/pulsar/include/commands.h b/pytorch3d/csrc/pulsar/include/commands.h index 2504cfc1..7632abe3 100644 --- a/pytorch3d/csrc/pulsar/include/commands.h +++ b/pytorch3d/csrc/pulsar/include/commands.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_COMMANDS_ROUTING_H_ #define PULSAR_NATIVE_COMMANDS_ROUTING_H_ diff --git a/pytorch3d/csrc/pulsar/include/fastermath.h b/pytorch3d/csrc/pulsar/include/fastermath.h index 2276ae6a..cae598f9 100644 --- a/pytorch3d/csrc/pulsar/include/fastermath.h +++ b/pytorch3d/csrc/pulsar/include/fastermath.h @@ -1,6 +1,7 @@ #ifndef PULSAR_NATIVE_INCLUDE_FASTERMATH_H_ #define PULSAR_NATIVE_INCLUDE_FASTERMATH_H_ +// @lint-ignore-every LICENSELINT /*=====================================================================* * Copyright (C) 2011 Paul Mineiro * * All rights reserved. * diff --git a/pytorch3d/csrc/pulsar/include/math.h b/pytorch3d/csrc/pulsar/include/math.h index cb904556..a30f08e4 100644 --- a/pytorch3d/csrc/pulsar/include/math.h +++ b/pytorch3d/csrc/pulsar/include/math.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_IMPL_MATH_H_ #define PULSAR_NATIVE_IMPL_MATH_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.backward.device.h b/pytorch3d/csrc/pulsar/include/renderer.backward.device.h index 175be513..fcc7db23 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.backward.device.h +++ b/pytorch3d/csrc/pulsar/include/renderer.backward.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_RENDERER_BACKWARD_DEVICE_H_ #define PULSAR_NATIVE_RENDERER_BACKWARD_DEVICE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.backward.instantiate.h b/pytorch3d/csrc/pulsar/include/renderer.backward.instantiate.h index 3ad16599..425a6227 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.backward.instantiate.h +++ b/pytorch3d/csrc/pulsar/include/renderer.backward.instantiate.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "./renderer.backward.device.h" namespace pulsar { diff --git a/pytorch3d/csrc/pulsar/include/renderer.backward_dbg.device.h b/pytorch3d/csrc/pulsar/include/renderer.backward_dbg.device.h index 5e1c0172..618bc8e7 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.backward_dbg.device.h +++ b/pytorch3d/csrc/pulsar/include/renderer.backward_dbg.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_RENDERER_BACKWARD_DBG_DEVICE_H_ #define PULSAR_NATIVE_RENDERER_BACKWARD_DBG_DEVICE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.backward_dbg.instantiate.h b/pytorch3d/csrc/pulsar/include/renderer.backward_dbg.instantiate.h index c15108f9..499e282b 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.backward_dbg.instantiate.h +++ b/pytorch3d/csrc/pulsar/include/renderer.backward_dbg.instantiate.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "./renderer.backward_dbg.device.h" namespace pulsar { diff --git a/pytorch3d/csrc/pulsar/include/renderer.calc_gradients.device.h b/pytorch3d/csrc/pulsar/include/renderer.calc_gradients.device.h index edf6ea8b..acac31d1 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.calc_gradients.device.h +++ b/pytorch3d/csrc/pulsar/include/renderer.calc_gradients.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_CALC_GRADIENTS_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_CALC_GRADIENTS_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.calc_gradients.instantiate.h b/pytorch3d/csrc/pulsar/include/renderer.calc_gradients.instantiate.h index 14c70386..ad452548 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.calc_gradients.instantiate.h +++ b/pytorch3d/csrc/pulsar/include/renderer.calc_gradients.instantiate.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "./renderer.calc_gradients.device.h" namespace pulsar { diff --git a/pytorch3d/csrc/pulsar/include/renderer.calc_signature.device.h b/pytorch3d/csrc/pulsar/include/renderer.calc_signature.device.h index 84b3e0aa..c7b3ba56 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.calc_signature.device.h +++ b/pytorch3d/csrc/pulsar/include/renderer.calc_signature.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_CALC_SIGNATURE_DEVICE_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_CALC_SIGNATURE_DEVICE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.calc_signature.instantiate.h b/pytorch3d/csrc/pulsar/include/renderer.calc_signature.instantiate.h index b87bcff7..de724e0d 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.calc_signature.instantiate.h +++ b/pytorch3d/csrc/pulsar/include/renderer.calc_signature.instantiate.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_CALC_SIGNATURE_INSTANTIATE_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_CALC_SIGNATURE_INSTANTIATE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.construct.device.h b/pytorch3d/csrc/pulsar/include/renderer.construct.device.h index 55bde54d..5f31a3c6 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.construct.device.h +++ b/pytorch3d/csrc/pulsar/include/renderer.construct.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_CONSTRUCT_DEVICE_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_CONSTRUCT_DEVICE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.construct.instantiate.h b/pytorch3d/csrc/pulsar/include/renderer.construct.instantiate.h index 09964f2b..bbd86465 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.construct.instantiate.h +++ b/pytorch3d/csrc/pulsar/include/renderer.construct.instantiate.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_CONSTRUCT_INSTANTIATE_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_CONSTRUCT_INSTANTIATE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.create_selector.device.h b/pytorch3d/csrc/pulsar/include/renderer.create_selector.device.h index 42ef5c25..6c2b60fa 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.create_selector.device.h +++ b/pytorch3d/csrc/pulsar/include/renderer.create_selector.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_CREATE_SELECTOR_DEVICE_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_CREATE_SELECTOR_DEVICE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.create_selector.instantiate.h b/pytorch3d/csrc/pulsar/include/renderer.create_selector.instantiate.h index bafd9fac..b092a99a 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.create_selector.instantiate.h +++ b/pytorch3d/csrc/pulsar/include/renderer.create_selector.instantiate.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_CREATE_SELECTOR_INSTANTIATE_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_CREATE_SELECTOR_INSTANTIATE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.destruct.device.h b/pytorch3d/csrc/pulsar/include/renderer.destruct.device.h index a3a1044e..2405e3cd 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.destruct.device.h +++ b/pytorch3d/csrc/pulsar/include/renderer.destruct.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_DESTRUCT_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_DESTRUCT_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.destruct.instantiate.h b/pytorch3d/csrc/pulsar/include/renderer.destruct.instantiate.h index ce3d10f2..5faf9ba5 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.destruct.instantiate.h +++ b/pytorch3d/csrc/pulsar/include/renderer.destruct.instantiate.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_DESTRUCT_INSTANTIATE_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_DESTRUCT_INSTANTIATE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.draw.device.h b/pytorch3d/csrc/pulsar/include/renderer.draw.device.h index 379319a7..820f79ee 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.draw.device.h +++ b/pytorch3d/csrc/pulsar/include/renderer.draw.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_CALC_SIGNATURE_DEVICE_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_CALC_SIGNATURE_DEVICE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.fill_bg.device.h b/pytorch3d/csrc/pulsar/include/renderer.fill_bg.device.h index 4137d2d1..11d69e9e 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.fill_bg.device.h +++ b/pytorch3d/csrc/pulsar/include/renderer.fill_bg.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_FILL_BG_DEVICE_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_FILL_BG_DEVICE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.fill_bg.instantiate.h b/pytorch3d/csrc/pulsar/include/renderer.fill_bg.instantiate.h index 2b4e279d..6849b0ea 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.fill_bg.instantiate.h +++ b/pytorch3d/csrc/pulsar/include/renderer.fill_bg.instantiate.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "./renderer.fill_bg.device.h" namespace pulsar { diff --git a/pytorch3d/csrc/pulsar/include/renderer.forward.device.h b/pytorch3d/csrc/pulsar/include/renderer.forward.device.h index 60f52850..e794a711 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.forward.device.h +++ b/pytorch3d/csrc/pulsar/include/renderer.forward.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_FORWARD_DEVICE_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_FORWARD_DEVICE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.forward.instantiate.h b/pytorch3d/csrc/pulsar/include/renderer.forward.instantiate.h index 31fae46b..db84e51c 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.forward.instantiate.h +++ b/pytorch3d/csrc/pulsar/include/renderer.forward.instantiate.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "./renderer.forward.device.h" namespace pulsar { diff --git a/pytorch3d/csrc/pulsar/include/renderer.get_screen_area.device.h b/pytorch3d/csrc/pulsar/include/renderer.get_screen_area.device.h index e2b7f504..08ee49d9 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.get_screen_area.device.h +++ b/pytorch3d/csrc/pulsar/include/renderer.get_screen_area.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_GET_SCREEN_AREA_DEVICE_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_GET_SCREEN_AREA_DEVICE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.h b/pytorch3d/csrc/pulsar/include/renderer.h index dfcfae53..01d6a61b 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.h +++ b/pytorch3d/csrc/pulsar/include/renderer.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.norm_cam_gradients.device.h b/pytorch3d/csrc/pulsar/include/renderer.norm_cam_gradients.device.h index 14f6a21f..2a409caa 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.norm_cam_gradients.device.h +++ b/pytorch3d/csrc/pulsar/include/renderer.norm_cam_gradients.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_NORM_CAM_GRADIENTS_DEVICE_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_NORM_CAM_GRADIENTS_DEVICE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.norm_cam_gradients.instantiate.h b/pytorch3d/csrc/pulsar/include/renderer.norm_cam_gradients.instantiate.h index 77433245..130306be 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.norm_cam_gradients.instantiate.h +++ b/pytorch3d/csrc/pulsar/include/renderer.norm_cam_gradients.instantiate.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "./renderer.norm_cam_gradients.device.h" namespace pulsar { diff --git a/pytorch3d/csrc/pulsar/include/renderer.norm_sphere_gradients.device.h b/pytorch3d/csrc/pulsar/include/renderer.norm_sphere_gradients.device.h index 1d68a303..bab83211 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.norm_sphere_gradients.device.h +++ b/pytorch3d/csrc/pulsar/include/renderer.norm_sphere_gradients.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_NORM_SPHERE_GRADIENTS_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_NORM_SPHERE_GRADIENTS_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.norm_sphere_gradients.instantiate.h b/pytorch3d/csrc/pulsar/include/renderer.norm_sphere_gradients.instantiate.h index 2a48aa07..17a82fbe 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.norm_sphere_gradients.instantiate.h +++ b/pytorch3d/csrc/pulsar/include/renderer.norm_sphere_gradients.instantiate.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "./renderer.norm_sphere_gradients.device.h" namespace pulsar { diff --git a/pytorch3d/csrc/pulsar/include/renderer.render.device.h b/pytorch3d/csrc/pulsar/include/renderer.render.device.h index 95adf9af..a5be7c1e 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.render.device.h +++ b/pytorch3d/csrc/pulsar/include/renderer.render.device.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_RENDER_DEVICE_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_RENDER_DEVICE_H_ diff --git a/pytorch3d/csrc/pulsar/include/renderer.render.instantiate.h b/pytorch3d/csrc/pulsar/include/renderer.render.instantiate.h index 3379bae4..c75080e9 100644 --- a/pytorch3d/csrc/pulsar/include/renderer.render.instantiate.h +++ b/pytorch3d/csrc/pulsar/include/renderer.render.instantiate.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_INCLUDE_RENDERER_RENDER_INSTANTIATE_H_ #define PULSAR_NATIVE_INCLUDE_RENDERER_RENDER_INSTANTIATE_H_ diff --git a/pytorch3d/csrc/pulsar/logging.h b/pytorch3d/csrc/pulsar/logging.h index 977e0c9d..620f2d10 100644 --- a/pytorch3d/csrc/pulsar/logging.h +++ b/pytorch3d/csrc/pulsar/logging.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_LOGGING_H_ #define PULSAR_LOGGING_H_ diff --git a/pytorch3d/csrc/pulsar/pytorch/camera.cpp b/pytorch3d/csrc/pulsar/pytorch/camera.cpp index 3f1cfca4..7c38d695 100644 --- a/pytorch3d/csrc/pulsar/pytorch/camera.cpp +++ b/pytorch3d/csrc/pulsar/pytorch/camera.cpp @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "./camera.h" #include "../include/math.h" diff --git a/pytorch3d/csrc/pulsar/pytorch/camera.h b/pytorch3d/csrc/pulsar/pytorch/camera.h index f7312364..b559cf5f 100644 --- a/pytorch3d/csrc/pulsar/pytorch/camera.h +++ b/pytorch3d/csrc/pulsar/pytorch/camera.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_CAMERA_H_ #define PULSAR_NATIVE_CAMERA_H_ diff --git a/pytorch3d/csrc/pulsar/pytorch/renderer.cpp b/pytorch3d/csrc/pulsar/pytorch/renderer.cpp index 69f3420e..635dee41 100644 --- a/pytorch3d/csrc/pulsar/pytorch/renderer.cpp +++ b/pytorch3d/csrc/pulsar/pytorch/renderer.cpp @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "./renderer.h" #include "../include/commands.h" #include "./camera.h" diff --git a/pytorch3d/csrc/pulsar/pytorch/renderer.h b/pytorch3d/csrc/pulsar/pytorch/renderer.h index a5144d29..b3ccb37c 100644 --- a/pytorch3d/csrc/pulsar/pytorch/renderer.h +++ b/pytorch3d/csrc/pulsar/pytorch/renderer.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_PYTORCH_RENDERER_H_ #define PULSAR_NATIVE_PYTORCH_RENDERER_H_ diff --git a/pytorch3d/csrc/pulsar/pytorch/tensor_util.cpp b/pytorch3d/csrc/pulsar/pytorch/tensor_util.cpp index f4f7dcf5..e768101e 100644 --- a/pytorch3d/csrc/pulsar/pytorch/tensor_util.cpp +++ b/pytorch3d/csrc/pulsar/pytorch/tensor_util.cpp @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifdef WITH_CUDA #include #include diff --git a/pytorch3d/csrc/pulsar/pytorch/tensor_util.h b/pytorch3d/csrc/pulsar/pytorch/tensor_util.h index b98f7e50..fedf94e3 100644 --- a/pytorch3d/csrc/pulsar/pytorch/tensor_util.h +++ b/pytorch3d/csrc/pulsar/pytorch/tensor_util.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_PYTORCH_TENSOR_UTIL_H_ #define PULSAR_NATIVE_PYTORCH_TENSOR_UTIL_H_ diff --git a/pytorch3d/csrc/pulsar/pytorch/util.cpp b/pytorch3d/csrc/pulsar/pytorch/util.cpp index 0b80a538..017a1ac3 100644 --- a/pytorch3d/csrc/pulsar/pytorch/util.cpp +++ b/pytorch3d/csrc/pulsar/pytorch/util.cpp @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifdef WITH_CUDA #include diff --git a/pytorch3d/csrc/pulsar/pytorch/util.h b/pytorch3d/csrc/pulsar/pytorch/util.h index 4aa0a654..9a536fab 100644 --- a/pytorch3d/csrc/pulsar/pytorch/util.h +++ b/pytorch3d/csrc/pulsar/pytorch/util.h @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #ifndef PULSAR_NATIVE_PYTORCH_UTIL_H_ #define PULSAR_NATIVE_PYTORCH_UTIL_H_ diff --git a/pytorch3d/csrc/pulsar/warnings.cpp b/pytorch3d/csrc/pulsar/warnings.cpp index 0a875b2a..3ec13d7e 100644 --- a/pytorch3d/csrc/pulsar/warnings.cpp +++ b/pytorch3d/csrc/pulsar/warnings.cpp @@ -1,4 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + #include "./global.h" #include "./logging.h" diff --git a/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu b/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu index 6cca278a..2dd5fde1 100644 --- a/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu +++ b/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.h b/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.h index 0461e726..d3ae63f9 100644 --- a/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.h +++ b/pytorch3d/csrc/rasterize_meshes/rasterize_meshes.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #include diff --git a/pytorch3d/csrc/rasterize_meshes/rasterize_meshes_cpu.cpp b/pytorch3d/csrc/rasterize_meshes/rasterize_meshes_cpu.cpp index 6659e3a6..37f03105 100644 --- a/pytorch3d/csrc/rasterize_meshes/rasterize_meshes_cpu.cpp +++ b/pytorch3d/csrc/rasterize_meshes/rasterize_meshes_cpu.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/rasterize_points/bitmask.cuh b/pytorch3d/csrc/rasterize_points/bitmask.cuh index b72ce810..14f6b512 100644 --- a/pytorch3d/csrc/rasterize_points/bitmask.cuh +++ b/pytorch3d/csrc/rasterize_points/bitmask.cuh @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #define BINMASK_H diff --git a/pytorch3d/csrc/rasterize_points/rasterization_utils.cuh b/pytorch3d/csrc/rasterize_points/rasterization_utils.cuh index 65533d2e..76a0cf7a 100644 --- a/pytorch3d/csrc/rasterize_points/rasterization_utils.cuh +++ b/pytorch3d/csrc/rasterize_points/rasterization_utils.cuh @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once diff --git a/pytorch3d/csrc/rasterize_points/rasterization_utils.h b/pytorch3d/csrc/rasterize_points/rasterization_utils.h index 59440be5..664f8a3e 100644 --- a/pytorch3d/csrc/rasterize_points/rasterization_utils.h +++ b/pytorch3d/csrc/rasterize_points/rasterization_utils.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once diff --git a/pytorch3d/csrc/rasterize_points/rasterize_points.cu b/pytorch3d/csrc/rasterize_points/rasterize_points.cu index 35effd72..fcfb769b 100644 --- a/pytorch3d/csrc/rasterize_points/rasterize_points.cu +++ b/pytorch3d/csrc/rasterize_points/rasterize_points.cu @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/rasterize_points/rasterize_points.h b/pytorch3d/csrc/rasterize_points/rasterize_points.h index a13d9773..e119bcb2 100644 --- a/pytorch3d/csrc/rasterize_points/rasterize_points.h +++ b/pytorch3d/csrc/rasterize_points/rasterize_points.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #include diff --git a/pytorch3d/csrc/rasterize_points/rasterize_points_cpu.cpp b/pytorch3d/csrc/rasterize_points/rasterize_points_cpu.cpp index 53cd6cba..3266b86e 100644 --- a/pytorch3d/csrc/rasterize_points/rasterize_points_cpu.cpp +++ b/pytorch3d/csrc/rasterize_points/rasterize_points_cpu.cpp @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/utils/dispatch.cuh b/pytorch3d/csrc/utils/dispatch.cuh index d759576d..306315b9 100644 --- a/pytorch3d/csrc/utils/dispatch.cuh +++ b/pytorch3d/csrc/utils/dispatch.cuh @@ -1,5 +1,11 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. -// +/* + * Copyright (c) Facebook, Inc. and its 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. + */ + // This file provides utilities for dispatching to specialized versions of // functions. This is especially useful for CUDA kernels, since specializing // them to particular input sizes can often allow the compiler to unroll loops diff --git a/pytorch3d/csrc/utils/float_math.cuh b/pytorch3d/csrc/utils/float_math.cuh index 382d2cf8..b28518b8 100644 --- a/pytorch3d/csrc/utils/float_math.cuh +++ b/pytorch3d/csrc/utils/float_math.cuh @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #include diff --git a/pytorch3d/csrc/utils/geometry_utils.cuh b/pytorch3d/csrc/utils/geometry_utils.cuh index 2ba60d27..53ff4f5a 100644 --- a/pytorch3d/csrc/utils/geometry_utils.cuh +++ b/pytorch3d/csrc/utils/geometry_utils.cuh @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/utils/geometry_utils.h b/pytorch3d/csrc/utils/geometry_utils.h index ef1f437d..c8b57f53 100644 --- a/pytorch3d/csrc/utils/geometry_utils.h +++ b/pytorch3d/csrc/utils/geometry_utils.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/csrc/utils/index_utils.cuh b/pytorch3d/csrc/utils/index_utils.cuh index 26fda57d..12dfeb44 100644 --- a/pytorch3d/csrc/utils/index_utils.cuh +++ b/pytorch3d/csrc/utils/index_utils.cuh @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ // This converts dynamic array lookups into static array lookups, for small // arrays up to size 32. diff --git a/pytorch3d/csrc/utils/mink.cuh b/pytorch3d/csrc/utils/mink.cuh index 221b816f..8fb4417d 100644 --- a/pytorch3d/csrc/utils/mink.cuh +++ b/pytorch3d/csrc/utils/mink.cuh @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #define MINK_H diff --git a/pytorch3d/csrc/utils/pytorch3d_cutils.h b/pytorch3d/csrc/utils/pytorch3d_cutils.h index f5f0c4a8..660c9dde 100644 --- a/pytorch3d/csrc/utils/pytorch3d_cutils.h +++ b/pytorch3d/csrc/utils/pytorch3d_cutils.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #include diff --git a/pytorch3d/csrc/utils/vec2.h b/pytorch3d/csrc/utils/vec2.h index 8f1b7fc4..5e1743c3 100644 --- a/pytorch3d/csrc/utils/vec2.h +++ b/pytorch3d/csrc/utils/vec2.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once #include diff --git a/pytorch3d/csrc/utils/vec3.h b/pytorch3d/csrc/utils/vec3.h index 7c696f7a..92415165 100644 --- a/pytorch3d/csrc/utils/vec3.h +++ b/pytorch3d/csrc/utils/vec3.h @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #pragma once diff --git a/pytorch3d/csrc/utils/warp_reduce.cuh b/pytorch3d/csrc/utils/warp_reduce.cuh index af51afea..035dbf2a 100644 --- a/pytorch3d/csrc/utils/warp_reduce.cuh +++ b/pytorch3d/csrc/utils/warp_reduce.cuh @@ -1,4 +1,10 @@ -// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +/* + * Copyright (c) Facebook, Inc. and its 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. + */ #include #include diff --git a/pytorch3d/datasets/__init__.py b/pytorch3d/datasets/__init__.py index f35ab33c..1dd11698 100644 --- a/pytorch3d/datasets/__init__.py +++ b/pytorch3d/datasets/__init__.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from .r2n2 import R2N2, BlenderCamera, collate_batched_R2N2, render_cubified_voxels from .shapenet import ShapeNetCore diff --git a/pytorch3d/datasets/r2n2/__init__.py b/pytorch3d/datasets/r2n2/__init__.py index b40be2c1..4b5ebb1c 100644 --- a/pytorch3d/datasets/r2n2/__init__.py +++ b/pytorch3d/datasets/r2n2/__init__.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from .r2n2 import R2N2 from .utils import BlenderCamera, collate_batched_R2N2, render_cubified_voxels diff --git a/pytorch3d/datasets/r2n2/r2n2.py b/pytorch3d/datasets/r2n2/r2n2.py index f85bb295..819b1462 100644 --- a/pytorch3d/datasets/r2n2/r2n2.py +++ b/pytorch3d/datasets/r2n2/r2n2.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import json import warnings diff --git a/pytorch3d/datasets/r2n2/utils.py b/pytorch3d/datasets/r2n2/utils.py index 1d1c7c23..e91dd8f6 100644 --- a/pytorch3d/datasets/r2n2/utils.py +++ b/pytorch3d/datasets/r2n2/utils.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import math from typing import Dict, List diff --git a/pytorch3d/datasets/shapenet/__init__.py b/pytorch3d/datasets/shapenet/__init__.py index 44469dab..6e0e5fd9 100644 --- a/pytorch3d/datasets/shapenet/__init__.py +++ b/pytorch3d/datasets/shapenet/__init__.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from .shapenet_core import ShapeNetCore diff --git a/pytorch3d/datasets/shapenet/shapenet_core.py b/pytorch3d/datasets/shapenet/shapenet_core.py index 402ea2be..7a67c913 100644 --- a/pytorch3d/datasets/shapenet/shapenet_core.py +++ b/pytorch3d/datasets/shapenet/shapenet_core.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import json import os diff --git a/pytorch3d/datasets/shapenet_base.py b/pytorch3d/datasets/shapenet_base.py index 24810e1f..18bf2c68 100644 --- a/pytorch3d/datasets/shapenet_base.py +++ b/pytorch3d/datasets/shapenet_base.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import warnings from typing import Dict, List, Optional, Tuple diff --git a/pytorch3d/datasets/utils.py b/pytorch3d/datasets/utils.py index edb56382..37f5bc8d 100644 --- a/pytorch3d/datasets/utils.py +++ b/pytorch3d/datasets/utils.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + from typing import Dict, List from pytorch3d.renderer.mesh import TexturesAtlas diff --git a/pytorch3d/io/__init__.py b/pytorch3d/io/__init__.py index b3fe212b..45bd99ca 100644 --- a/pytorch3d/io/__init__.py +++ b/pytorch3d/io/__init__.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from .obj_io import load_obj, load_objs_as_meshes, save_obj diff --git a/pytorch3d/io/experimental_gltf_io.py b/pytorch3d/io/experimental_gltf_io.py index 05cb1f8c..dda8f29a 100644 --- a/pytorch3d/io/experimental_gltf_io.py +++ b/pytorch3d/io/experimental_gltf_io.py @@ -1,5 +1,7 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. -# This source code is licensed under the license found in the +# Copyright (c) Facebook, Inc. and its 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. diff --git a/pytorch3d/io/mtl_io.py b/pytorch3d/io/mtl_io.py index 29539610..974309b9 100644 --- a/pytorch3d/io/mtl_io.py +++ b/pytorch3d/io/mtl_io.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. """This module implements utility functions for loading .mtl files and textures.""" import os diff --git a/pytorch3d/io/obj_io.py b/pytorch3d/io/obj_io.py index 9311fd15..50465d12 100644 --- a/pytorch3d/io/obj_io.py +++ b/pytorch3d/io/obj_io.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. """This module implements utility functions for loading and saving meshes.""" diff --git a/pytorch3d/io/off_io.py b/pytorch3d/io/off_io.py index 822946ae..34756869 100644 --- a/pytorch3d/io/off_io.py +++ b/pytorch3d/io/off_io.py @@ -1,5 +1,7 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. -# This source code is licensed under the license found in the +# Copyright (c) Facebook, Inc. and its 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. diff --git a/pytorch3d/io/pluggable.py b/pytorch3d/io/pluggable.py index bbdc589b..0864c1b3 100644 --- a/pytorch3d/io/pluggable.py +++ b/pytorch3d/io/pluggable.py @@ -1,5 +1,7 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. -# This source code is licensed under the license found in the +# Copyright (c) Facebook, Inc. and its 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. diff --git a/pytorch3d/io/pluggable_formats.py b/pytorch3d/io/pluggable_formats.py index 968ac7c6..35cb919f 100644 --- a/pytorch3d/io/pluggable_formats.py +++ b/pytorch3d/io/pluggable_formats.py @@ -1,5 +1,7 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. -# This source code is licensed under the license found in the +# Copyright (c) Facebook, Inc. and its 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. diff --git a/pytorch3d/io/ply_io.py b/pytorch3d/io/ply_io.py index 3e28ba5d..2c0bfb27 100644 --- a/pytorch3d/io/ply_io.py +++ b/pytorch3d/io/ply_io.py @@ -1,5 +1,7 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. -# This source code is licensed under the license found in the +# Copyright (c) Facebook, Inc. and its 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. diff --git a/pytorch3d/io/utils.py b/pytorch3d/io/utils.py index e1d5c874..08ac27c2 100644 --- a/pytorch3d/io/utils.py +++ b/pytorch3d/io/utils.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import contextlib import pathlib diff --git a/pytorch3d/loss/__init__.py b/pytorch3d/loss/__init__.py index 8cb5d1ea..0a1fb09e 100644 --- a/pytorch3d/loss/__init__.py +++ b/pytorch3d/loss/__init__.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from .chamfer import chamfer_distance diff --git a/pytorch3d/loss/chamfer.py b/pytorch3d/loss/chamfer.py index a4cf9d92..6dd123fc 100644 --- a/pytorch3d/loss/chamfer.py +++ b/pytorch3d/loss/chamfer.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import Union diff --git a/pytorch3d/loss/mesh_edge_loss.py b/pytorch3d/loss/mesh_edge_loss.py index 19363e0a..ccb98dd9 100644 --- a/pytorch3d/loss/mesh_edge_loss.py +++ b/pytorch3d/loss/mesh_edge_loss.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch diff --git a/pytorch3d/loss/mesh_laplacian_smoothing.py b/pytorch3d/loss/mesh_laplacian_smoothing.py index 571005ec..e86ddfce 100644 --- a/pytorch3d/loss/mesh_laplacian_smoothing.py +++ b/pytorch3d/loss/mesh_laplacian_smoothing.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch diff --git a/pytorch3d/loss/mesh_normal_consistency.py b/pytorch3d/loss/mesh_normal_consistency.py index 49c9027e..59ab9ce8 100644 --- a/pytorch3d/loss/mesh_normal_consistency.py +++ b/pytorch3d/loss/mesh_normal_consistency.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch from pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. diff --git a/pytorch3d/loss/point_mesh_distance.py b/pytorch3d/loss/point_mesh_distance.py index bffe99e4..5b1edc5a 100644 --- a/pytorch3d/loss/point_mesh_distance.py +++ b/pytorch3d/loss/point_mesh_distance.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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-fixme[21]: Could not find name `_C` in `pytorch3d`. from pytorch3d import _C diff --git a/pytorch3d/ops/__init__.py b/pytorch3d/ops/__init__.py index 86179153..a9bf1196 100644 --- a/pytorch3d/ops/__init__.py +++ b/pytorch3d/ops/__init__.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from .cameras_alignment import corresponding_cameras_alignment from .cubify import cubify diff --git a/pytorch3d/ops/cameras_alignment.py b/pytorch3d/ops/cameras_alignment.py index 1eae538b..a196c04a 100644 --- a/pytorch3d/ops/cameras_alignment.py +++ b/pytorch3d/ops/cameras_alignment.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import TYPE_CHECKING diff --git a/pytorch3d/ops/cubify.py b/pytorch3d/ops/cubify.py index b2644708..b4b46491 100644 --- a/pytorch3d/ops/cubify.py +++ b/pytorch3d/ops/cubify.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch diff --git a/pytorch3d/ops/graph_conv.py b/pytorch3d/ops/graph_conv.py index 02e2a131..893faddf 100644 --- a/pytorch3d/ops/graph_conv.py +++ b/pytorch3d/ops/graph_conv.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch diff --git a/pytorch3d/ops/interp_face_attrs.py b/pytorch3d/ops/interp_face_attrs.py index e22392d0..bf083229 100644 --- a/pytorch3d/ops/interp_face_attrs.py +++ b/pytorch3d/ops/interp_face_attrs.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch from pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. diff --git a/pytorch3d/ops/knn.py b/pytorch3d/ops/knn.py index bd933eb0..cf3cef24 100644 --- a/pytorch3d/ops/knn.py +++ b/pytorch3d/ops/knn.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from collections import namedtuple from typing import Union diff --git a/pytorch3d/ops/marching_cubes.py b/pytorch3d/ops/marching_cubes.py index e1d6bca8..88719287 100644 --- a/pytorch3d/ops/marching_cubes.py +++ b/pytorch3d/ops/marching_cubes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import Dict, List, Optional, Tuple diff --git a/pytorch3d/ops/marching_cubes_data.py b/pytorch3d/ops/marching_cubes_data.py index 8ad92825..8fb7c68e 100644 --- a/pytorch3d/ops/marching_cubes_data.py +++ b/pytorch3d/ops/marching_cubes_data.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. # A length 256 list which maps a cubeindex to a number # with the intersected edges' bits set to 1. diff --git a/pytorch3d/ops/mesh_face_areas_normals.py b/pytorch3d/ops/mesh_face_areas_normals.py index 43ce33e7..79f937d2 100644 --- a/pytorch3d/ops/mesh_face_areas_normals.py +++ b/pytorch3d/ops/mesh_face_areas_normals.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch from pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. diff --git a/pytorch3d/ops/mesh_filtering.py b/pytorch3d/ops/mesh_filtering.py index a99f6490..e662b01a 100644 --- a/pytorch3d/ops/mesh_filtering.py +++ b/pytorch3d/ops/mesh_filtering.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import torch from pytorch3d.structures import Meshes, utils as struct_utils diff --git a/pytorch3d/ops/packed_to_padded.py b/pytorch3d/ops/packed_to_padded.py index cf92d54f..e1eec9dd 100644 --- a/pytorch3d/ops/packed_to_padded.py +++ b/pytorch3d/ops/packed_to_padded.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch from pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. diff --git a/pytorch3d/ops/perspective_n_points.py b/pytorch3d/ops/perspective_n_points.py index 89faf8c8..fae183c7 100644 --- a/pytorch3d/ops/perspective_n_points.py +++ b/pytorch3d/ops/perspective_n_points.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. """ This file contains Efficient PnP algorithm for Perspective-n-Points problem. diff --git a/pytorch3d/ops/points_alignment.py b/pytorch3d/ops/points_alignment.py index eedf8d51..e361f29a 100644 --- a/pytorch3d/ops/points_alignment.py +++ b/pytorch3d/ops/points_alignment.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import warnings from typing import TYPE_CHECKING, List, NamedTuple, Optional, Union diff --git a/pytorch3d/ops/points_normals.py b/pytorch3d/ops/points_normals.py index 0ec80780..d11be3b2 100644 --- a/pytorch3d/ops/points_normals.py +++ b/pytorch3d/ops/points_normals.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import TYPE_CHECKING, Tuple, Union diff --git a/pytorch3d/ops/points_to_volumes.py b/pytorch3d/ops/points_to_volumes.py index b247f549..6f1ddfae 100644 --- a/pytorch3d/ops/points_to_volumes.py +++ b/pytorch3d/ops/points_to_volumes.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + from typing import TYPE_CHECKING, Optional, Tuple import torch diff --git a/pytorch3d/ops/sample_points_from_meshes.py b/pytorch3d/ops/sample_points_from_meshes.py index 58d3f26b..f29aee0f 100644 --- a/pytorch3d/ops/sample_points_from_meshes.py +++ b/pytorch3d/ops/sample_points_from_meshes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. """ diff --git a/pytorch3d/ops/subdivide_meshes.py b/pytorch3d/ops/subdivide_meshes.py index 417a1447..537c2148 100644 --- a/pytorch3d/ops/subdivide_meshes.py +++ b/pytorch3d/ops/subdivide_meshes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch diff --git a/pytorch3d/ops/utils.py b/pytorch3d/ops/utils.py index cbc7f3d5..161d84b3 100644 --- a/pytorch3d/ops/utils.py +++ b/pytorch3d/ops/utils.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + from typing import TYPE_CHECKING, Optional, Tuple, Union import torch diff --git a/pytorch3d/ops/vert_align.py b/pytorch3d/ops/vert_align.py index 078f9678..bfcbb76e 100644 --- a/pytorch3d/ops/vert_align.py +++ b/pytorch3d/ops/vert_align.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch diff --git a/pytorch3d/renderer/__init__.py b/pytorch3d/renderer/__init__.py index b89d166d..e7ea9776 100644 --- a/pytorch3d/renderer/__init__.py +++ b/pytorch3d/renderer/__init__.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from .blending import ( BlendParams, diff --git a/pytorch3d/renderer/blending.py b/pytorch3d/renderer/blending.py index 7912ed61..7c0ba385 100644 --- a/pytorch3d/renderer/blending.py +++ b/pytorch3d/renderer/blending.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import NamedTuple, Sequence, Union diff --git a/pytorch3d/renderer/camera_utils.py b/pytorch3d/renderer/camera_utils.py index bc1c2007..5a7a8f2b 100644 --- a/pytorch3d/renderer/camera_utils.py +++ b/pytorch3d/renderer/camera_utils.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import Tuple diff --git a/pytorch3d/renderer/cameras.py b/pytorch3d/renderer/cameras.py index 3c2f894a..9013d95e 100644 --- a/pytorch3d/renderer/cameras.py +++ b/pytorch3d/renderer/cameras.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import math import warnings diff --git a/pytorch3d/renderer/compositing.py b/pytorch3d/renderer/compositing.py index 675d8f8d..f11e80b7 100644 --- a/pytorch3d/renderer/compositing.py +++ b/pytorch3d/renderer/compositing.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch from pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`. diff --git a/pytorch3d/renderer/implicit/__init__.py b/pytorch3d/renderer/implicit/__init__.py index 634e7046..248898ce 100644 --- a/pytorch3d/renderer/implicit/__init__.py +++ b/pytorch3d/renderer/implicit/__init__.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from .raymarching import AbsorptionOnlyRaymarcher, EmissionAbsorptionRaymarcher from .raysampling import GridRaysampler, MonteCarloRaysampler, NDCGridRaysampler diff --git a/pytorch3d/renderer/implicit/raymarching.py b/pytorch3d/renderer/implicit/raymarching.py index 2163c816..fedc22de 100644 --- a/pytorch3d/renderer/implicit/raymarching.py +++ b/pytorch3d/renderer/implicit/raymarching.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import warnings from typing import Optional, Tuple, Union diff --git a/pytorch3d/renderer/implicit/raysampling.py b/pytorch3d/renderer/implicit/raysampling.py index 3d5399e4..6d330cc5 100644 --- a/pytorch3d/renderer/implicit/raysampling.py +++ b/pytorch3d/renderer/implicit/raysampling.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import torch from ..cameras import CamerasBase diff --git a/pytorch3d/renderer/implicit/renderer.py b/pytorch3d/renderer/implicit/renderer.py index b8ef24e6..4db03641 100644 --- a/pytorch3d/renderer/implicit/renderer.py +++ b/pytorch3d/renderer/implicit/renderer.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + from typing import Callable, Tuple import torch diff --git a/pytorch3d/renderer/implicit/utils.py b/pytorch3d/renderer/implicit/utils.py index 5a6a4265..c27870e3 100644 --- a/pytorch3d/renderer/implicit/utils.py +++ b/pytorch3d/renderer/implicit/utils.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + from typing import NamedTuple import torch diff --git a/pytorch3d/renderer/lighting.py b/pytorch3d/renderer/lighting.py index fc690573..38c8457e 100644 --- a/pytorch3d/renderer/lighting.py +++ b/pytorch3d/renderer/lighting.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch diff --git a/pytorch3d/renderer/materials.py b/pytorch3d/renderer/materials.py index ef428b93..c147891b 100644 --- a/pytorch3d/renderer/materials.py +++ b/pytorch3d/renderer/materials.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch diff --git a/pytorch3d/renderer/mesh/__init__.py b/pytorch3d/renderer/mesh/__init__.py index 49af5f57..8826c3d2 100644 --- a/pytorch3d/renderer/mesh/__init__.py +++ b/pytorch3d/renderer/mesh/__init__.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from .clip import ( diff --git a/pytorch3d/renderer/mesh/clip.py b/pytorch3d/renderer/mesh/clip.py index c7360306..1d57fa37 100644 --- a/pytorch3d/renderer/mesh/clip.py +++ b/pytorch3d/renderer/mesh/clip.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import Any, List, Optional, Tuple diff --git a/pytorch3d/renderer/mesh/rasterize_meshes.py b/pytorch3d/renderer/mesh/rasterize_meshes.py index b75d11ac..492b0673 100644 --- a/pytorch3d/renderer/mesh/rasterize_meshes.py +++ b/pytorch3d/renderer/mesh/rasterize_meshes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import List, Optional, Tuple, Union diff --git a/pytorch3d/renderer/mesh/rasterizer.py b/pytorch3d/renderer/mesh/rasterizer.py index e66acf3f..bb7d87c3 100644 --- a/pytorch3d/renderer/mesh/rasterizer.py +++ b/pytorch3d/renderer/mesh/rasterizer.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import NamedTuple, Optional, Tuple, Union diff --git a/pytorch3d/renderer/mesh/renderer.py b/pytorch3d/renderer/mesh/renderer.py index 5dea1b57..02c308c4 100644 --- a/pytorch3d/renderer/mesh/renderer.py +++ b/pytorch3d/renderer/mesh/renderer.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch diff --git a/pytorch3d/renderer/mesh/shader.py b/pytorch3d/renderer/mesh/shader.py index 80751d9d..1a62ccd8 100644 --- a/pytorch3d/renderer/mesh/shader.py +++ b/pytorch3d/renderer/mesh/shader.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import warnings diff --git a/pytorch3d/renderer/mesh/shading.py b/pytorch3d/renderer/mesh/shading.py index 20c34bea..31c612aa 100644 --- a/pytorch3d/renderer/mesh/shading.py +++ b/pytorch3d/renderer/mesh/shading.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import Tuple diff --git a/pytorch3d/renderer/mesh/textures.py b/pytorch3d/renderer/mesh/textures.py index 6f855ddb..0d8dac6b 100644 --- a/pytorch3d/renderer/mesh/textures.py +++ b/pytorch3d/renderer/mesh/textures.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import itertools import warnings diff --git a/pytorch3d/renderer/mesh/utils.py b/pytorch3d/renderer/mesh/utils.py index 5ee9e2b5..359bd001 100644 --- a/pytorch3d/renderer/mesh/utils.py +++ b/pytorch3d/renderer/mesh/utils.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import List, NamedTuple, Tuple diff --git a/pytorch3d/renderer/points/__init__.py b/pytorch3d/renderer/points/__init__.py index f0ee9b02..0db6de5f 100644 --- a/pytorch3d/renderer/points/__init__.py +++ b/pytorch3d/renderer/points/__init__.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from .compositor import AlphaCompositor, NormWeightedCompositor from .pulsar.unified import PulsarPointsRenderer diff --git a/pytorch3d/renderer/points/compositor.py b/pytorch3d/renderer/points/compositor.py index 650f0a3a..034c0b6b 100644 --- a/pytorch3d/renderer/points/compositor.py +++ b/pytorch3d/renderer/points/compositor.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import warnings from typing import List, Optional, Tuple, Union diff --git a/pytorch3d/renderer/points/pulsar/__init__.py b/pytorch3d/renderer/points/pulsar/__init__.py index 383929f9..75229db7 100644 --- a/pytorch3d/renderer/points/pulsar/__init__.py +++ b/pytorch3d/renderer/points/pulsar/__init__.py @@ -1,2 +1,7 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + from .renderer import Renderer # noqa: F401 diff --git a/pytorch3d/renderer/points/pulsar/renderer.py b/pytorch3d/renderer/points/pulsar/renderer.py index bc541f1b..1c4acb8f 100644 --- a/pytorch3d/renderer/points/pulsar/renderer.py +++ b/pytorch3d/renderer/points/pulsar/renderer.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """pulsar renderer PyTorch integration. Proper Python support for pytorch requires creating a torch.autograd.function diff --git a/pytorch3d/renderer/points/pulsar/unified.py b/pytorch3d/renderer/points/pulsar/unified.py index 1375b9bf..33ba468c 100644 --- a/pytorch3d/renderer/points/pulsar/unified.py +++ b/pytorch3d/renderer/points/pulsar/unified.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import math import warnings from typing import Any, Dict, Optional, Tuple, Union diff --git a/pytorch3d/renderer/points/rasterize_points.py b/pytorch3d/renderer/points/rasterize_points.py index 06db9a53..801b38f2 100644 --- a/pytorch3d/renderer/points/rasterize_points.py +++ b/pytorch3d/renderer/points/rasterize_points.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import List, Optional, Tuple, Union diff --git a/pytorch3d/renderer/points/rasterizer.py b/pytorch3d/renderer/points/rasterizer.py index e8794f4c..9c959ad9 100644 --- a/pytorch3d/renderer/points/rasterizer.py +++ b/pytorch3d/renderer/points/rasterizer.py @@ -1,5 +1,9 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import NamedTuple, Optional, Tuple, Union diff --git a/pytorch3d/renderer/points/renderer.py b/pytorch3d/renderer/points/renderer.py index 31566369..fd881982 100644 --- a/pytorch3d/renderer/points/renderer.py +++ b/pytorch3d/renderer/points/renderer.py @@ -1,5 +1,10 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import torch import torch.nn as nn diff --git a/pytorch3d/renderer/utils.py b/pytorch3d/renderer/utils.py index 937e31ef..fb48f67f 100644 --- a/pytorch3d/renderer/utils.py +++ b/pytorch3d/renderer/utils.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import copy diff --git a/pytorch3d/structures/__init__.py b/pytorch3d/structures/__init__.py index bfabd3ec..37ddba7b 100644 --- a/pytorch3d/structures/__init__.py +++ b/pytorch3d/structures/__init__.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from .meshes import Meshes, join_meshes_as_batch, join_meshes_as_scene from .pointclouds import Pointclouds diff --git a/pytorch3d/structures/meshes.py b/pytorch3d/structures/meshes.py index 92ba4da1..f24877bf 100644 --- a/pytorch3d/structures/meshes.py +++ b/pytorch3d/structures/meshes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import List, Union diff --git a/pytorch3d/structures/pointclouds.py b/pytorch3d/structures/pointclouds.py index 9a43717b..0f2d3171 100644 --- a/pytorch3d/structures/pointclouds.py +++ b/pytorch3d/structures/pointclouds.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch diff --git a/pytorch3d/structures/utils.py b/pytorch3d/structures/utils.py index d8b888a3..2db34e4f 100644 --- a/pytorch3d/structures/utils.py +++ b/pytorch3d/structures/utils.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import List, Sequence, Tuple, Union diff --git a/pytorch3d/structures/volumes.py b/pytorch3d/structures/volumes.py index 6f9011b0..66b90019 100644 --- a/pytorch3d/structures/volumes.py +++ b/pytorch3d/structures/volumes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import copy from typing import List, Optional, Tuple, Union diff --git a/pytorch3d/transforms/__init__.py b/pytorch3d/transforms/__init__.py index 81da4957..14d51f0f 100644 --- a/pytorch3d/transforms/__init__.py +++ b/pytorch3d/transforms/__init__.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from .math import acos_linear_extrapolation from .rotation_conversions import ( diff --git a/pytorch3d/transforms/math.py b/pytorch3d/transforms/math.py index ff513d69..41adea17 100644 --- a/pytorch3d/transforms/math.py +++ b/pytorch3d/transforms/math.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import math from typing import Tuple, Union diff --git a/pytorch3d/transforms/rotation_conversions.py b/pytorch3d/transforms/rotation_conversions.py index b4140f29..03ae3409 100644 --- a/pytorch3d/transforms/rotation_conversions.py +++ b/pytorch3d/transforms/rotation_conversions.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import functools from typing import Optional diff --git a/pytorch3d/transforms/se3.py b/pytorch3d/transforms/se3.py index e14c720a..fd17eb56 100644 --- a/pytorch3d/transforms/se3.py +++ b/pytorch3d/transforms/se3.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch diff --git a/pytorch3d/transforms/so3.py b/pytorch3d/transforms/so3.py index 5de8ee8e..9986005a 100644 --- a/pytorch3d/transforms/so3.py +++ b/pytorch3d/transforms/so3.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from typing import Tuple diff --git a/pytorch3d/transforms/transform3d.py b/pytorch3d/transforms/transform3d.py index 9273d416..cff5928c 100644 --- a/pytorch3d/transforms/transform3d.py +++ b/pytorch3d/transforms/transform3d.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import math import warnings diff --git a/pytorch3d/utils/__init__.py b/pytorch3d/utils/__init__.py index 0be7bc3d..b5b3f46a 100644 --- a/pytorch3d/utils/__init__.py +++ b/pytorch3d/utils/__init__.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from .camera_conversions import cameras_from_opencv_projection from .ico_sphere import ico_sphere diff --git a/pytorch3d/utils/camera_conversions.py b/pytorch3d/utils/camera_conversions.py index 5d05ea8d..077d74b2 100644 --- a/pytorch3d/utils/camera_conversions.py +++ b/pytorch3d/utils/camera_conversions.py @@ -1,3 +1,9 @@ +# Copyright (c) Facebook, Inc. and its 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. + import torch from ..renderer import PerspectiveCameras diff --git a/pytorch3d/utils/ico_sphere.py b/pytorch3d/utils/ico_sphere.py index 64f108d3..5c4cc74f 100644 --- a/pytorch3d/utils/ico_sphere.py +++ b/pytorch3d/utils/ico_sphere.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import torch diff --git a/pytorch3d/utils/torus.py b/pytorch3d/utils/torus.py index b1cbba36..46157da4 100644 --- a/pytorch3d/utils/torus.py +++ b/pytorch3d/utils/torus.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import tee from math import cos, pi, sin diff --git a/pytorch3d/vis/__init__.py b/pytorch3d/vis/__init__.py index 40539064..10a55772 100644 --- a/pytorch3d/vis/__init__.py +++ b/pytorch3d/vis/__init__.py @@ -1 +1,5 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. diff --git a/pytorch3d/vis/plotly_vis.py b/pytorch3d/vis/plotly_vis.py index 7635c27a..ec9717b5 100644 --- a/pytorch3d/vis/plotly_vis.py +++ b/pytorch3d/vis/plotly_vis.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import warnings from typing import Dict, List, NamedTuple, Optional, Tuple, Union diff --git a/pytorch3d/vis/texture_vis.py b/pytorch3d/vis/texture_vis.py index 8e9d3c9d..fb94133a 100644 --- a/pytorch3d/vis/texture_vis.py +++ b/pytorch3d/vis/texture_vis.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + from typing import Optional import numpy as np diff --git a/scripts/build_website.sh b/scripts/build_website.sh index ea8c27a4..822fc3ac 100644 --- a/scripts/build_website.sh +++ b/scripts/build_website.sh @@ -1,5 +1,9 @@ #!/bin/bash -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. # run this script from the project root using `./scripts/build_docs.sh` diff --git a/scripts/parse_tutorials.py b/scripts/parse_tutorials.py index 6b4a9c05..0f40b64c 100755 --- a/scripts/parse_tutorials.py +++ b/scripts/parse_tutorials.py @@ -1,5 +1,9 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import argparse import json diff --git a/scripts/publish_website.sh b/scripts/publish_website.sh index aa88a166..5c807a5d 100644 --- a/scripts/publish_website.sh +++ b/scripts/publish_website.sh @@ -1,5 +1,9 @@ #!/bin/bash -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. usage() { echo "Usage: $0 [-b]" diff --git a/setup.py b/setup.py index a12abb14..18f04292 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,9 @@ #!/usr/bin/env python -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import glob import os diff --git a/tests/__init__.py b/tests/__init__.py index 40539064..10a55772 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1 +1,5 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. diff --git a/tests/bm_acos_linear_extrapolation.py b/tests/bm_acos_linear_extrapolation.py index 7902b292..26ba2fce 100644 --- a/tests/bm_acos_linear_extrapolation.py +++ b/tests/bm_acos_linear_extrapolation.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from fvcore.common.benchmark import benchmark from test_acos_linear_extrapolation import TestAcosLinearExtrapolation diff --git a/tests/bm_barycentric_clipping.py b/tests/bm_barycentric_clipping.py index d55c3c0c..578425c5 100644 --- a/tests/bm_barycentric_clipping.py +++ b/tests/bm_barycentric_clipping.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_blending.py b/tests/bm_blending.py index 7febc7ad..847d4b0c 100644 --- a/tests/bm_blending.py +++ b/tests/bm_blending.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_cameras_alignment.py b/tests/bm_cameras_alignment.py index 128cc9c8..8db42f86 100644 --- a/tests/bm_cameras_alignment.py +++ b/tests/bm_cameras_alignment.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import itertools diff --git a/tests/bm_chamfer.py b/tests/bm_chamfer.py index 5cdee080..fd8e6e8e 100644 --- a/tests/bm_chamfer.py +++ b/tests/bm_chamfer.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_cubify.py b/tests/bm_cubify.py index 632a1751..cc36565d 100644 --- a/tests/bm_cubify.py +++ b/tests/bm_cubify.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from fvcore.common.benchmark import benchmark from test_cubify import TestCubify diff --git a/tests/bm_face_areas_normals.py b/tests/bm_face_areas_normals.py index 66f85c23..9f8ce860 100644 --- a/tests/bm_face_areas_normals.py +++ b/tests/bm_face_areas_normals.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_graph_conv.py b/tests/bm_graph_conv.py index bf77b8b5..5b3fa0e6 100644 --- a/tests/bm_graph_conv.py +++ b/tests/bm_graph_conv.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_interpolate_face_attributes.py b/tests/bm_interpolate_face_attributes.py index f721eead..aaaee136 100644 --- a/tests/bm_interpolate_face_attributes.py +++ b/tests/bm_interpolate_face_attributes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_knn.py b/tests/bm_knn.py index 5a894a22..9d37ab2b 100644 --- a/tests/bm_knn.py +++ b/tests/bm_knn.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_lighting.py b/tests/bm_lighting.py index cc9fcb88..584a6c9b 100644 --- a/tests/bm_lighting.py +++ b/tests/bm_lighting.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_main.py b/tests/bm_main.py index 26665092..ce69145d 100755 --- a/tests/bm_main.py +++ b/tests/bm_main.py @@ -1,5 +1,9 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import glob import os diff --git a/tests/bm_marching_cubes.py b/tests/bm_marching_cubes.py index 288b8345..5ba9bef9 100644 --- a/tests/bm_marching_cubes.py +++ b/tests/bm_marching_cubes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from fvcore.common.benchmark import benchmark from test_marching_cubes import TestMarchingCubes diff --git a/tests/bm_mesh_edge_loss.py b/tests/bm_mesh_edge_loss.py index 4410b0fb..9e026dc5 100644 --- a/tests/bm_mesh_edge_loss.py +++ b/tests/bm_mesh_edge_loss.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_mesh_io.py b/tests/bm_mesh_io.py index 6fc914bb..a79c0729 100644 --- a/tests/bm_mesh_io.py +++ b/tests/bm_mesh_io.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_mesh_laplacian_smoothing.py b/tests/bm_mesh_laplacian_smoothing.py index 7a3bd337..2b4b37db 100644 --- a/tests/bm_mesh_laplacian_smoothing.py +++ b/tests/bm_mesh_laplacian_smoothing.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_mesh_normal_consistency.py b/tests/bm_mesh_normal_consistency.py index f6f48699..73400b14 100644 --- a/tests/bm_mesh_normal_consistency.py +++ b/tests/bm_mesh_normal_consistency.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_mesh_rasterizer_transform.py b/tests/bm_mesh_rasterizer_transform.py index c21346b2..d258f120 100644 --- a/tests/bm_mesh_rasterizer_transform.py +++ b/tests/bm_mesh_rasterizer_transform.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_meshes.py b/tests/bm_meshes.py index bd14340a..6808de7c 100644 --- a/tests/bm_meshes.py +++ b/tests/bm_meshes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_packed_to_padded.py b/tests/bm_packed_to_padded.py index 5a8f9122..c59b19d8 100644 --- a/tests/bm_packed_to_padded.py +++ b/tests/bm_packed_to_padded.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_perspective_n_points.py b/tests/bm_perspective_n_points.py index c8f3e1b6..5f19e8a8 100644 --- a/tests/bm_perspective_n_points.py +++ b/tests/bm_perspective_n_points.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import itertools diff --git a/tests/bm_point_mesh_distance.py b/tests/bm_point_mesh_distance.py index 494806c7..d2f6abf3 100644 --- a/tests/bm_point_mesh_distance.py +++ b/tests/bm_point_mesh_distance.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_pointclouds.py b/tests/bm_pointclouds.py index 86362514..54058321 100644 --- a/tests/bm_pointclouds.py +++ b/tests/bm_pointclouds.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_points_alignment.py b/tests/bm_points_alignment.py index 559b1c8c..c2d017c7 100644 --- a/tests/bm_points_alignment.py +++ b/tests/bm_points_alignment.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from copy import deepcopy from itertools import product diff --git a/tests/bm_points_to_volumes.py b/tests/bm_points_to_volumes.py index 2eca07ae..f5431849 100644 --- a/tests/bm_points_to_volumes.py +++ b/tests/bm_points_to_volumes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import itertools diff --git a/tests/bm_pulsar.py b/tests/bm_pulsar.py index 6dfbe9f9..5b321819 100755 --- a/tests/bm_pulsar.py +++ b/tests/bm_pulsar.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """Test render speed.""" import logging import sys diff --git a/tests/bm_rasterize_meshes.py b/tests/bm_rasterize_meshes.py index a6948247..d4b5bd81 100644 --- a/tests/bm_rasterize_meshes.py +++ b/tests/bm_rasterize_meshes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_rasterize_points.py b/tests/bm_rasterize_points.py index 70e4a778..f436c234 100644 --- a/tests/bm_rasterize_points.py +++ b/tests/bm_rasterize_points.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_raymarching.py b/tests/bm_raymarching.py index 7e6ad923..e8bd6b37 100644 --- a/tests/bm_raymarching.py +++ b/tests/bm_raymarching.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import itertools diff --git a/tests/bm_raysampling.py b/tests/bm_raysampling.py index dae173f2..264f3be7 100644 --- a/tests/bm_raysampling.py +++ b/tests/bm_raysampling.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import itertools diff --git a/tests/bm_render_implicit.py b/tests/bm_render_implicit.py index 7063d334..5c23465c 100644 --- a/tests/bm_render_implicit.py +++ b/tests/bm_render_implicit.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import itertools diff --git a/tests/bm_render_volumes.py b/tests/bm_render_volumes.py index c8fe17cd..22ae57b9 100644 --- a/tests/bm_render_volumes.py +++ b/tests/bm_render_volumes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import itertools diff --git a/tests/bm_sample_points_from_meshes.py b/tests/bm_sample_points_from_meshes.py index 630b4a76..420ab62e 100644 --- a/tests/bm_sample_points_from_meshes.py +++ b/tests/bm_sample_points_from_meshes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_se3.py b/tests/bm_se3.py index d6e92e20..1708a49d 100644 --- a/tests/bm_se3.py +++ b/tests/bm_se3.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from fvcore.common.benchmark import benchmark from test_se3 import TestSE3 diff --git a/tests/bm_so3.py b/tests/bm_so3.py index 6762e2e5..cdb0ccc9 100644 --- a/tests/bm_so3.py +++ b/tests/bm_so3.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from fvcore.common.benchmark import benchmark from test_so3 import TestSO3 diff --git a/tests/bm_subdivide_meshes.py b/tests/bm_subdivide_meshes.py index e74fc09c..59571c95 100644 --- a/tests/bm_subdivide_meshes.py +++ b/tests/bm_subdivide_meshes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/bm_vert_align.py b/tests/bm_vert_align.py index 092d5dd2..3ebb0fcb 100644 --- a/tests/bm_vert_align.py +++ b/tests/bm_vert_align.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. from itertools import product diff --git a/tests/common_testing.py b/tests/common_testing.py index b0ffdf6b..ea57cb8d 100644 --- a/tests/common_testing.py +++ b/tests/common_testing.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import os import unittest diff --git a/tests/pulsar/__init__.py b/tests/pulsar/__init__.py index 40539064..10a55772 100644 --- a/tests/pulsar/__init__.py +++ b/tests/pulsar/__init__.py @@ -1 +1,5 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. diff --git a/tests/pulsar/create_multiview.py b/tests/pulsar/create_multiview.py index c74c93fe..5d386abd 100644 --- a/tests/pulsar/create_multiview.py +++ b/tests/pulsar/create_multiview.py @@ -1,5 +1,10 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """Create multiview data.""" import sys from os import path diff --git a/tests/pulsar/test_channels.py b/tests/pulsar/test_channels.py index 2913e8b0..564715b3 100644 --- a/tests/pulsar/test_channels.py +++ b/tests/pulsar/test_channels.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """Test number of channels.""" import logging import sys diff --git a/tests/pulsar/test_depth.py b/tests/pulsar/test_depth.py index b1014467..c3b29507 100644 --- a/tests/pulsar/test_depth.py +++ b/tests/pulsar/test_depth.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """Test the sorting of the closest spheres.""" import logging import os diff --git a/tests/pulsar/test_forward.py b/tests/pulsar/test_forward.py index 44d175f0..8669590d 100644 --- a/tests/pulsar/test_forward.py +++ b/tests/pulsar/test_forward.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """Basic rendering test.""" import logging import os diff --git a/tests/pulsar/test_hands.py b/tests/pulsar/test_hands.py index 259bfe99..571e684c 100644 --- a/tests/pulsar/test_hands.py +++ b/tests/pulsar/test_hands.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """Test right hand/left hand system compatibility.""" import logging import sys diff --git a/tests/pulsar/test_ortho.py b/tests/pulsar/test_ortho.py index 64f377a1..0b3b4137 100644 --- a/tests/pulsar/test_ortho.py +++ b/tests/pulsar/test_ortho.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """Tests for the orthogonal projection.""" import logging import sys diff --git a/tests/pulsar/test_small_spheres.py b/tests/pulsar/test_small_spheres.py index 398cc65e..0577415d 100644 --- a/tests/pulsar/test_small_spheres.py +++ b/tests/pulsar/test_small_spheres.py @@ -1,5 +1,10 @@ #!/usr/bin/env python3 -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """Test right hand/left hand system compatibility.""" import sys import unittest diff --git a/tests/test_acos_linear_extrapolation.py b/tests/test_acos_linear_extrapolation.py index b4c73a7c..672fb2bb 100644 --- a/tests/test_acos_linear_extrapolation.py +++ b/tests/test_acos_linear_extrapolation.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_blending.py b/tests/test_blending.py index 8a2f90b3..a97500b5 100644 --- a/tests/test_blending.py +++ b/tests/test_blending.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_build.py b/tests/test_build.py index e47cd292..61cc777e 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import json import os import unittest diff --git a/tests/test_camera_conversions.py b/tests/test_camera_conversions.py index 8ae13c1f..851b93bf 100644 --- a/tests/test_camera_conversions.py +++ b/tests/test_camera_conversions.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import json diff --git a/tests/test_camera_utils.py b/tests/test_camera_utils.py index b0abf130..a90ea0e9 100644 --- a/tests/test_camera_utils.py +++ b/tests/test_camera_utils.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest from math import radians diff --git a/tests/test_cameras.py b/tests/test_cameras.py index f401a09d..60299beb 100644 --- a/tests/test_cameras.py +++ b/tests/test_cameras.py @@ -1,6 +1,10 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. - +# Copyright (c) Facebook, Inc. and its 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. +# @lint-ignore-every LICENSELINT # Some of the code below is adapted from Soft Rasterizer (SoftRas) # # Copyright (c) 2017 Hiroharu Kato diff --git a/tests/test_cameras_alignment.py b/tests/test_cameras_alignment.py index ba5bd402..7f53aea6 100644 --- a/tests/test_cameras_alignment.py +++ b/tests/test_cameras_alignment.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_chamfer.py b/tests/test_chamfer.py index 4475e11e..54f2745d 100644 --- a/tests/test_chamfer.py +++ b/tests/test_chamfer.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest from collections import namedtuple diff --git a/tests/test_common_testing.py b/tests/test_common_testing.py index 16e36fad..30f956ab 100644 --- a/tests/test_common_testing.py +++ b/tests/test_common_testing.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_compositing.py b/tests/test_compositing.py index 42e3ecc1..bee48897 100644 --- a/tests/test_compositing.py +++ b/tests/test_compositing.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_cubify.py b/tests/test_cubify.py index ce3fda66..62097f40 100644 --- a/tests/test_cubify.py +++ b/tests/test_cubify.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_face_areas_normals.py b/tests/test_face_areas_normals.py index 9ed5c598..72f44334 100644 --- a/tests/test_face_areas_normals.py +++ b/tests/test_face_areas_normals.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_graph_conv.py b/tests/test_graph_conv.py index a3ac605d..6bd1a342 100644 --- a/tests/test_graph_conv.py +++ b/tests/test_graph_conv.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_interpolate_face_attributes.py b/tests/test_interpolate_face_attributes.py index ef5f57e4..b3e6fc01 100644 --- a/tests/test_interpolate_face_attributes.py +++ b/tests/test_interpolate_face_attributes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_io_gltf.py b/tests/test_io_gltf.py index 4042e9c3..12b5427a 100644 --- a/tests/test_io_gltf.py +++ b/tests/test_io_gltf.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest from math import radians diff --git a/tests/test_io_obj.py b/tests/test_io_obj.py index 34b488b2..19dcfc77 100644 --- a/tests/test_io_obj.py +++ b/tests/test_io_obj.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import os import unittest diff --git a/tests/test_io_off.py b/tests/test_io_off.py index c28fe7fd..51830f45 100644 --- a/tests/test_io_off.py +++ b/tests/test_io_off.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest from tempfile import NamedTemporaryFile diff --git a/tests/test_io_ply.py b/tests/test_io_ply.py index e6a24362..95c77590 100644 --- a/tests/test_io_ply.py +++ b/tests/test_io_ply.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import itertools import struct diff --git a/tests/test_knn.py b/tests/test_knn.py index 364a5889..b25b952a 100644 --- a/tests/test_knn.py +++ b/tests/test_knn.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest from itertools import product diff --git a/tests/test_lighting.py b/tests/test_lighting.py index 6dcc1ba6..235d5b34 100644 --- a/tests/test_lighting.py +++ b/tests/test_lighting.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_marching_cubes.py b/tests/test_marching_cubes.py index 1cc9ae2d..ab946713 100644 --- a/tests/test_marching_cubes.py +++ b/tests/test_marching_cubes.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import os import pickle import unittest diff --git a/tests/test_materials.py b/tests/test_materials.py index ae1826d8..d7f8ef1f 100644 --- a/tests/test_materials.py +++ b/tests/test_materials.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_mesh_edge_loss.py b/tests/test_mesh_edge_loss.py index f21a05b3..36e3414a 100644 --- a/tests/test_mesh_edge_loss.py +++ b/tests/test_mesh_edge_loss.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_mesh_filtering.py b/tests/test_mesh_filtering.py index 098d44f3..f6a06d31 100644 --- a/tests/test_mesh_filtering.py +++ b/tests/test_mesh_filtering.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_mesh_laplacian_smoothing.py b/tests/test_mesh_laplacian_smoothing.py index 14bc2639..7c04f39b 100644 --- a/tests/test_mesh_laplacian_smoothing.py +++ b/tests/test_mesh_laplacian_smoothing.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_mesh_normal_consistency.py b/tests/test_mesh_normal_consistency.py index 23bd1c61..562ee991 100644 --- a/tests/test_mesh_normal_consistency.py +++ b/tests/test_mesh_normal_consistency.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_mesh_rendering_utils.py b/tests/test_mesh_rendering_utils.py index 92347097..d367d125 100644 --- a/tests/test_mesh_rendering_utils.py +++ b/tests/test_mesh_rendering_utils.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_meshes.py b/tests/test_meshes.py index 929bebcb..da9d78f0 100644 --- a/tests/test_meshes.py +++ b/tests/test_meshes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import itertools import random diff --git a/tests/test_ops_utils.py b/tests/test_ops_utils.py index ebac01ec..d12a93b3 100644 --- a/tests/test_ops_utils.py +++ b/tests/test_ops_utils.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import unittest import numpy as np diff --git a/tests/test_packed_to_padded.py b/tests/test_packed_to_padded.py index 4f8b5176..44f95bf9 100644 --- a/tests/test_packed_to_padded.py +++ b/tests/test_packed_to_padded.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_perspective_n_points.py b/tests/test_perspective_n_points.py index fcd305e6..6f09831d 100644 --- a/tests/test_perspective_n_points.py +++ b/tests/test_perspective_n_points.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_point_mesh_distance.py b/tests/test_point_mesh_distance.py index 6f35af0f..6b06fda6 100644 --- a/tests/test_point_mesh_distance.py +++ b/tests/test_point_mesh_distance.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_pointclouds.py b/tests/test_pointclouds.py index 75b28266..aaeb3d05 100644 --- a/tests/test_pointclouds.py +++ b/tests/test_pointclouds.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import itertools import random diff --git a/tests/test_points_alignment.py b/tests/test_points_alignment.py index 31da12e9..84b3eeeb 100644 --- a/tests/test_points_alignment.py +++ b/tests/test_points_alignment.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_points_normals.py b/tests/test_points_normals.py index bd20ac1b..945b6487 100644 --- a/tests/test_points_normals.py +++ b/tests/test_points_normals.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest from typing import Tuple, Union diff --git a/tests/test_points_to_volumes.py b/tests/test_points_to_volumes.py index e169f585..91b790f8 100644 --- a/tests/test_points_to_volumes.py +++ b/tests/test_points_to_volumes.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import unittest from typing import Tuple diff --git a/tests/test_r2n2.py b/tests/test_r2n2.py index a4e2bccc..0efa94db 100644 --- a/tests/test_r2n2.py +++ b/tests/test_r2n2.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """ Sanity checks for loading R2N2. """ diff --git a/tests/test_rasterize_meshes.py b/tests/test_rasterize_meshes.py index 07768234..306c2215 100644 --- a/tests/test_rasterize_meshes.py +++ b/tests/test_rasterize_meshes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import functools import unittest diff --git a/tests/test_rasterize_points.py b/tests/test_rasterize_points.py index 0ffb94fe..6335ce84 100644 --- a/tests/test_rasterize_points.py +++ b/tests/test_rasterize_points.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_rasterize_rectangle_images.py b/tests/test_rasterize_rectangle_images.py index 69816e81..d3d70eef 100644 --- a/tests/test_rasterize_rectangle_images.py +++ b/tests/test_rasterize_rectangle_images.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest from itertools import product diff --git a/tests/test_rasterizer.py b/tests/test_rasterizer.py index b2a58df9..c177f99d 100644 --- a/tests/test_rasterizer.py +++ b/tests/test_rasterizer.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_raymarching.py b/tests/test_raymarching.py index 93952349..b20b6998 100644 --- a/tests/test_raymarching.py +++ b/tests/test_raymarching.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_raysampling.py b/tests/test_raysampling.py index dffa7510..2a188443 100644 --- a/tests/test_raysampling.py +++ b/tests/test_raysampling.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_render_implicit.py b/tests/test_render_implicit.py index 4c067810..7a4ce851 100644 --- a/tests/test_render_implicit.py +++ b/tests/test_render_implicit.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import unittest import numpy as np diff --git a/tests/test_render_meshes.py b/tests/test_render_meshes.py index 71c54b6d..8912b471 100644 --- a/tests/test_render_meshes.py +++ b/tests/test_render_meshes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. """ diff --git a/tests/test_render_meshes_clipped.py b/tests/test_render_meshes_clipped.py index d302b8ce..3a3faf3b 100644 --- a/tests/test_render_meshes_clipped.py +++ b/tests/test_render_meshes_clipped.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. """ diff --git a/tests/test_render_multigpu.py b/tests/test_render_multigpu.py index 2e29aa0a..40ff9f1d 100644 --- a/tests/test_render_multigpu.py +++ b/tests/test_render_multigpu.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_render_points.py b/tests/test_render_points.py index faa99cac..4fc19dad 100644 --- a/tests/test_render_points.py +++ b/tests/test_render_points.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. """ diff --git a/tests/test_render_volumes.py b/tests/test_render_volumes.py index 0dac3e51..cef76d79 100644 --- a/tests/test_render_volumes.py +++ b/tests/test_render_volumes.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import unittest from typing import Optional, Tuple diff --git a/tests/test_rendering_utils.py b/tests/test_rendering_utils.py index 118f3845..dc60b00a 100644 --- a/tests/test_rendering_utils.py +++ b/tests/test_rendering_utils.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_rotation_conversions.py b/tests/test_rotation_conversions.py index afcf9c47..85888a45 100644 --- a/tests/test_rotation_conversions.py +++ b/tests/test_rotation_conversions.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import itertools diff --git a/tests/test_sample_points_from_meshes.py b/tests/test_sample_points_from_meshes.py index bf883fc7..eefd8d29 100644 --- a/tests/test_sample_points_from_meshes.py +++ b/tests/test_sample_points_from_meshes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_se3.py b/tests/test_se3.py index 0338e9b8..40121f27 100644 --- a/tests/test_se3.py +++ b/tests/test_se3.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_shader.py b/tests/test_shader.py index d6c3f5ec..11ad66d5 100644 --- a/tests/test_shader.py +++ b/tests/test_shader.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_shapenet_core.py b/tests/test_shapenet_core.py index 260c95e9..177a8a11 100644 --- a/tests/test_shapenet_core.py +++ b/tests/test_shapenet_core.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + """ Sanity checks for loading ShapeNetCore. """ diff --git a/tests/test_so3.py b/tests/test_so3.py index 85ec908c..2d129869 100644 --- a/tests/test_so3.py +++ b/tests/test_so3.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import math diff --git a/tests/test_struct_utils.py b/tests/test_struct_utils.py index dfb26740..c9156431 100644 --- a/tests/test_struct_utils.py +++ b/tests/test_struct_utils.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_subdivide_meshes.py b/tests/test_subdivide_meshes.py index 6b5d2f6f..2db31285 100644 --- a/tests/test_subdivide_meshes.py +++ b/tests/test_subdivide_meshes.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_texturing.py b/tests/test_texturing.py index ceb0dc0d..148a1682 100644 --- a/tests/test_texturing.py +++ b/tests/test_texturing.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_transforms.py b/tests/test_transforms.py index 490a3201..a0ac4261 100644 --- a/tests/test_transforms.py +++ b/tests/test_transforms.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import math diff --git a/tests/test_vert_align.py b/tests/test_vert_align.py index 810e0e5a..5911a4b1 100644 --- a/tests/test_vert_align.py +++ b/tests/test_vert_align.py @@ -1,4 +1,8 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. import unittest diff --git a/tests/test_volumes.py b/tests/test_volumes.py index 9b4053d8..8747aa49 100644 --- a/tests/test_volumes.py +++ b/tests/test_volumes.py @@ -1,4 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +# Copyright (c) Facebook, Inc. and its 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. + import copy import itertools import random diff --git a/website/core/Footer.js b/website/core/Footer.js index 7d4c76ac..f640d5f1 100644 --- a/website/core/Footer.js +++ b/website/core/Footer.js @@ -1,7 +1,11 @@ /** - * Copyright (c) 2017-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its 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. */ + const PropTypes = require("prop-types"); const React = require('react'); diff --git a/website/core/Tutorial.js b/website/core/Tutorial.js index 8b1befbd..7dda462d 100644 --- a/website/core/Tutorial.js +++ b/website/core/Tutorial.js @@ -1,5 +1,10 @@ /** * Copyright (c) Facebook, Inc. and its 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. + * * @format */ diff --git a/website/core/TutorialSidebar.js b/website/core/TutorialSidebar.js index b8fad3db..1893d50d 100644 --- a/website/core/TutorialSidebar.js +++ b/website/core/TutorialSidebar.js @@ -1,5 +1,10 @@ /** * Copyright (c) Facebook, Inc. and its 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. + * * @format */ diff --git a/website/pages/en/help.js b/website/pages/en/help.js index fbf300a9..2417dd56 100644 --- a/website/pages/en/help.js +++ b/website/pages/en/help.js @@ -1,6 +1,10 @@ /** - * Copyright (c) 2017-present, Facebook, Inc. -**/ + * Copyright (c) Facebook, Inc. and its 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. + */ const React = require('react'); diff --git a/website/pages/en/index.js b/website/pages/en/index.js index 2f13738e..d0e69b83 100644 --- a/website/pages/en/index.js +++ b/website/pages/en/index.js @@ -1,6 +1,10 @@ /** - * Copyright (c) 2017-present, Facebook, Inc. -**/ + * Copyright (c) Facebook, Inc. and its 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. + */ const React = require('react'); diff --git a/website/pages/en/users.js b/website/pages/en/users.js index bccfb5cc..3168efca 100644 --- a/website/pages/en/users.js +++ b/website/pages/en/users.js @@ -1,7 +1,10 @@ /** - * Copyright (c) 2017-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its 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. + */ const React = require('react'); diff --git a/website/pages/tutorials/index.js b/website/pages/tutorials/index.js index bdd5dcd4..88052202 100644 --- a/website/pages/tutorials/index.js +++ b/website/pages/tutorials/index.js @@ -1,7 +1,12 @@ /** * Copyright (c) Facebook, Inc. and its 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. + * * @format - **/ + */ const React = require('react'); diff --git a/website/siteConfig.js b/website/siteConfig.js index d7826dd0..4ca32c7b 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -49,6 +49,7 @@ const siteConfig = { secondaryColor: '#FFAF00', }, + // @lint-ignore-every LICENSELINT // This copyright info is used in /core/Footer.js and blog RSS/Atom feeds. copyright: `Copyright \u{00A9} ${new Date().getFullYear()} Facebook Inc`, diff --git a/website/static/css/custom.css b/website/static/css/custom.css index c319b382..5d7ebee8 100644 --- a/website/static/css/custom.css +++ b/website/static/css/custom.css @@ -1,7 +1,10 @@ /** - * Copyright (c) 2017-present, Facebook, Inc. + * Copyright (c) Facebook, Inc. and its 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. + */ html body { font-family: 'Montserrat', sans-serif; diff --git a/website/static/css/pygments.css b/website/static/css/pygments.css index fee73547..91f1ae70 100644 --- a/website/static/css/pygments.css +++ b/website/static/css/pygments.css @@ -1,6 +1,10 @@ /** * Copyright (c) Facebook, Inc. and its 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. + */ .highlight .hll { background-color: #ffffcc;