diff --git a/README.md b/README.md index 9d7c64f..af9409c 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ python setup.py build_ext --inplace -j 1 See the [CONTRIBUTING](CONTRIBUTING.md) file for how to help out. ## License -DRTK is CC-BY-NC 4.0 licensed, as found in the [LICENSE](LICENSE) file. +DRTK is MIT licensed, as found in the [LICENSE](LICENSE) file. ## Citation ```bibtex diff --git a/drtk/__init__.py b/drtk/__init__.py index af171f0..d6dd16a 100644 --- a/drtk/__init__.py +++ b/drtk/__init__.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from . import utils # noqa # noqa diff --git a/drtk/edge_grad_estimator.py b/drtk/edge_grad_estimator.py index 46c6cc9..31868df 100644 --- a/drtk/edge_grad_estimator.py +++ b/drtk/edge_grad_estimator.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Callable, Optional, Tuple diff --git a/drtk/edge_grad_ext.pyi b/drtk/edge_grad_ext.pyi index 6ce28de..ac0d056 100644 --- a/drtk/edge_grad_ext.pyi +++ b/drtk/edge_grad_ext.pyi @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from torch import Tensor diff --git a/drtk/grid_scatter.py b/drtk/grid_scatter.py index e7df2b9..7fd6632 100644 --- a/drtk/grid_scatter.py +++ b/drtk/grid_scatter.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Optional diff --git a/drtk/grid_scatter_ext.pyi b/drtk/grid_scatter_ext.pyi index 54aad43..7dbbbfb 100644 --- a/drtk/grid_scatter_ext.pyi +++ b/drtk/grid_scatter_ext.pyi @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import List diff --git a/drtk/interpolate.py b/drtk/interpolate.py index 0db9468..dc06065 100644 --- a/drtk/interpolate.py +++ b/drtk/interpolate.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch as th diff --git a/drtk/interpolate_ext.pyi b/drtk/interpolate_ext.pyi index 1824df0..91eca0b 100644 --- a/drtk/interpolate_ext.pyi +++ b/drtk/interpolate_ext.pyi @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from torch import Tensor diff --git a/drtk/mipmap_grid_sample.py b/drtk/mipmap_grid_sample.py index 305bb21..7235caf 100644 --- a/drtk/mipmap_grid_sample.py +++ b/drtk/mipmap_grid_sample.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import List, Optional, Tuple diff --git a/drtk/mipmap_grid_sample_ext.pyi b/drtk/mipmap_grid_sample_ext.pyi index 65100b8..98c7c15 100644 --- a/drtk/mipmap_grid_sample_ext.pyi +++ b/drtk/mipmap_grid_sample_ext.pyi @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import List diff --git a/drtk/msi.py b/drtk/msi.py index 13490f1..a9a4b86 100644 --- a/drtk/msi.py +++ b/drtk/msi.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch as th diff --git a/drtk/msi_ext.pyi b/drtk/msi_ext.pyi index d7f1163..ba165d0 100644 --- a/drtk/msi_ext.pyi +++ b/drtk/msi_ext.pyi @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from torch import Tensor diff --git a/drtk/rasterize.py b/drtk/rasterize.py index 004cae6..8980651 100644 --- a/drtk/rasterize.py +++ b/drtk/rasterize.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Tuple diff --git a/drtk/rasterize_ext.pyi b/drtk/rasterize_ext.pyi index 8d57dc6..fdfef3a 100644 --- a/drtk/rasterize_ext.pyi +++ b/drtk/rasterize_ext.pyi @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import List diff --git a/drtk/render.py b/drtk/render.py index 479ebae..48cace9 100644 --- a/drtk/render.py +++ b/drtk/render.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from functools import lru_cache diff --git a/drtk/render_ext.pyi b/drtk/render_ext.pyi index cdc1bae..4671f7c 100644 --- a/drtk/render_ext.pyi +++ b/drtk/render_ext.pyi @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import List diff --git a/drtk/screen_space_uv_derivative.py b/drtk/screen_space_uv_derivative.py index 19dc853..fa8d0d4 100644 --- a/drtk/screen_space_uv_derivative.py +++ b/drtk/screen_space_uv_derivative.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Optional, Sequence diff --git a/drtk/transform.py b/drtk/transform.py index ce4b47e..aeeb8b9 100644 --- a/drtk/transform.py +++ b/drtk/transform.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Optional, Sequence, Tuple diff --git a/drtk/utils/__init__.py b/drtk/utils/__init__.py index 6c221ad..d559469 100644 --- a/drtk/utils/__init__.py +++ b/drtk/utils/__init__.py @@ -1,14 +1,13 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from drtk.utils.geometry import ( # noqa - face_dpdt, - face_info, - vert_binormals, - vert_normals, + face_dpdt, # noqa + face_info, # noqa + vert_binormals, # noqa + vert_normals, # noqa ) from drtk.utils.indexing import index # noqa from drtk.utils.projection import ( # noqa diff --git a/drtk/utils/geometry.py b/drtk/utils/geometry.py index 5c215a9..da93b14 100644 --- a/drtk/utils/geometry.py +++ b/drtk/utils/geometry.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Dict, List, Optional, Tuple, Union diff --git a/drtk/utils/indexing.py b/drtk/utils/indexing.py index 070da78..c40e7db 100644 --- a/drtk/utils/indexing.py +++ b/drtk/utils/indexing.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch as th diff --git a/drtk/utils/projection.py b/drtk/utils/projection.py index d66f9b6..46f6e31 100644 --- a/drtk/utils/projection.py +++ b/drtk/utils/projection.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Optional, Sequence, Set, Tuple, Union diff --git a/setup.py b/setup.py index 28ec8f3..51a0749 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os diff --git a/src/edge_grad/edge_grad_kernel.cu b/src/edge_grad/edge_grad_kernel.cu index 8eb65fc..cb66fad 100644 --- a/src/edge_grad/edge_grad_kernel.cu +++ b/src/edge_grad/edge_grad_kernel.cu @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include diff --git a/src/edge_grad/edge_grad_kernel.h b/src/edge_grad/edge_grad_kernel.h index 7221a39..df55393 100644 --- a/src/edge_grad/edge_grad_kernel.h +++ b/src/edge_grad/edge_grad_kernel.h @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #pragma once diff --git a/src/edge_grad/edge_grad_module.cpp b/src/edge_grad/edge_grad_module.cpp index 9cc27c3..6525d3b 100644 --- a/src/edge_grad/edge_grad_module.cpp +++ b/src/edge_grad/edge_grad_module.cpp @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include diff --git a/src/grid_scatter/grid_scatter_kernel.cu b/src/grid_scatter/grid_scatter_kernel.cu index e1e13d1..ce57ca6 100644 --- a/src/grid_scatter/grid_scatter_kernel.cu +++ b/src/grid_scatter/grid_scatter_kernel.cu @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include diff --git a/src/grid_scatter/grid_scatter_kernel.h b/src/grid_scatter/grid_scatter_kernel.h index 9aad391..afcb8ba 100644 --- a/src/grid_scatter/grid_scatter_kernel.h +++ b/src/grid_scatter/grid_scatter_kernel.h @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #pragma once diff --git a/src/grid_scatter/grid_scatter_module.cpp b/src/grid_scatter/grid_scatter_module.cpp index 3f816d5..e824ae4 100644 --- a/src/grid_scatter/grid_scatter_module.cpp +++ b/src/grid_scatter/grid_scatter_module.cpp @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include diff --git a/src/include/grid_utils.h b/src/include/grid_utils.h index e8ef326..6698404 100644 --- a/src/include/grid_utils.h +++ b/src/include/grid_utils.h @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #pragma once diff --git a/src/include/kernel_utils.h b/src/include/kernel_utils.h index 9f117ab..dfc29d2 100644 --- a/src/include/kernel_utils.h +++ b/src/include/kernel_utils.h @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #pragma once diff --git a/src/include/tensor_list.h b/src/include/tensor_list.h index 806afe2..43e6c60 100644 --- a/src/include/tensor_list.h +++ b/src/include/tensor_list.h @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #pragma once diff --git a/src/interpolate/interpolate_kernel.cu b/src/interpolate/interpolate_kernel.cu index b8132ff..b82bae5 100644 --- a/src/interpolate/interpolate_kernel.cu +++ b/src/interpolate/interpolate_kernel.cu @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include diff --git a/src/interpolate/interpolate_kernel.h b/src/interpolate/interpolate_kernel.h index d762d56..7af2311 100644 --- a/src/interpolate/interpolate_kernel.h +++ b/src/interpolate/interpolate_kernel.h @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #pragma once diff --git a/src/interpolate/interpolate_module.cpp b/src/interpolate/interpolate_module.cpp index eafac38..beb6e8f 100644 --- a/src/interpolate/interpolate_module.cpp +++ b/src/interpolate/interpolate_module.cpp @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include diff --git a/src/mipmap_grid_sampler/mipmap_grid_sampler_kernel.cu b/src/mipmap_grid_sampler/mipmap_grid_sampler_kernel.cu index 588c59e..4892202 100644 --- a/src/mipmap_grid_sampler/mipmap_grid_sampler_kernel.cu +++ b/src/mipmap_grid_sampler/mipmap_grid_sampler_kernel.cu @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include diff --git a/src/mipmap_grid_sampler/mipmap_grid_sampler_kernel.h b/src/mipmap_grid_sampler/mipmap_grid_sampler_kernel.h index 025cdbf..4a0ee83 100644 --- a/src/mipmap_grid_sampler/mipmap_grid_sampler_kernel.h +++ b/src/mipmap_grid_sampler/mipmap_grid_sampler_kernel.h @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #pragma once diff --git a/src/mipmap_grid_sampler/mipmap_grid_sampler_module.cpp b/src/mipmap_grid_sampler/mipmap_grid_sampler_module.cpp index 260e556..bcb4e67 100644 --- a/src/mipmap_grid_sampler/mipmap_grid_sampler_module.cpp +++ b/src/mipmap_grid_sampler/mipmap_grid_sampler_module.cpp @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include diff --git a/src/msi/msi_kernel.cu b/src/msi/msi_kernel.cu index 4f711d5..d828f14 100644 --- a/src/msi/msi_kernel.cu +++ b/src/msi/msi_kernel.cu @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include diff --git a/src/msi/msi_kernel.h b/src/msi/msi_kernel.h index 3059d00..b67244d 100644 --- a/src/msi/msi_kernel.h +++ b/src/msi/msi_kernel.h @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #pragma once diff --git a/src/msi/msi_module.cpp b/src/msi/msi_module.cpp index c40f3ee..88b8ec7 100644 --- a/src/msi/msi_module.cpp +++ b/src/msi/msi_module.cpp @@ -1,5 +1,5 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. - +// // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/src/rasterize/rasterize_kernel.cu b/src/rasterize/rasterize_kernel.cu index e979590..cdbfc80 100755 --- a/src/rasterize/rasterize_kernel.cu +++ b/src/rasterize/rasterize_kernel.cu @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include diff --git a/src/rasterize/rasterize_kernel.h b/src/rasterize/rasterize_kernel.h index 3dec964..a4515d5 100755 --- a/src/rasterize/rasterize_kernel.h +++ b/src/rasterize/rasterize_kernel.h @@ -1,5 +1,5 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. - +// // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/src/rasterize/rasterize_module.cpp b/src/rasterize/rasterize_module.cpp index c786126..60af5af 100755 --- a/src/rasterize/rasterize_module.cpp +++ b/src/rasterize/rasterize_module.cpp @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include diff --git a/src/render/render_kernel.cu b/src/render/render_kernel.cu index 470a28f..1a5cd28 100644 --- a/src/render/render_kernel.cu +++ b/src/render/render_kernel.cu @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include diff --git a/src/render/render_kernel.h b/src/render/render_kernel.h index 8c110ab..ea03a4f 100644 --- a/src/render/render_kernel.h +++ b/src/render/render_kernel.h @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #pragma once diff --git a/src/render/render_module.cpp b/src/render/render_module.cpp index 76bab72..7afb927 100644 --- a/src/render/render_module.cpp +++ b/src/render/render_module.cpp @@ -1,7 +1,6 @@ // Copyright (c) Meta Platforms, Inc. and affiliates. -// All rights reserved. // -// This source code is licensed under the license found in the +// This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include diff --git a/test/__init__.py b/test/__init__.py index 0952fcc..7bec24c 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -1,5 +1,4 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/test/two_triangles.py b/test/two_triangles.py index 3b09be9..bb1d492 100644 --- a/test/two_triangles.py +++ b/test/two_triangles.py @@ -1,7 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. # -# This source code is licensed under the license found in the +# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os