ykotseruba / PedestrianActionBenchmark

Code and models for the WACV 2021 paper "Benchmark for evaluating pedestrian action prediction"
https://openaccess.thecvf.com/content/WACV2021/papers/Kotseruba_Benchmark_for_Evaluating_Pedestrian_Action_Prediction_WACV_2021_paper.pdf
MIT License
56 stars 17 forks source link

Testing issue with PCPA model #23

Closed PratikHirapara closed 1 year ago

PratikHirapara commented 2 years ago

@ykotseruba I am geeting error when I am trying to test PCPA model. I did setup environment according to your docker file. Please let me know if you have solution for this. Thanks!

ValueError: Data is expected to be in format x, (x,), (x, y), or (x, y, sample_weight), found: (array([[[[[18.83785077, 19.85873724, 23.39030612], [18.83785077, 19.85873724, 23.39030612], [18.83785077, 19.85873724, 23.39030612], ..., [18.83785077, 19.85873724, 23.39030612], [18.83785077, 19.85873724, 23.39030612], [18.83785077, 19.85873724, 23.39030612]],

     [[18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      ...,
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612]],

     [[18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      ...,
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612]],

     ...,

     [[18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      ...,
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612]],

     [[18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      ...,
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612]],

     [[18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      ...,
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612],
      [18.83785077, 19.85873724, 23.39030612]]],

    [[[20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778],
      ...,
      [20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778]],

     [[20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778],
      ...,
      [20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778]],

     [[20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778],
      ...,
      [20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778]],

     ...,

     [[20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778],
      ...,
      [20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778],
      [20.46348852, 21.41812819, 25.08585778]],
Taoismer commented 1 year ago

modifiy the data_generator can solve this problem

atanas1054 commented 1 year ago

Issue is solved if you set generator: False in the config file.