expert_traj icon indicating copy to clipboard operation
expert_traj copied to clipboard

Error happens in line 280 when running train_sdd.py

Open WangHonghui123 opened this issue 1 year ago • 4 comments

When I am running train_sdd.py, I find an error about the dimension of the data. The error is shown as follows:

WeChatbdea3d06d3a9e7498e5c3e5304612b77

And I find that there are some ndarray elements with DIFFERENT dimensions in traj_new list. For example, the dimension of traj_new[0] is (513, 20, 2), but the dimension of traj_new[4] is (512, 20, 2).

I hope you can solve this issue for me. Thank you very much.

WangHonghui123 avatar Mar 02 '23 05:03 WangHonghui123

Can you leave me with more information?

I am able to train it. Finished a training just now.

Screen Shot 2023-04-16 at 2 38 27 PM

JoeHEZHAO avatar Apr 16 '23 21:04 JoeHEZHAO

Thank you. I find that I am able to train SDD. It is very wired that it cannot be able to train at that time. Thanks. By the way, could you please provide the training model code for ETH/UCY dataset? Thank you.

WangHonghui123 avatar Apr 17 '23 00:04 WangHonghui123

@WangHonghui123 Sure, I can do that this weekend. Or you can

  1. Look in the dataloading code in test_ethucy.py
  2. Swap the dataloader in train_sdd.py

Everything else is the same I believe.

JoeHEZHAO avatar Apr 17 '23 15:04 JoeHEZHAO

@JoeHEZHAO Thank you for your suggestions.

I have some questions after I see your codes:

  1. The data processing in SDD dataset is different from that in ETH/UCY dataset
  2. The model used in train_sdd.py is different from that used in test_ethucy.py. In train_sdd.py, everything is same as what you mentioned in your paper. However, In test_ethucy.py, you use spatial temporal graph convolution from Social-STGCNN but you did not mention and elaborate it in your paper.

I am looking forward to your answers and your training script for ETH/UCY dataset. Have a nice day.

WangHonghui123 avatar Apr 20 '23 05:04 WangHonghui123