Skip to content

Commit af93f34

Browse files
patricklabatutfacebook-github-bot
authored andcommitted
License lint codebase
Summary: License lint codebase Reviewed By: theschnitz Differential Revision: D29001799 fbshipit-source-id: 5c59869911785b0181b1663bbf430bc8b7fb2909
1 parent 7e43f29 commit af93f34

File tree

389 files changed

+2308
-394
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

389 files changed

+2308
-394
lines changed

.circleci/build_count.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
37

48
"""
59
Print the number of nightly builds

.circleci/check.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash -e
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
37

48
# Run this script before committing config.yml to verify it is valid yaml.
59

.circleci/regenerate.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
37

48
"""
59
This script is adapted from the torchvision one.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BSD 3-Clause License
1+
BSD License
22

33
For PyTorch3D software
44

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ For detailed instructions refer to [INSTALL.md](INSTALL.md).
2929

3030
## License
3131

32-
PyTorch3D is released under the [BSD-3-Clause License](LICENSE).
32+
PyTorch3D is released under the [BSD License](LICENSE).
3333

3434
## Tutorials
3535

dev/linter.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash -e
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
37

48
# Run this script at project root by "./dev/linter.sh" before you commit
59

dev/run_tutorials.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/bash
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
37

48
# This script is for running some of the tutorials using the nightly build in
59
# an isolated environment. It is designed to be run in docker.

docs/conf.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
37

48
# flake8: noqa
59

docs/examples/pulsar_basic.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
38
"""
49
This example demonstrates the most trivial, direct interface of the pulsar
510
sphere renderer. It renders and saves an image with 10 random spheres.

docs/examples/pulsar_basic_unified.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
38
"""
49
This example demonstrates the most trivial use of the pulsar PyTorch3D
510
interface for sphere renderering. It renders and saves an image with

docs/examples/pulsar_cam.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
38
"""
49
This example demonstrates camera parameter optimization with the plain
510
pulsar interface. For this, a reference image has been pre-generated

docs/examples/pulsar_cam_unified.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
38
"""
49
This example demonstrates camera parameter optimization with the pulsar
510
PyTorch3D interface. For this, a reference image has been pre-generated

docs/examples/pulsar_multiview.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
38
"""
49
This example demonstrates multiview 3D reconstruction using the plain
510
pulsar interface. For this, reference images have been pre-generated

docs/examples/pulsar_optimization.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
38
"""
49
This example demonstrates scene optimization with the plain
510
pulsar interface. For this, a reference image has been pre-generated

docs/examples/pulsar_optimization_unified.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
38
"""
49
This example demonstrates scene optimization with the PyTorch3D
510
pulsar interface. For this, a reference image has been pre-generated

docs/tutorials/utils/__init__.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
1+
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
26

37
from .camera_visualization import get_camera_wireframe, plot_camera_scene, plot_cameras
48
from .plot_image_grid import image_grid

docs/tutorials/utils/camera_visualization.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
1+
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
26

37
import matplotlib.pyplot as plt
48
from mpl_toolkits.mplot3d import Axes3D # noqa: F401 unused import

docs/tutorials/utils/generate_cow_renders.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
1+
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
26

37
import os
48

docs/tutorials/utils/plot_image_grid.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
1+
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
26

37
import matplotlib.pyplot as plt
48

packaging/build_conda.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
38
set -ex
49

510
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

packaging/build_wheel.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
38
set -ex
49

510
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

packaging/conda/build_pytorch3d.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env bash
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
38
if [[ -x "/remote/anaconda_token" ]]; then
49
. /remote/anaconda_token || true
510
fi

packaging/conda/install_conda.bat

+6
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1+
@REM Copyright (c) Facebook, Inc. and its affiliates.
2+
@REM All rights reserved.
3+
@REM
4+
@REM This source code is licensed under the BSD-style license found in the
5+
@REM LICENSE file in the root directory of this source tree.
6+
17
:: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
28
start /wait "" "%miniconda_exe%" /S /InstallationType=JustMe /RegisterPython=0 /AddToPath=0 /D=%tmp_conda%

packaging/conda/switch_cuda_version.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env bash
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
38
if [[ "$OSTYPE" == "msys" ]]; then
49
CUDA_DIR="/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v$1"
510
else

packaging/linux_wheels/after.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/bash
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
38
set -ex
49
sudo chown -R "$USER" output
510
python publish.py

packaging/linux_wheels/go.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/usr/bin/bash
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
38
sudo docker run --rm -v "$PWD/../../:/inside" pytorch/conda-cuda bash inside/packaging/linux_wheels/inside.sh

packaging/linux_wheels/inside.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
2-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
38
set -ex
49

510
conda init bash

packaging/linux_wheels/publish.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
1+
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
27
import os
38
import subprocess
49
from pathlib import Path

packaging/vs2017/activate.bat

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
:: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
1+
@REM Copyright (c) Facebook, Inc. and its affiliates.
2+
@REM All rights reserved.
3+
@REM
4+
@REM This source code is licensed under the BSD-style license found in the
5+
@REM LICENSE file in the root directory of this source tree.
6+
27
:: Set env vars that tell distutils to use the compiler that we put on path
38
SET DISTUTILS_USE_SDK=1
49
SET MSSdk=1

packaging/vs2017/install_activate.bat

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
:: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
1+
@REM Copyright (c) Facebook, Inc. and its affiliates.
2+
@REM All rights reserved.
3+
@REM
4+
@REM This source code is licensed under the BSD-style license found in the
5+
@REM LICENSE file in the root directory of this source tree.
6+
27
set YEAR=2017
38
set VER=15
49

packaging/vs2017/install_runtime.bat

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
:: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
1+
@REM Copyright (c) Facebook, Inc. and its affiliates.
2+
@REM All rights reserved.
3+
@REM
4+
@REM This source code is licensed under the BSD-style license found in the
5+
@REM LICENSE file in the root directory of this source tree.
6+
27
set VC_PATH=x86
38
if "%ARCH%"=="64" (
49
set VC_PATH=x64

packaging/vs2019/activate.bat

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
:: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
1+
@REM Copyright (c) Facebook, Inc. and its affiliates.
2+
@REM All rights reserved.
3+
@REM
4+
@REM This source code is licensed under the BSD-style license found in the
5+
@REM LICENSE file in the root directory of this source tree.
6+
27
:: Set env vars that tell distutils to use the compiler that we put on path
38
SET DISTUTILS_USE_SDK=1
49
SET MSSdk=1

packaging/vs2019/install_activate.bat

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
:: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
1+
@REM Copyright (c) Facebook, Inc. and its affiliates.
2+
@REM All rights reserved.
3+
@REM
4+
@REM This source code is licensed under the BSD-style license found in the
5+
@REM LICENSE file in the root directory of this source tree.
6+
27
set YEAR=2019
38
set VER=16
49

packaging/vs2019/install_runtime.bat

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
:: Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
1+
@REM Copyright (c) Facebook, Inc. and its affiliates.
2+
@REM All rights reserved.
3+
@REM
4+
@REM This source code is licensed under the BSD-style license found in the
5+
@REM LICENSE file in the root directory of this source tree.
6+
27
set VC_PATH=x86
38
if "%ARCH%"=="64" (
49
set VC_PATH=x64

projects/nerf/__init__.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
1+
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.

projects/nerf/nerf/__init__.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
1+
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.

projects/nerf/nerf/dataset.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
1+
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
27
import os
38
from typing import List, Optional, Tuple
49

0 commit comments

Comments
 (0)