mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 03:42:50 +08:00
install trainer inside pytorch3d
Summary: One way to tidy the installation so we don't install files in site-packages/projects. Fixes https://github.com/facebookresearch/pytorch3d/issues/1279 Reviewed By: shapovalov, davnov134 Differential Revision: D38426772 fbshipit-source-id: ac1a54fbf230adb53904701e1f38bf9567f647ce
This commit is contained in:
parent
a0f786f4cf
commit
9d888f1332
8
setup.py
8
setup.py
@ -128,7 +128,7 @@ if os.getenv("PYTORCH3D_NO_NINJA", "0") == "1":
|
||||
else:
|
||||
BuildExtension = torch.utils.cpp_extension.BuildExtension
|
||||
|
||||
trainer = "projects.implicitron_trainer"
|
||||
trainer = "pytorch3d.implicitron_trainer"
|
||||
|
||||
setup(
|
||||
name="pytorch3d",
|
||||
@ -138,8 +138,10 @@ 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.nerf.*")
|
||||
),
|
||||
exclude=("configs", "tests", "tests.*", "docs.*", "projects.*")
|
||||
)
|
||||
+ [trainer],
|
||||
package_dir={trainer: "projects/implicitron_trainer"},
|
||||
install_requires=["fvcore", "iopath"],
|
||||
extras_require={
|
||||
"all": ["matplotlib", "tqdm>4.29.0", "imageio", "ipywidgets"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user