Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logical Bug in the code #99

Open
fan-yang1 opened this issue May 18, 2024 · 1 comment
Open

Logical Bug in the code #99

fan-yang1 opened this issue May 18, 2024 · 1 comment

Comments

@fan-yang1
Copy link

Hello! I think there's a logic error in the code, but it doesn't affect the result if you set all "graph_scale" as the same in config file(such as car_auto_T3_train_config / "graph_gen_kwargs" / "level_configs" / "graph_scale": 1).
This problem is caused by "edges_list" this variable. For example, edges_list[1][:, 1] is the "order of destination vertex". However, this order number is not in all vertices, but in the selected key vertices.
If you use different "graph_scale", some key-vertices(keypoints) are selected from all the vertices of the graph to construct the edges of the graph. That is to say, vertex_coord_list[1].shape[0] != vertex_coord_list[2].shape[0]

Finally, the correction should be made is in models/gnn.py line 364:
aggregated_edge_features = self._aggregation_fn(
edge_features,
keypoint_indices[edges[:, 1]], // but keypoint_indices this argument is NOT_USED
tf.shape(input_vertex_features)[0])

@WeijingShi
Copy link
Owner

WeijingShi commented May 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants