mirror of
				https://github.com/facebookresearch/pytorch3d.git
				synced 2025-11-04 18:02:14 +08:00 
			
		
		
		
	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:
		
							parent
							
								
									97894fb37b
								
							
						
					
					
						commit
						0c3bed55be
					
				
							
								
								
									
										5
									
								
								projects/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								projects/__init__.py
									
									
									
									
									
										Normal 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.
 | 
			
		||||
							
								
								
									
										5
									
								
								projects/implicitron_trainer/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								projects/implicitron_trainer/__init__.py
									
									
									
									
									
										Normal 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.
 | 
			
		||||
							
								
								
									
										10
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								setup.py
									
									
									
									
									
								
							@ -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},
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user