You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ModelTrainer Module is required to facilitate the training of different types of model using PyTorch Lightning with optional logging in wandb. We define the ModelTrainer Module as follows:
ModelTrainer Module: This class is used to train a PyTorch model using Lightning and save the trained model. The inputs to this class are config files for Data pipeline, model backbone and head configs and training configs. We have a child class of pl.LightningModule for each type of model - SingleInstance, TopDownCenteredInstance, etc, which is trained using a Trainer Class.
The ModelTrainer Module performs the following functions:
Creates DataLoaders from the data configs
Trains a Lightning Model with Trainer class
Optional Logging with wandb to track the training process
Saves Checkpoints throughout the training
fromomegaconfimportOmegaConffromsleap_nn.modelsimportModelTrainerconfig=OmegaConfig.create() # data config, model config and trainer configm=ModelTrainer(config)
m.train() # calls the trainer.fit() from Lightning# the checkpoints are saved in the specified directory
The text was updated successfully, but these errors were encountered:
ModelTrainer Module is required to facilitate the training of different types of model using PyTorch Lightning with optional logging in wandb. We define the ModelTrainer Module as follows:
ModelTrainer Module: This class is used to train a PyTorch model using Lightning and save the trained model. The inputs to this class are config files for Data pipeline, model backbone and head configs and training configs. We have a child class of
pl.LightningModule
for each type of model - SingleInstance, TopDownCenteredInstance, etc, which is trained using a Trainer Class.The ModelTrainer Module performs the following functions:
The text was updated successfully, but these errors were encountered: