When I tried to run ESPNETv2 in a raspberry pi environment I was having a problem trying to run it for a large amount of images. The network stopped running with the following message: Segmentation Fault.
After a debug process, I found that the problem was on the following lines:
I believe these multiplication operations directly with tensors may be causing some problems in more limited environments (eg raspberry with 1gb ram and a 32 bit system). To do this, I made some changes to work around this issue, and succeeded in running ESPNETv2 on raspberry pi.
Summary of Changes: Basically excludes the above lines that were generating Segmentation Fault, and within the demo_detection.py file I added the multiplications in the coordinate values directly. Since the multiplications are now with values and not tensors, I got no error running the network for a large amount of time and with a large amount of images.
When I tried to run ESPNETv2 in a raspberry pi environment I was having a problem trying to run it for a large amount of images. The network stopped running with the following message: Segmentation Fault.
After a debug process, I found that the problem was on the following lines:
In the box_predictor.py file
I believe these multiplication operations directly with tensors may be causing some problems in more limited environments (eg raspberry with 1gb ram and a 32 bit system). To do this, I made some changes to work around this issue, and succeeded in running ESPNETv2 on raspberry pi.
Summary of Changes: Basically excludes the above lines that were generating Segmentation Fault, and within the demo_detection.py file I added the multiplications in the coordinate values directly. Since the multiplications are now with values and not tensors, I got no error running the network for a large amount of time and with a large amount of images.