garyli1019 / pointnet-keras

Keras implementation for Pointnet
MIT License
123 stars 42 forks source link

Why have to set weight? #5

Open minhncsocial opened 6 years ago

minhncsocial commented 6 years ago

Hi Gary, Thank you for sharing your code. I was wondering at input transform and feature transform, why do we have to set it: x = Dense(9, weights=[np.zeros([256, 9]), np.array([1, 0, 0, 0, 1, 0, 0, 0, 1]).astype(np.float32)])(x) input_T = Reshape((3, 3))(x) f = Dense(64 * 64, weights=[np.zeros([256, 64 * 64]), np.eye(64).flatten().astype(np.float32)])(f) feature_T = Reshape((64, 64))(f) Could you tell me why? Thank you very much. Minh

melhousni commented 5 years ago

I think It's because it's mentioned in the paper that you should initialize with the identity matrix