Skip to content

my dear trainer for training my dear networks

Notifications You must be signed in to change notification settings

JJBT/HypeTrainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HypeTrainer (v0.1)

HypeTrainer is a trainer for PyTorch models.

Installation

pip install git+https://github.com/JJBT/HypeTrainer.git

Usage

from trainer.factory import Factory
from trainer.trainer import Trainer
import hydra
from omegaconf import DictConfig, OmegaConf

def run_train(cfg):
    factory = Factory(cfg)
    trainer = Trainer(cfg, factory)
    trainer.run_train()

# Config format in examples (or you can override trainer.factory.Factory)
@hydra.main(config_path='conf', config_name='config')
def run(cfg: DictConfig):
    cfg = OmegaConf.create(cfg)
    run_train(cfg)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

my dear trainer for training my dear networks

Resources

Stars

Watchers

Forks

Languages