Add mix precision training (#172)

* Add mix precision training

* Disable mixed precision for cpu
This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-07-20 13:21:06 -07:00
1 parent 529dd61aaf
commit 441dcd5314
8 files changed
+37 -21

No files matched your search

+1
View File
@@ -30,6 +30,7 @@ trainer:
steps_per_save: 1000
steps_per_test: 1000
max_num_iterations: 1000000
mixed_precision: False
resume_train:
load_dir: # pretrained model directory
load_step: # pretrained model's step number
+3
View File
@@ -29,3 +29,6 @@ optimizers:
lr: 1e-2
eps: 1e-7 # need to investigate further for float16 stability
scheduler: null
trainer:
mixed_precision: true # Stabilizes training when using tcnn