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

Update mgcvae.py #66

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions trajectron/model/mgcvae.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ def predict(self,
num_samples,
z_mode=False,
gmm_mode=False,
full_dist=True,
full_dist=False,
all_z_sep=False):
"""
Predicts the future of a batch of nodes.
Expand All @@ -1115,7 +1115,9 @@ def predict(self,
:return:
"""
mode = ModeKeys.PREDICT

if not z_mode or all_z_sep:
full_dist = True

x, x_nr_t, _, y_r, _, n_s_t0 = self.obtain_encoded_tensors(mode=mode,
inputs=inputs,
inputs_st=inputs_st,
Expand Down
2 changes: 1 addition & 1 deletion trajectron/model/trajectron.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def predict(self,
min_history_timesteps=1,
z_mode=False,
gmm_mode=False,
full_dist=True,
full_dist=False,
all_z_sep=False):

predictions_dict = {}
Expand Down