hunglc007 / tensorflow-yolov4-tflite

YOLOv4, YOLOv4-tiny, YOLOv3, YOLOv3-tiny Implemented in Tensorflow 2.0, Android. Convert YOLO v4 .weights tensorflow, tensorrt and tflite
https://github.com/hunglc007/tensorflow-yolov4-tflite
MIT License
2.25k stars 1.24k forks source link

Yolov4-tiny TFlite converter issue Aborted (core dumped) #152

Open Lynchez opened 4 years ago

Lynchez commented 4 years ago

Fatal Python error: Aborted

Current thread 0x00007f2e146f0740 (most recent call first): File "/home/nurettin/anaconda3/envs/py/lib/python3.7/site-packages/tensorflow/lite/toco/python/toco_from_protos.py", line 56 in execute File "/home/nurettin/anaconda3/envs/py/lib/python3.7/site-packages/absl/app.py", line 250 in _run_main File "/home/nurettin/anaconda3/envs/py/lib/python3.7/site-packages/absl/app.py", line 299 in run File "/home/nurettin/anaconda3/envs/py/lib/python3.7/site-packages/tensorflow/python/platform/app.py", line 40 in run File "/home/nurettin/anaconda3/envs/py/lib/python3.7/site-packages/tensorflow/lite/toco/python/toco_from_protos.py", line 93 in main File "/home/nurettin/anaconda3/envs/py/bin/toco_from_protos", line 8 in Aborted (core dumped)

python convert_tflite.py --weights ./checkpoints/yolov4-tiny-416 --output ./checkpoints/yolov4-416-fp16.tflite --quantize_mode float16

when ı use save_model.py ı try to use --tiny or not ı get same issue

LiamTTT commented 4 years ago

Same error. When debugging, this issues won't occur.

LiamTTT commented 4 years ago

Same error. When debugging, this issues won't occur.

Saved it when update tf to 2.3.0