Ability to use vanilla pytorch instead of tcnn for Nerfacto (#1936)

* started a package to easily swap out tcnn for pytorch

* trains with pytorch and not tcnn

* cleaned up imports

* making it easy to install on mac

* removed/reverted files

* merged main

* reverted changes

* updating config

* starting to add nerfacto to tests

* fixxing default value

* fixed default implementation

* defaults to torch if tcnn and not installed

* update log

* add comment

* resolved pr comments

* fix

* update default

---------

Co-authored-by: Ethan Weber <ethanweber@eecs-128-32-175-250.dhcp.berkeley.edu>
This commit is contained in:
Ethan WeberandEthan Weber authored and GitHub committed 2023-05-25 14:55:42 -07:00
1 parent 400ab5a313
commit bb6925bac6
19 files changed
+295 -296

No files matched your search

+4 -2
View File
@@ -64,14 +64,16 @@ class MachineConfig(PrintableConfig):
seed: int = 42
"""random seed initialization"""
num_gpus: int = 1
"""total number of gpus available for train/eval"""
num_devices: int = 1
"""total number of devices (e.g., gpus) available for train/eval"""
num_machines: int = 1
"""total number of distributed machines available (for DDP)"""
machine_rank: int = 0
"""current machine's rank (for DDP)"""
dist_url: str = "auto"
"""distributed connection point (for DDP)"""
device_type: Literal["cpu", "cuda", "mps"] = "cuda"
"""device type to use for training"""
@dataclass