ff345c2e2210061141653a19ef1431c6866cbf68,examples/pytorch/pointcloud/pointnet/train_partseg.py,,,#,146
Before Change
train(net, opt, scheduler, train_loader, dev)
if (epoch + 1) % 5 == 0:
print("Epoch //%d Testing" % epoch)
test_miou, test_per_cat_miou = evaluate(net, test_loader, dev, (epoch + 1) % 5 ==0)
if test_miou > best_test_miou:
best_test_miou = test_miou
best_test_per_cat_miou = test_per_cat_miou
if args.save_model_path:
After Change
// dev = "cpu"
if args.model == "pointnet":
net = PointNetPartSeg(50, 3, 2048)
elif args.model == "pointnet2_ssg":
net = PointNet2SSGPartSeg(50, batch_size, input_dims=6)
elif args.model == "pointnet2_msg":
net = PointNet2MSGPartSeg(50, batch_size, input_dims=6)
net = net.to(dev)
if args.load_model_path:
net.load_state_dict(torch.load(args.load_model_path, map_location=dev))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: dmlc/dgl
Commit Name: ff345c2e2210061141653a19ef1431c6866cbf68
Time: 2021-02-03
Author: wcy_james@outlook.com
File Name: examples/pytorch/pointcloud/pointnet/train_partseg.py
Class Name:
Method Name:
Project Name: D2KLab/entity2rec
Commit Name: d543ff83ab1498a61386d258c6689e88b0522ee3
Time: 2018-07-20
Author: enricopalumbo0@gmail.com
File Name: entity2rec/main.py
Class Name:
Method Name:
Project Name: D2KLab/entity2rec
Commit Name: c11b2a426b89aad1e8da244e2a12fdec032adb9e
Time: 2018-07-26
Author: enricopalumbo0@gmail.com
File Name: entity2rec/node2vec_recommender.py
Class Name:
Method Name: