Skip to content
New issue

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

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

Already on GitHub? # to your account

fixed #51 KeyError attention_radius[(VEHICLE, VEHICLE)] in encode_edge #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions trajectron/model/online/online_mgcvae.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def _get_other_node_type_from_edge(self, edge_type_str):

def _get_edge_type_from_str(self, edge_type_str):
n1_type_str, n2_type_str = edge_type_str.split('->')
return (NodeType(n1_type_str, self.env.node_type_list.index(n1_type_str) + 1),
NodeType(n2_type_str, self.env.node_type_list.index(n2_type_str) + 1))
return (self.env.NodeType[self.env.NodeType.node_type_list.index(n1_type_str)],
self.env.NodeType[self.env.NodeType.node_type_list.index(n2_type_str)])

def remove_edge_model(self, edge_type):
if self.hyperparams['edge_encoding']:
Expand Down