This commit is contained in:
2023-12-28 22:06:25 +08:00
commit 7a891969e0
11 changed files with 368 additions and 0 deletions

24
train.py Normal file
View File

@ -0,0 +1,24 @@
# train.py
#
# author: deng
# date : 20231228
import yaml
import torch
from dvclive import Live
def train(params_path: str = 'params.yaml') -> None:
"""Train a simple model using Pytorch
Args:
params_path (str, optional): path of config yaml. Defaults to 'params.yaml'.
"""
with open(params_path, 'r') as f:
params = yaml.safe_load(f)
if __name__ == '__main__':
train()