From 5433f831aca86010dddbd3c4c3713665c0aaae84 Mon Sep 17 00:00:00 2001 From: evonneng Date: Wed, 8 Jun 2022 13:31:13 -0700 Subject: [PATCH] add licensing headers (#27) * add licensing headers * add licensing to run actions * rerun headers file * remove trailing white spaces --- pyrad/__init__.py | 13 +++++++++++++ pyrad/cameras/cameras.py | 14 ++++++++++++++ pyrad/cameras/rays.py | 14 ++++++++++++++ pyrad/cuda/sampler.py | 14 ++++++++++++++ pyrad/data/__init__.py | 13 +++++++++++++ pyrad/data/dataloader.py | 14 ++++++++++++++ pyrad/data/format/__init__.py | 13 +++++++++++++ pyrad/data/format/blender.py | 14 ++++++++++++++ pyrad/data/format/friends.py | 14 ++++++++++++++ pyrad/data/format/instant_ngp.py | 14 ++++++++++++++ pyrad/data/format/llff.py | 14 ++++++++++++++ pyrad/data/image_dataset.py | 14 ++++++++++++++ pyrad/data/image_sampler.py | 14 ++++++++++++++ pyrad/data/pixel_sampler.py | 14 ++++++++++++++ pyrad/data/structs.py | 14 ++++++++++++++ pyrad/data/utils.py | 14 ++++++++++++++ pyrad/engine/__init__.py | 13 +++++++++++++ pyrad/engine/base.py | 13 +++++++++++++ pyrad/engine/trainer.py | 14 ++++++++++++++ pyrad/fields/__init__.py | 13 +++++++++++++ pyrad/fields/base.py | 14 ++++++++++++++ pyrad/fields/instant_ngp_field.py | 14 ++++++++++++++ pyrad/fields/modules/__init__.py | 14 ++++++++++++++ pyrad/fields/modules/base.py | 14 ++++++++++++++ pyrad/fields/modules/embedding.py | 14 ++++++++++++++ pyrad/fields/modules/encoding.py | 14 ++++++++++++++ pyrad/fields/modules/field_heads.py | 14 ++++++++++++++ pyrad/fields/modules/field_losses.py | 13 +++++++++++++ pyrad/fields/modules/mlp.py | 14 ++++++++++++++ pyrad/fields/nerf_field.py | 14 ++++++++++++++ pyrad/fields/nerfw_field.py | 14 ++++++++++++++ pyrad/fields/occupancy_fields/base.py | 13 +++++++++++++ pyrad/fields/occupancy_fields/occupancy_grid.py | 14 ++++++++++++++ pyrad/graphs/__init__.py | 13 +++++++++++++ pyrad/graphs/base.py | 14 ++++++++++++++ pyrad/graphs/instant_ngp.py | 14 ++++++++++++++ pyrad/graphs/modules/__init__.py | 13 +++++++++++++ pyrad/graphs/modules/ray_generator.py | 14 ++++++++++++++ pyrad/graphs/modules/ray_sampler.py | 14 ++++++++++++++ pyrad/graphs/modules/scene_colliders.py | 14 ++++++++++++++ pyrad/graphs/nerfw.py | 14 ++++++++++++++ pyrad/graphs/semantic_nerf.py | 14 ++++++++++++++ pyrad/graphs/tensorf.py | 14 ++++++++++++++ pyrad/graphs/vanilla_nerf.py | 14 ++++++++++++++ pyrad/optimizers/__init__.py | 13 +++++++++++++ pyrad/optimizers/loss.py | 14 ++++++++++++++ pyrad/optimizers/optimizers.py | 14 ++++++++++++++ pyrad/renderers/base.py | 13 +++++++++++++ pyrad/renderers/renderers.py | 14 ++++++++++++++ pyrad/utils/__init__.py | 13 +++++++++++++ pyrad/utils/callbacks.py | 14 ++++++++++++++ pyrad/utils/colors.py | 14 ++++++++++++++ pyrad/utils/comms.py | 14 ++++++++++++++ pyrad/utils/decorators.py | 14 ++++++++++++++ pyrad/utils/io.py | 14 ++++++++++++++ pyrad/utils/math.py | 14 ++++++++++++++ pyrad/utils/misc.py | 14 ++++++++++++++ pyrad/utils/profiler.py | 14 ++++++++++++++ pyrad/utils/visualization.py | 14 ++++++++++++++ pyrad/utils/writer.py | 14 ++++++++++++++ pyrad/viewer/__init__.py | 13 +++++++++++++ pyrad/viewer/plotly.py | 14 ++++++++++++++ scripts/debugging/run_actions.py | 3 +++ scripts/licensing/copyright.txt | 14 ++++++++++++++ scripts/licensing/license_headers.sh | 9 +++++++++ 65 files changed, 880 insertions(+) create mode 100644 scripts/licensing/copyright.txt create mode 100755 scripts/licensing/license_headers.sh diff --git a/pyrad/__init__.py b/pyrad/__init__.py index e69de29bb..02655775e 100644 --- a/pyrad/__init__.py +++ b/pyrad/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/pyrad/cameras/cameras.py b/pyrad/cameras/cameras.py index 86468835e..b055ebd2d 100644 --- a/pyrad/cameras/cameras.py +++ b/pyrad/cameras/cameras.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Camera Models """ diff --git a/pyrad/cameras/rays.py b/pyrad/cameras/rays.py index 348ac68fa..a88bb7f82 100644 --- a/pyrad/cameras/rays.py +++ b/pyrad/cameras/rays.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Some ray datastructures. """ diff --git a/pyrad/cuda/sampler.py b/pyrad/cuda/sampler.py index c7a657056..b61cf51a2 100644 --- a/pyrad/cuda/sampler.py +++ b/pyrad/cuda/sampler.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Sampler. """ diff --git a/pyrad/data/__init__.py b/pyrad/data/__init__.py index e69de29bb..02655775e 100644 --- a/pyrad/data/__init__.py +++ b/pyrad/data/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/pyrad/data/dataloader.py b/pyrad/data/dataloader.py index 55d620ee0..c4e8f1f66 100644 --- a/pyrad/data/dataloader.py +++ b/pyrad/data/dataloader.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Data loader. """ diff --git a/pyrad/data/format/__init__.py b/pyrad/data/format/__init__.py index e69de29bb..02655775e 100644 --- a/pyrad/data/format/__init__.py +++ b/pyrad/data/format/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/pyrad/data/format/blender.py b/pyrad/data/format/blender.py index 517009737..a34b642a7 100644 --- a/pyrad/data/format/blender.py +++ b/pyrad/data/format/blender.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Code to handle loading blender datasets. """ diff --git a/pyrad/data/format/friends.py b/pyrad/data/format/friends.py index cf24d84a6..15e865d2d 100644 --- a/pyrad/data/format/friends.py +++ b/pyrad/data/format/friends.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Code to handle loading friends datasets. """ diff --git a/pyrad/data/format/instant_ngp.py b/pyrad/data/format/instant_ngp.py index bb692ef4b..34c44f5a7 100644 --- a/pyrad/data/format/instant_ngp.py +++ b/pyrad/data/format/instant_ngp.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Code for loading instant-ngp dataset formats. # TODO diff --git a/pyrad/data/format/llff.py b/pyrad/data/format/llff.py index 119dfabda..cc52181b7 100644 --- a/pyrad/data/format/llff.py +++ b/pyrad/data/format/llff.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Code for loading the LLFF data. """ diff --git a/pyrad/data/image_dataset.py b/pyrad/data/image_dataset.py index 4b2d72bdb..a34a116ea 100644 --- a/pyrad/data/image_dataset.py +++ b/pyrad/data/image_dataset.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Some dataset code. """ diff --git a/pyrad/data/image_sampler.py b/pyrad/data/image_sampler.py index aeb9e866a..96b464958 100644 --- a/pyrad/data/image_sampler.py +++ b/pyrad/data/image_sampler.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Code for sampling images from a dataset of images. """ diff --git a/pyrad/data/pixel_sampler.py b/pyrad/data/pixel_sampler.py index a3eb5f1f9..1ee90d64b 100644 --- a/pyrad/data/pixel_sampler.py +++ b/pyrad/data/pixel_sampler.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Code for sampling pixels. """ diff --git a/pyrad/data/structs.py b/pyrad/data/structs.py index 3be74c363..a87e608f9 100644 --- a/pyrad/data/structs.py +++ b/pyrad/data/structs.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Dataset input structures. """ diff --git a/pyrad/data/utils.py b/pyrad/data/utils.py index d9b9033e3..a2e4fb0fc 100644 --- a/pyrad/data/utils.py +++ b/pyrad/data/utils.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Code for loading the dataset inputs and for caching the data for fast loading. """ diff --git a/pyrad/engine/__init__.py b/pyrad/engine/__init__.py index e69de29bb..02655775e 100644 --- a/pyrad/engine/__init__.py +++ b/pyrad/engine/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/pyrad/engine/base.py b/pyrad/engine/base.py index e69de29bb..02655775e 100644 --- a/pyrad/engine/base.py +++ b/pyrad/engine/base.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/pyrad/engine/trainer.py b/pyrad/engine/trainer.py index a59559caf..884a070f1 100644 --- a/pyrad/engine/trainer.py +++ b/pyrad/engine/trainer.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Code to train model. """ diff --git a/pyrad/fields/__init__.py b/pyrad/fields/__init__.py index e69de29bb..02655775e 100644 --- a/pyrad/fields/__init__.py +++ b/pyrad/fields/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/pyrad/fields/base.py b/pyrad/fields/base.py index 28009ffb7..6124e8dd8 100644 --- a/pyrad/fields/base.py +++ b/pyrad/fields/base.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Base class for the graphs. """ diff --git a/pyrad/fields/instant_ngp_field.py b/pyrad/fields/instant_ngp_field.py index 7b0619a80..2098e7580 100644 --- a/pyrad/fields/instant_ngp_field.py +++ b/pyrad/fields/instant_ngp_field.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Instant-NGP field implementations using tiny-cuda-nn, torch, .... """ diff --git a/pyrad/fields/modules/__init__.py b/pyrad/fields/modules/__init__.py index 80c8bcdb2..c4df6c625 100644 --- a/pyrad/fields/modules/__init__.py +++ b/pyrad/fields/modules/__init__.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """init field modules""" from .encoding import Encoding, ScalingAndOffset from .mlp import MLP diff --git a/pyrad/fields/modules/base.py b/pyrad/fields/modules/base.py index 1b74d2d2a..6009b9e64 100644 --- a/pyrad/fields/modules/base.py +++ b/pyrad/fields/modules/base.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ The field module baseclass. """ diff --git a/pyrad/fields/modules/embedding.py b/pyrad/fields/modules/embedding.py index 1fc29bb14..c372b4b64 100644 --- a/pyrad/fields/modules/embedding.py +++ b/pyrad/fields/modules/embedding.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Code for embeddings. """ diff --git a/pyrad/fields/modules/encoding.py b/pyrad/fields/modules/encoding.py index b28fb4ddf..c7a068fa6 100644 --- a/pyrad/fields/modules/encoding.py +++ b/pyrad/fields/modules/encoding.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Encoding functions """ diff --git a/pyrad/fields/modules/field_heads.py b/pyrad/fields/modules/field_heads.py index 18f558f85..24c6b0cd3 100644 --- a/pyrad/fields/modules/field_heads.py +++ b/pyrad/fields/modules/field_heads.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Collection of render heads """ diff --git a/pyrad/fields/modules/field_losses.py b/pyrad/fields/modules/field_losses.py index e69de29bb..02655775e 100644 --- a/pyrad/fields/modules/field_losses.py +++ b/pyrad/fields/modules/field_losses.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/pyrad/fields/modules/mlp.py b/pyrad/fields/modules/mlp.py index c464ab3bb..04f4d5779 100644 --- a/pyrad/fields/modules/mlp.py +++ b/pyrad/fields/modules/mlp.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Multi Layer Perceptron """ diff --git a/pyrad/fields/nerf_field.py b/pyrad/fields/nerf_field.py index 63faf25eb..6655670f8 100644 --- a/pyrad/fields/nerf_field.py +++ b/pyrad/fields/nerf_field.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Classic NeRF field""" diff --git a/pyrad/fields/nerfw_field.py b/pyrad/fields/nerfw_field.py index 2a62d7d61..4db99bb47 100644 --- a/pyrad/fields/nerfw_field.py +++ b/pyrad/fields/nerfw_field.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Fields for nerf-w""" from typing import Dict, Optional, Tuple diff --git a/pyrad/fields/occupancy_fields/base.py b/pyrad/fields/occupancy_fields/base.py index e69de29bb..02655775e 100644 --- a/pyrad/fields/occupancy_fields/base.py +++ b/pyrad/fields/occupancy_fields/base.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/pyrad/fields/occupancy_fields/occupancy_grid.py b/pyrad/fields/occupancy_fields/occupancy_grid.py index 517805fc3..66db1ac7b 100644 --- a/pyrad/fields/occupancy_fields/occupancy_grid.py +++ b/pyrad/fields/occupancy_fields/occupancy_grid.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Code to implement the density grid. """ diff --git a/pyrad/graphs/__init__.py b/pyrad/graphs/__init__.py index e69de29bb..02655775e 100644 --- a/pyrad/graphs/__init__.py +++ b/pyrad/graphs/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/pyrad/graphs/base.py b/pyrad/graphs/base.py index 6a090a5c8..9e133f4fe 100644 --- a/pyrad/graphs/base.py +++ b/pyrad/graphs/base.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ The Graph module contains all trainable parameters. """ diff --git a/pyrad/graphs/instant_ngp.py b/pyrad/graphs/instant_ngp.py index 68ea4250e..b20e67537 100644 --- a/pyrad/graphs/instant_ngp.py +++ b/pyrad/graphs/instant_ngp.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Implementation of Instant NGP. """ diff --git a/pyrad/graphs/modules/__init__.py b/pyrad/graphs/modules/__init__.py index e69de29bb..02655775e 100644 --- a/pyrad/graphs/modules/__init__.py +++ b/pyrad/graphs/modules/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/pyrad/graphs/modules/ray_generator.py b/pyrad/graphs/modules/ray_generator.py index 0d76e1711..fdfce0615 100644 --- a/pyrad/graphs/modules/ray_generator.py +++ b/pyrad/graphs/modules/ray_generator.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Ray generator. """ diff --git a/pyrad/graphs/modules/ray_sampler.py b/pyrad/graphs/modules/ray_sampler.py index 575e67ff9..0c74af005 100644 --- a/pyrad/graphs/modules/ray_sampler.py +++ b/pyrad/graphs/modules/ray_sampler.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Collection of sampling strategies """ diff --git a/pyrad/graphs/modules/scene_colliders.py b/pyrad/graphs/modules/scene_colliders.py index a4ef6fb78..65c9792b8 100644 --- a/pyrad/graphs/modules/scene_colliders.py +++ b/pyrad/graphs/modules/scene_colliders.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Ray generator. """ diff --git a/pyrad/graphs/nerfw.py b/pyrad/graphs/nerfw.py index 86a0b8e2e..0c8f054bf 100644 --- a/pyrad/graphs/nerfw.py +++ b/pyrad/graphs/nerfw.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ NeRF-W (NeRF in the wild) implementation. """ diff --git a/pyrad/graphs/semantic_nerf.py b/pyrad/graphs/semantic_nerf.py index 0bf752372..ccbec4ace 100644 --- a/pyrad/graphs/semantic_nerf.py +++ b/pyrad/graphs/semantic_nerf.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Semantic NeRF implementation. """ diff --git a/pyrad/graphs/tensorf.py b/pyrad/graphs/tensorf.py index b9ef32bfc..044a152fd 100644 --- a/pyrad/graphs/tensorf.py +++ b/pyrad/graphs/tensorf.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ TensorRF implementation. TODO: diff --git a/pyrad/graphs/vanilla_nerf.py b/pyrad/graphs/vanilla_nerf.py index 9ae52d098..a661bdef0 100644 --- a/pyrad/graphs/vanilla_nerf.py +++ b/pyrad/graphs/vanilla_nerf.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Implementation of vanilla nerf. """ diff --git a/pyrad/optimizers/__init__.py b/pyrad/optimizers/__init__.py index e69de29bb..02655775e 100644 --- a/pyrad/optimizers/__init__.py +++ b/pyrad/optimizers/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/pyrad/optimizers/loss.py b/pyrad/optimizers/loss.py index d59f38dcd..12f0c3dce 100644 --- a/pyrad/optimizers/loss.py +++ b/pyrad/optimizers/loss.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Collection of Losses """ diff --git a/pyrad/optimizers/optimizers.py b/pyrad/optimizers/optimizers.py index e0b0497df..38ef8e0c4 100644 --- a/pyrad/optimizers/optimizers.py +++ b/pyrad/optimizers/optimizers.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Optimizers class. """ diff --git a/pyrad/renderers/base.py b/pyrad/renderers/base.py index e69de29bb..02655775e 100644 --- a/pyrad/renderers/base.py +++ b/pyrad/renderers/base.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/pyrad/renderers/renderers.py b/pyrad/renderers/renderers.py index afb385b70..a966a6db2 100644 --- a/pyrad/renderers/renderers.py +++ b/pyrad/renderers/renderers.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Collection of renderers diff --git a/pyrad/utils/__init__.py b/pyrad/utils/__init__.py index e69de29bb..02655775e 100644 --- a/pyrad/utils/__init__.py +++ b/pyrad/utils/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/pyrad/utils/callbacks.py b/pyrad/utils/callbacks.py index e0963cd67..f82ab6992 100644 --- a/pyrad/utils/callbacks.py +++ b/pyrad/utils/callbacks.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Callback functions for training iterations """ diff --git a/pyrad/utils/colors.py b/pyrad/utils/colors.py index 343342c68..8e12d2127 100644 --- a/pyrad/utils/colors.py +++ b/pyrad/utils/colors.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Common Colors""" from typing import Union from omegaconf import ListConfig diff --git a/pyrad/utils/comms.py b/pyrad/utils/comms.py index 9a844ec2e..5115a197c 100644 --- a/pyrad/utils/comms.py +++ b/pyrad/utils/comms.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """functionality to handle multiprocessing syncing and communicating""" import torch import torch.distributed as dist diff --git a/pyrad/utils/decorators.py b/pyrad/utils/decorators.py index 4765f1e4b..19529f48c 100644 --- a/pyrad/utils/decorators.py +++ b/pyrad/utils/decorators.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Decorator definitions """ diff --git a/pyrad/utils/io.py b/pyrad/utils/io.py index ce735c9b7..6724d2e36 100644 --- a/pyrad/utils/io.py +++ b/pyrad/utils/io.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Input/output utils. """ diff --git a/pyrad/utils/math.py b/pyrad/utils/math.py index c28d5da62..97ffccc6a 100644 --- a/pyrad/utils/math.py +++ b/pyrad/utils/math.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Math Helper Functions """ from dataclasses import dataclass diff --git a/pyrad/utils/misc.py b/pyrad/utils/misc.py index 2c0868e1a..bf68cba22 100644 --- a/pyrad/utils/misc.py +++ b/pyrad/utils/misc.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Miscellaneous helper code. """ diff --git a/pyrad/utils/profiler.py b/pyrad/utils/profiler.py index c21d1a59e..af7c5e5ac 100644 --- a/pyrad/utils/profiler.py +++ b/pyrad/utils/profiler.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Profiler base class and functionality """ diff --git a/pyrad/utils/visualization.py b/pyrad/utils/visualization.py index 738644d7d..94d103e7f 100644 --- a/pyrad/utils/visualization.py +++ b/pyrad/utils/visualization.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Helper functions for visualizing outputs """ from typing import Optional diff --git a/pyrad/utils/writer.py b/pyrad/utils/writer.py index f83a32db9..5c0d36255 100644 --- a/pyrad/utils/writer.py +++ b/pyrad/utils/writer.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Generic Writer class """ diff --git a/pyrad/viewer/__init__.py b/pyrad/viewer/__init__.py index e69de29bb..02655775e 100644 --- a/pyrad/viewer/__init__.py +++ b/pyrad/viewer/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/pyrad/viewer/plotly.py b/pyrad/viewer/plotly.py index f6838f4c0..cd7c7484c 100644 --- a/pyrad/viewer/plotly.py +++ b/pyrad/viewer/plotly.py @@ -1,3 +1,17 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Visualization code for plotly. """ diff --git a/scripts/debugging/run_actions.py b/scripts/debugging/run_actions.py index f5a560296..c7f2b22d6 100644 --- a/scripts/debugging/run_actions.py +++ b/scripts/debugging/run_actions.py @@ -24,3 +24,6 @@ if __name__ == "__main__": # Add checks for building documentation subprocess.call("cd docs/; make html; cd ../", shell=True) + + # Add licensing to all pyrad files + subprocess.call("./scripts/licensing/license_headers.sh", shell=True) diff --git a/scripts/licensing/copyright.txt b/scripts/licensing/copyright.txt new file mode 100644 index 000000000..cdb849c6a --- /dev/null +++ b/scripts/licensing/copyright.txt @@ -0,0 +1,14 @@ +# Copyright 2022 The Plenoptix Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + diff --git a/scripts/licensing/license_headers.sh b/scripts/licensing/license_headers.sh new file mode 100755 index 000000000..c95a102b0 --- /dev/null +++ b/scripts/licensing/license_headers.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +for i in $(find pyrad/ -name '*.py'); +do + if ! grep -q Copyright $i + then + cat scripts/licensing/copyright.txt $i >$i.new && mv $i.new $i + fi +done \ No newline at end of file