justanhduc / graphx-conv

Official implementation of GraphX-Convolution
https://justanhduc.github.io/2019/09/29/GraphX-Convolution.html
MIT License
62 stars 17 forks source link

AttributeError: 'PointcloudDeformNet' object has no attribute 'optim' #1

Closed xiaomingjie closed 5 years ago

xiaomingjie commented 5 years ago

Hi @justanhduc

It seems that in .gin configs, there are only GraphX.optimizer and GraphX.scheduler. There is no optim['optimizer'] or optim['scheduler']. I tried to fix it but failed.

xiaomingjie commented 5 years ago

fixed it.

#add this line in neworks.py line 281
self.optim = {}

self.optim['optimizer'] = T.optim.Adam(self.trainable, 1e-4, weight_decay=0) if optimizer is None else optimizer(self.trainable)
self.optim['scheduler'] = scheduler(self.optim['optimizer']) if scheduler else None

But I encounter another error. I will open a new issue.