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

Question about the code of evaluation on the whole sequence #29

Open
xherdan76 opened this issue Mar 30, 2023 · 1 comment
Open

Question about the code of evaluation on the whole sequence #29

xherdan76 opened this issue Mar 30, 2023 · 1 comment

Comments

@xherdan76
Copy link

Hi,
I wonder whether there is an issue with the code for evaluating on the whole sequence. The input of the model as well as gt_pos is the position of the fluid at current time step. After the model forwards, the new pr_pos should be the position of the next time step. However, in Line 233, the errors are still computed between pr_pos and gt_pos, which are not aligned in time.

Is my understanding wrong or it's a bug with the code?

init_pos = torch.from_numpy(data['pos0'][0]).to(device)
init_vel = torch.from_numpy(data['vel0'][0]).to(device)
inputs = (init_pos, init_vel, None, box, box_normals)
else:
inputs = (pr_pos, pr_vel, None, box, box_normals)

gt_pos = data['pos0'][0]
fluid_errors.add_errors(scene_id,
0,
frame_id,
scale * pr_pos.cpu().numpy(),
scale * gt_pos,
compute_gt2pred_distance=True)

@WangLeft
Copy link

Hi!
I also encountered the same issue when evaluating the model. Have you managed to resolve it? It appears that there could be an alignment problem between pr_pos and gt_pos in terms of time.

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