Skip to content

Commit 7776d45

Browse files
matinjugouChao Huang
andauthored
Fix bug: change the parameter name in PointNet2ClassificationSSG.__init__ from 'args' to 'hparams' so that users can use LightningModule.load_from_checkpoint load the checkpoints (#103)
Co-authored-by: Chao Huang <thss_huangc@163.com>
1 parent fd55cf8 commit 7776d45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pointnet2/models/pointnet2_ssg_cls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ def load_state_dict(self, state):
5353

5454

5555
class PointNet2ClassificationSSG(pl.LightningModule):
56-
def __init__(self, args):
56+
def __init__(self, hparams):
5757
super().__init__()
5858

59-
self.hparams = args
59+
self.hparams = hparams
6060

6161
self._build_model()
6262

0 commit comments

Comments
 (0)