setup.py for implicitron_trainer

Summary: Enable `pytorch3d_implicitron_runner` executable

Reviewed By: shapovalov

Differential Revision: D34754902

fbshipit-source-id: 213f3e9183e3f7dd7b4df16ad77d95fbc971d625
This commit is contained in:
Jeremy Reizenstein 2022-03-28 04:50:26 -07:00 committed by Facebook GitHub Bot
parent 97894fb37b
commit 0c3bed55be
3 changed files with 19 additions and 1 deletions

5
projects/__init__.py Normal file
View File

@ -0,0 +1,5 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

View File

@ -0,0 +1,5 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

View File

@ -129,6 +129,7 @@ if os.getenv("PYTORCH3D_NO_NINJA", "0") == "1":
else:
BuildExtension = torch.utils.cpp_extension.BuildExtension
trainer = "projects.implicitron_trainer"
setup(
name="pytorch3d",
@ -138,12 +139,19 @@ setup(
description="PyTorch3D is FAIR's library of reusable components "
"for deep Learning with 3D data.",
packages=find_packages(
exclude=("configs", "tests", "tests.*", "docs.*", "projects.*")
exclude=("configs", "tests", "tests.*", "docs.*", "projects.nerf.*")
),
install_requires=["fvcore", "iopath"],
extras_require={
"all": ["matplotlib", "tqdm>4.29.0", "imageio", "ipywidgets"],
"dev": ["flake8", "isort", "black==19.3b0"],
"implicitron": ["hydra-core>=1.1", "visdom", "lpips", "matplotlib"],
},
entry_points={
"console_scripts": [
f"pytorch3d_implicitron_runner={trainer}.experiment",
f"pytorch3d_implicitron_visualizer={trainer}.visualize_reconstruction",
]
},
ext_modules=get_extensions(),
cmdclass={"build_ext": BuildExtension},