"Segmentation fault" error with coral Dev Board + external Coral ML Accelerator (USB) - Yolov5su #874
Labels
comp:compiler
Compiler related issues
comp:model
Model related isssues
Hardware:Dev Board
Coral Dev Board issues
Description
I'm encountering a "Segmentation fault" error while trying to run a segmented YOLOv5s model on my Coral Dev Board with an external Coral ML Accelerator (USB). I followed the recommended steps to export, compile, and segment the model using edgetpu_compiler.
I follow these steps:
I trained Yolov5su model, then I exported the model as tflite - 8int by using:
model.export()
then I use the edgetpu_compiler to compile the tflite model and segmented it into 2 models:
edgetpu_compiler model.tflite --num_segments=2
then I get 12 files, 8 models and 4 logs, the models are:
1- best_float32_segment_0_of_2.tflite
2- best_float32_segment_1_of_2.tflite
3- best_float32_segment_0_of_2_edgetpu.tflite
4- best_float32_segment_1_of_2_edgetpu.tflite
5- best_full_integer_quant_segment_0_of_2.tflite
6- best_full_integer_quant_segment_1_of_2.tflite
7- best_full_integer_quant_segment_0_of_2_edgetpu.tflite
8- best_full_integer_quant_segment_1_of_2_edgetpu.tflite
I transfer the "best_full_integer_quant_segment_0_of_2_edgetpu.tflite" and
"best_full_integer_quant_segment_1_of_2_edgetpu.tflite" to the coral board and I tried to run the models to detect object in a video, the code:
python3 test2tpu.py -m best_full_integer_quant_segment_%d_of_2_edgetpu.tflite -i "/coral/720p/Busy Road.mp4"
the output that I get:
hey lets begin 1
hey lets begin 2
hey lets begin 4
hey lets begin 5
hey lets begin 6
Using devices: ['pci:0', 'usb:0']
Using models: ['best_full_integer_quant_segment_0_of_2_edgetpu.tflite', 'best_full_integer_quant_segment_1_of_2_edgetpu.tflite']
hey runner 1
hey runner 2 best_full_integer_quant_segment_0_of_2_edgetpu.tflite usb:0
hey runner 3
hey runner 4
hey runner 5 best_full_integer_quant_segment_1_of_2_edgetpu.tflite pci:0
Segmentation fault
Note:
pycoral version: 2.0.0
Click to expand!
Issue Type
support
Operating System
_LInux Mendel 5.3 _
Coral Device
Coral dev board
Other Devices
USB ML Accelerator
Programming Language
Python3.7
Relevant Log Output
No response
The text was updated successfully, but these errors were encountered: