GithubHelp home page GithubHelp logo

Comments (9)

larksq avatar larksq commented on June 11, 2024

For checkpoint zip files, I updated the file names in the readme with the same file names on Google Drive. Could you please try to load again as instructed? Let me know if you still have a missing-keys problem. And RELATION_PRED_DIR and INFLUENCER_PRED_DIR are the paths of the prediction result pickle files.

from m2i.

Yang-Li-2000 avatar Yang-Li-2000 commented on June 11, 2024

Hi, I used the evaluation scripts in the updated readme for Conditional Trajectory Prediction but I am still having the missing keys and size mismatch problems. Specifically, the default value of validation_model in conditional_pred.yaml is 30, but there is not a checkpoint for the 30th epoch. As a result, I changed 30 to 29. However, when using the checkpoint for the 29th epoch, I am still encountering missing keys and size mismatch problems.
image

from m2i.

larksq avatar larksq commented on June 11, 2024

Seems like there is a channel size mismatch. Could you try to delete the 'raster_inf' flag in 'other_params' from the conditional_pred.yaml file and try it again. Thanks.

from m2i.

Yang-Li-2000 avatar Yang-Li-2000 commented on June 11, 2024

Hi Alan, I removed raster_inf from conditional_pred.yaml but the missing keys and size mismatch problems still exist.

image

from m2i.

larksq avatar larksq commented on June 11, 2024

I found the problem. It should be 'train_reactor' instead of 'train_relation' in the conditional_pred.yaml file. Could you please update the conditional_pred.yaml file and give it another try? It should work this time.

from m2i.

Yang-Li-2000 avatar Yang-Li-2000 commented on June 11, 2024

Hi Alan, thank you. Changing train_relation to train_reactor works. However, after saving merged result, the function motion_metrics.result() throws an assertion error.

image

image

from m2i.

larksq avatar larksq commented on June 11, 2024

You can ignore this error and inspect the prediction result saved in the pickle file. It would be more complicated if you want to evaluate the conditional prediction result properly. To evaluate prediction results with Waymo's interactive dataset API, the shape for each scenario needs to be (6, n, 80, 2). The result needs 6 different predictions and n is the number of agents to predict (n=2 for the interactive dataset). You would need to merge 6 groups of prediction results of the reactors by a conditional prediction for each influencer prediction. Unfortunately, this part of code is not released in this repo.

from m2i.

Yang-Li-2000 avatar Yang-Li-2000 commented on June 11, 2024

Hi Alan,

I am not sure which 6 groups should I merge. When running the evaluation command, it generates 6 predicted trajectories for each scenario. However, in result() in class MotionMetrics in src/waymo_tutorial.py, only 1 trajectory is left for each scenario. The shape of prediction_trajectory in result() in class MotionMetrics is [num_scenarios, 80, 2].
image

At the same time, in REDAME.md, --eval_rst_saving_number can have 6 different values (from 0 to 5).

Should I merge 6 predicted trajectories for a fixed eval_rst_saving_number or merge predicted trajectories generated using 6 different eval_rst_saving_number?

Additionally, when merging the trajectory of the influencer and the trajectory of the reactor, how should I permute them?
The shape of the merged trajectories is (num_scenarios, 6, n=2, 80, 2). Is [:, :, 0, :] for influencers and [:, :, 1, :] for reactors?
Or, is there a different way to arrange influencer trajectory and reactor trajectory?

How should I merge the scores of the influencer and the scores of the reactor? Should I multiply them or stack them?

from m2i.

hangzhaomit avatar hangzhaomit commented on June 11, 2024

I would suggest opening another issue if the original question is resolved.

from m2i.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.