Change the parameter name in PointNet2ClassificationSSG.init from 'args' to 'hparams' so that users can use LightningModule.load_from_checkpoint to load the checkpoints like this:
import hydra
model_path = 'path/to/checkpoint'
@hydra.main("config/config.yaml")
def main(cfg):
model = hydra.utils.instantiate(cfg.task_model, cfg)
model = model.load_from_checkpoint(model_path)
model.eval()
model.freeze()
if __name__ == "__main__":
main()
Change the parameter name in PointNet2ClassificationSSG.init from 'args' to 'hparams' so that users can use LightningModule.load_from_checkpoint to load the checkpoints like this: