Skip to content
Discussion options

You must be logged in to vote

I was able to infer test by setting as follows. I think the documentation is missing, so please refer to my implementation.

    if cfg.runs.evaluate:
        hparams = OmegaConf.load(cfg.test.hparams)
        model = LitCIFAR10Model.load_from_checkpoint(checkpoint_path=cfg.test.checkpoint, **hparams)
        trainer.test(model, datamodule.test_dataloader())
    else:
        trainer.fit(model, datamodule)
        trainer.test()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Keiku
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment