35fdba3c5cbc7492b63a03117e2e6020350b377c,models/unet/train_unet.py,,main,#,180
Before Change
val_check_interval=1.,
early_stop_callback=False
)
if args.mode == "train":
trainer.fit(model)
else: // args.mode == "test"
trainer.test(model)
if __name__ == "__main__":
parser = Args()
parser.add_argument("--mode", choices=["train", "test"], default="train")
parser.add_argument("--num-epochs", type=int, default=50, help="Number of training epochs")
After Change
model = UnetMRIModel.load_from_checkpoint(str(args.checkpoint))
model.hparams.sample_rate = 1.
trainer = create_trainer(args, logger=False)
trainer.test(model)
if __name__ == "__main__":
parser = Args()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: facebookresearch/fastMRI
Commit Name: 35fdba3c5cbc7492b63a03117e2e6020350b377c
Time: 2020-02-02
Author: anuroops@fb.com
File Name: models/unet/train_unet.py
Class Name:
Method Name: main
Project Name: kenshohara/3D-ResNets-PyTorch
Commit Name: b3dfa519740f955aa963d17129f20d613f482746
Time: 2018-11-21
Author: kensho.hara@aist.go.jp
File Name: main.py
Class Name:
Method Name:
Project Name: rusty1s/pytorch_geometric
Commit Name: eb034e558ea658ce7914d891c8e87d0729e97500
Time: 2020-12-19
Author: ubuntu@ip-172-31-62-109.ec2.internal
File Name: examples/pytorch_lightning/gin.py
Class Name:
Method Name: main