File size: 509 Bytes
ac59957
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import argparse

import pytorch_lightning as pl

from core.memfof_lit import MEMFOFLit, DataModule
from config.parser import parse_args


if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument(
        "--cfg", help="experiment configure file name", required=True, type=str
    )
    args = parse_args(parser)

    trainer = pl.Trainer(
        accelerator="auto",
    )

    datamodule = DataModule(args)
    model = MEMFOFLit(args)
    trainer.validate(model, datamodule)