nachiket92 / conv-social-pooling

Code for model proposed in: Nachiket Deo and Mohan M. Trivedi,"Convolutional Social Pooling for Vehicle Trajectory Prediction." CVPRW, 2018
MIT License
326 stars 97 forks source link

Change batch size from 128 to 1 get "Process finished with exit code 136 (interrupted by signal 8: SIGFPE)" #18

Closed RomanticLeon closed 4 years ago

RomanticLeon commented 4 years ago

Before running evaluate.py, I change the input data's batch size from 128 to 1. After running it, I get "Process finished with exit code 136 (interrupted by signal 8: SIGFPE)". I find some information from the internet, somewhere has float point errors, I doubt it happens in the script of model.py. So how can I solve this problem?

RomanticLeon commented 4 years ago

I find the cause of this problem, sometimes there are no cars around the vehicle being predicted. So the shape of tensor "nbrs" is [16, 0, 2].