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

How to determine the number of tracks normalized at a time #3

Open
12num opened this issue Oct 6, 2023 · 2 comments
Open

How to determine the number of tracks normalized at a time #3

12num opened this issue Oct 6, 2023 · 2 comments

Comments

@12num
Copy link

12num commented Oct 6, 2023

Thanks for your work

You propose to use SVD to construct ET space for normalized trajectory A(L*N). I'm not quite sure if N here represents the number of all tracks in each training set ("eth" "hotel" "univ" "zara1" "zara2")?

@InhwanBae
Copy link
Owner

Hi @12num,
Exactly. Before starting the training, all trajectories within the training dataset are decomposed using SVD to construct ET space. It will be much easier to understand if you look at the code below.

def init_descriptor(self):
# Calculate ET descriptor parameters
print("ET descriptor initialization...")
obs_traj = torch.cat([self.loader_train.dataset.obs_traj, self.loader_val.dataset.obs_traj], dim=0)
pred_traj = torch.cat([self.loader_train.dataset.pred_traj, self.loader_val.dataset.pred_traj], dim=0)
obs_traj, pred_traj = augment_trajectory(obs_traj, pred_traj)
self.model.calculate_parameters(obs_traj, pred_traj)

@12num
Copy link
Author

12num commented Oct 13, 2023

I see, thank you very much!

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