mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-17 13:23:46 +08:00
added limit to how many models to save (#546)
This commit is contained in:
1 parent
399e5cac6d
commit
800be33cf3
2 files changed
+7
No files matched your search
@@ -146,6 +146,8 @@ class TrainerConfig(PrintableConfig):
|
||||
"""whether or not to use mixed precision for training"""
|
||||
relative_model_dir: Path = Path("nerfactory_models/")
|
||||
"""relative path to save all checkpoints"""
|
||||
num_ckpt_to_save: int = 1
|
||||
"""number of latest checkpoints that we want to save. Default 1 saves only the latest model"""
|
||||
# optional parameters if we want to resume training
|
||||
load_dir: Optional[Path] = None
|
||||
"""optionally specify a pre-trained model directory to load from"""
|
||||
|
||||
Reference in new issue
Block a user