Open daniel-unyi-42 opened 2 years ago
Hi Daniel, Thanks for asking your question. Both the order and n_rings are hyperparameters you can tune. The orders correspond to the kind of representations of the group SO(2) used. Order 2 would e.g. correspond to the sum of the zeroth, first and second irreducible representations (see the paper). If your input and output are scalar features, you want order zero as input and output. For the intermediate layer's in/output, I'd recommend using 1 or 2. The out_order of one layer should equal the in_order of the next. The rings correspond to the kernel size of a normal CNN. I'd recommend starting with 2 or 3. Hope that helps. Let me know if you have further questions. Best wishes, Pim
Thank you for the answer, it's really helpful.
I have one more question. What do you suggest if I have both scalar & vector inputs? Should I have two separate input layers, both of which output an order N representation, and sum/concatenate them?
Hi, Recall that an order 1 feature consist of a scalar and a tangent 2 vector, in the local basis / frame / gauge.
Do you have a 2 vector on the surface and a scalar or a 3 vector in the ambient space and a scalar? In the first case, if you express the 2 vector in the basis at each point, you can simply concatenate the scalar with the vector to create an order 1 feature. In the second case, you first need to split the 3 vector into a tangent 2 vector and a normal component, which is another scalar feature. You can combine that with the other scalar feature to create two channels of an order 1 feature, where you set the other 2 vector to zero. This requires some linear algebra. Let me know if I can help with that.
Pim
Thank you! So, if I understand correctly, I have to transform the vector feature at each vertex to the local basis. And I use my scalar features as order-1 features, whose tangent 2-vectors are zero vectors.
I have yet another question. I also have the vertex positions. Should I explicitly append vertex positions to the input features as you did in the GeometricShapes example?
Yes, that's correct, the order 1 feature is 3D and consists of a scalar and a 2 vector and you can combine data into that by zero padding. The XYZ coords are scalar features, but be aware that using them as such breaks global equivariance. Pim
What do you suggest if I don't want to break global equivariance, but still want to take vertex positions into account? Modify the layer such that K_neigh(r, θ) = F(r) * K_neigh(θ) as you mention in the paper?
Do you have a 2 vector on the surface and a scalar or a 3 vector in the ambient space and a scalar?
Hi! THANKS for your great job.
I have more questions about how to input features at the first layer at the network. If I have both scaler and vector, 5 scalar features and 4 vector features(tangent 2-vector ) for example(13 feature in total), how could I write the input layer of the network that output 32 features with 2 like this?
self.conv1 = GemResNetBlock(13, 32, 0, 2, **kwargs)
Hi, Thanks for your interest! To simplify code, I made the design choice that all representations are a multiple (I called channels, perhaps somewhat confusingly) of rho_0 + … rho_maxorder. In your case, you want 5 copies of rho_0 + rho_1, so 5 channels in and max order 1. The input then per node is of shape (channels, 2*max_order+1)=(5, 3). You’ll put the scalars in the first column and the vectors in the other columns. You’ll have to zero pad those to make 5 vectors. The order in which you pair the scalars and vectors is not relevant.
Then for the subsequent layers, you want to pick again some number of channels and order of the representation. Say resp. 32 and 2. Then the code for the first layer is: GemResNetBlock(5, 32, 1, 2, **kwargs) Does that help? Best wishes, Pim
From: Dolphin @.> Date: Monday, 9 May 2022 at 03:31 To: Qualcomm-AI-research/gauge-equivariant-mesh-cnn @.> Cc: Pim de Haan @.>, Comment @.> Subject: Re: [Qualcomm-AI-research/gauge-equivariant-mesh-cnn] Explanation of parameters (Issue #1)
WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.
Do you have a 2 vector on the surface and a scalar or a 3 vector in the ambient space and a scalar?
Hi! THANKS for your great job. I have more questions about how to input features at the first layer at the network. If I have both scaler and vector, 5 scalar features and 4 vector features(tangent 2-vector ) for example(13 feature in total), how could I write the input layer of the network that output 32 features with 2 like this? self.conv1 = GemResNetBlock(13, 32, 0, 2, **kwargs)
— Reply to this email directly, view it on GitHubhttps://github.com/Qualcomm-AI-research/gauge-equivariant-mesh-cnn/issues/1#issuecomment-1120540257, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYESUEN22IQQEWW6QZTYVM3VJBTF5ANCNFSM5PR5NNBQ. You are receiving this because you commented.Message ID: @.***>
Hi! Could you explain shortly the role of the following parameters in GemResNetBlock: in_order, out_order, n_rings? I'm not sure how to set these parameters. My dataset consists of mesh samples with scalar features.