mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-15 04:13:57 +08:00
nerfacto-huge (#2003)
An even larger version of nerfacto with scaled hashgrid resolution, MLP sizes, batch sizes, appearance embeddings, proposal sampler resolution, and more. Also includes some minor tweaks to nerfacto-big configs
This commit is contained in:
1 parent
26fc1c95dc
commit
8fad92c39a
5 files changed
+77
-41
No files matched your search
@@ -453,10 +453,8 @@ class Trainer:
|
||||
"""
|
||||
|
||||
self.optimizers.zero_grad_all()
|
||||
|
||||
device_type: str = self.device.split(":")[0] if "cuda" in self.device else "cpu"
|
||||
|
||||
with torch.autocast(device_type=device_type, enabled=self.mixed_precision):
|
||||
cpu_or_cuda_str: str = self.device.split(":")[0]
|
||||
with torch.autocast(device_type=cpu_or_cuda_str, enabled=self.mixed_precision):
|
||||
_, loss_dict, metrics_dict = self.pipeline.get_train_loss_dict(step=step)
|
||||
loss = functools.reduce(torch.add, loss_dict.values())
|
||||
self.grad_scaler.scale(loss).backward() # type: ignore
|
||||
|
||||
Reference in new issue
Block a user