Skip to content

Commit

Permalink
Licence change to MIT
Browse files Browse the repository at this point in the history
Summary: Got legal approval 🥳

Reviewed By: una-dinosauria

Differential Revision: D63428775

fbshipit-source-id: 7568ef2861ef10c2bd0367a7195cbbedf96ec8be
  • Loading branch information
podgorskiy authored and facebook-github-bot committed Sep 26, 2024
1 parent b1aa6dc commit 36eb2e8
Show file tree
Hide file tree
Showing 49 changed files with 53 additions and 99 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/edge_grad_estimator.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/edge_grad_ext.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/grid_scatter.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/grid_scatter_ext.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/interpolate.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/interpolate_ext.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/mipmap_grid_sample.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/mipmap_grid_sample_ext.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/msi.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/msi_ext.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/rasterize.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/rasterize_ext.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/render.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/render_ext.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/screen_space_uv_derivative.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/transform.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
11 changes: 5 additions & 6 deletions drtk/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/utils/geometry.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/utils/indexing.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions drtk/utils/projection.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/edge_grad/edge_grad_kernel.cu
Original file line number Diff line number Diff line change
@@ -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 <c10/cuda/CUDAGuard.h>
Expand Down
3 changes: 1 addition & 2 deletions src/edge_grad/edge_grad_kernel.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/edge_grad/edge_grad_module.cpp
Original file line number Diff line number Diff line change
@@ -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 <torch/script.h>
Expand Down
3 changes: 1 addition & 2 deletions src/grid_scatter/grid_scatter_kernel.cu
Original file line number Diff line number Diff line change
@@ -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 <c10/cuda/CUDAGuard.h>
Expand Down
3 changes: 1 addition & 2 deletions src/grid_scatter/grid_scatter_kernel.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/grid_scatter/grid_scatter_module.cpp
Original file line number Diff line number Diff line change
@@ -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 <torch/script.h>
Expand Down
3 changes: 1 addition & 2 deletions src/include/grid_utils.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/include/kernel_utils.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/include/tensor_list.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/interpolate/interpolate_kernel.cu
Original file line number Diff line number Diff line change
@@ -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 <c10/cuda/CUDAGuard.h>
Expand Down
3 changes: 1 addition & 2 deletions src/interpolate/interpolate_kernel.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/interpolate/interpolate_module.cpp
Original file line number Diff line number Diff line change
@@ -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 <torch/script.h>
Expand Down
3 changes: 1 addition & 2 deletions src/mipmap_grid_sampler/mipmap_grid_sampler_kernel.cu
Original file line number Diff line number Diff line change
@@ -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 <c10/cuda/CUDAGuard.h>
Expand Down
3 changes: 1 addition & 2 deletions src/mipmap_grid_sampler/mipmap_grid_sampler_kernel.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/mipmap_grid_sampler/mipmap_grid_sampler_module.cpp
Original file line number Diff line number Diff line change
@@ -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 <torch/script.h>
Expand Down
3 changes: 1 addition & 2 deletions src/msi/msi_kernel.cu
Original file line number Diff line number Diff line change
@@ -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 <c10/cuda/CUDAGuard.h>
Expand Down
3 changes: 1 addition & 2 deletions src/msi/msi_kernel.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/msi/msi_module.cpp
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
3 changes: 1 addition & 2 deletions src/rasterize/rasterize_kernel.cu
Original file line number Diff line number Diff line change
@@ -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 <c10/cuda/CUDAGuard.h>
Expand Down
2 changes: 1 addition & 1 deletion src/rasterize/rasterize_kernel.h
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
Loading

0 comments on commit 36eb2e8

Please sign in to comment.