vita-epfl / RRB

Official implementation of "Injecting Knowledge in Data-driven Vehicle Trajectory Predictors", Published in Transportation research part C.
BSD 2-Clause "Simplified" License
67 stars 11 forks source link

NameError: name 'wholedata' is not defined #8

Closed xinfu607 closed 1 year ago

xinfu607 commented 2 years ago

Hi, some issues happen when running bash run.sh. Could you please tell me the reason ? Thanks a lot.

Traceback (most recent call last): File "/opt/conda/envs/py36/lib/python3.6/runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)

File "/opt/conda/envs/py36/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/root/trajectory_prediction/RRB/trajnetbaselines/trajnetbaselines/trainer.py", line 638, in

main()

File "/root/trajectory_prediction/RRB/trajnetbaselines/trajnetbaselines/trainer.py", line 633, in main

trainer.loop(train_scenes, val_scenes, output_dir, epochs=args.epochs)

File "/root/trajectory_prediction/RRB/trajnetbaselines/trajnetbaselines/trainer.py", line 65, in loop

if (epoch % 2 == 0 and wholedata):

NameError: name 'wholedata' is not defined

MohammadHossein-Bahari commented 2 years ago

Hello, It was an unnecessary condition. Simply remove "wholedata". I have updated the code as well.