d750d66fb998a44316000908f213ae73c53de97f,examples/shrec17/train.py,,,#,136
Before Change
torch.save(model.state_dict(), "state.pkl")
if __name__ == "__main__":
main()
After Change
torch.save(model.state_dict(), os.path.join(log_dir, "state.pkl"))
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--log_dir", type=str, required=True)
parser.add_argument("--augmentation", type=int, default=1,
help="Generate multiple image with random rotations and translations (recommanded = 3)")
parser.add_argument("--dataset", choices={"test", "val", "train"}, default="train")
parser.add_argument("--batch_size", type=int, default=64)
parser.add_argument("--num_workers", type=int, default=1)
args = parser.parse_args()
main(**args.__dict__)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 29
Instances
Project Name: jonas-koehler/s2cnn
Commit Name: d750d66fb998a44316000908f213ae73c53de97f
Time: 2018-03-03
Author: geiger.mario@gmail.com
File Name: examples/shrec17/train.py
Class Name:
Method Name:
Project Name: jonas-koehler/s2cnn
Commit Name: d750d66fb998a44316000908f213ae73c53de97f
Time: 2018-03-03
Author: geiger.mario@gmail.com
File Name: examples/shrec17/train.py
Class Name:
Method Name:
Project Name: jonas-koehler/s2cnn
Commit Name: d750d66fb998a44316000908f213ae73c53de97f
Time: 2018-03-03
Author: geiger.mario@gmail.com
File Name: examples/shrec17/test.py
Class Name:
Method Name:
Project Name: pytorch/benchmark
Commit Name: e9096c0a857109ea3a5e62376c45b266bd0dc0fb
Time: 2021-02-04
Author: whc@fb.com
File Name: scripts/get_torch_nightly_wheels.py
Class Name:
Method Name: