mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
hydra config and starting trainer class
This commit is contained in:
1 parent
387d817358
commit
a9c0d5b97f
17 files changed
+125
-3
No files matched your search
@@ -0,0 +1,37 @@
|
||||
import logging
|
||||
import torch
|
||||
|
||||
|
||||
class Trainer(object):
|
||||
def __init__(self, config: None):
|
||||
self.config = config
|
||||
self.optimizer = None
|
||||
|
||||
def load_checkpoint(self):
|
||||
"""_summary_
|
||||
|
||||
Raises:
|
||||
NotImplementedError: _description_
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def save_checkpoint(self):
|
||||
"""_summary_
|
||||
|
||||
Raises:
|
||||
NotImplementedError: _description_
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def load_dataset(self):
|
||||
"""_summary_
|
||||
|
||||
Raises:
|
||||
NotImplementedError: _description_
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def train(self):
|
||||
"""_summary_"""
|
||||
# TODO(ethan): replace print statements with something more proper
|
||||
logging.info("train function")
|
||||
Reference in new issue
Block a user