mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-12 10:55:57 +08:00
Fix an issue where gradient accumulation could not be passed as argument due to a type error. (#2910)
This commit is contained in:
1 parent
57fbc07bf1
commit
4f798b23f6
1 file changed
+1
-1
@@ -82,7 +82,7 @@ class TrainerConfig(ExperimentConfig):
|
||||
"""Path to checkpoint file."""
|
||||
log_gradients: bool = False
|
||||
"""Optionally log gradients during training"""
|
||||
gradient_accumulation_steps: Dict = field(default_factory=lambda: {})
|
||||
gradient_accumulation_steps: Dict[str, int] = field(default_factory=lambda: {})
|
||||
"""Number of steps to accumulate gradients over. Contains a mapping of {param_group:num}"""
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user