Skip to content

Commit 6b8abaa

Browse files
committed
Test base on pytorch-1.0 and fix bugs.
1 parent 2ec315f commit 6b8abaa

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This repo is implementation for PointNet(https://arxiv.org/abs/1612.00593) in py
88
bash build.sh #build C++ code for visualization
99
bash download.sh #download dataset
1010
python train_classification.py #train 3D model classification
11-
python python train_segmentation.py # train 3D model segmentaion
11+
python train_segmentation.py # train 3D model segmentaion
1212
1313
python show_seg.py --model seg/seg_model_20.pth # show segmentation results
1414
```

show_cls.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434

3535
testdataloader = torch.utils.data.DataLoader(test_dataset, batch_size=32, shuffle = True)
3636

37-
38-
classifier = PointNetCls(k = len(test_dataset.classes), num_points = opt.num_points)
37+
classifier = PointNetCls(k=len(test_dataset.classes))
3938
classifier.cuda()
4039
classifier.load_state_dict(torch.load(opt.model))
4140
classifier.eval()

train_classification.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@
5555
pass
5656

5757

58-
classifier = PointNetCls(k = num_classes, num_points = opt.num_points)
59-
58+
classifier = PointNetCls(k=num_classes)
6059

6160
if opt.model != '':
6261
classifier.load_state_dict(torch.load(opt.model))

0 commit comments

Comments
 (0)