thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.08k forks source link

Illegal instruction (core dumped) #810

Open AntoliniMatteo opened 6 years ago

AntoliniMatteo commented 6 years ago

I install all dependencies and run those codes: python3 setup.py build_ext --inplace

./flow --imgdir sample_img/ --model cfg/yolo.cfg --load bin/yolo.weights Output: Parsing ./cfg/yolo.cfg Parsing cfg/yolo.cfg Loading bin/yolo.weights ... Successfully identified 203934260 bytes Finished in 0.0168499946594s Model has a coco model name, loading coco labels.

Building net ... Source | Train? | Layer description | Output size -------+--------+----------------------------------+--------------- Illegal instruction (core dumped)

When i try to run the program, it end for an illegal instruction. (I download the weight from the official darknet yolo site)

I would like to run darkflow in CPU mode

LuccasMeller commented 6 years ago

Hi Antolini, I've had this same problem.. did you solve it?

AntoliniMatteo commented 6 years ago

Yes, you must install tensorflow pip install tensorflow==1

LuccasMeller commented 6 years ago

Hi Antolini, I think we had different problems. I've already installed tensorflow. I think my error is due architecture, I installed tensorflow for arm7, but now I changed to arm9 and this error appeared. I think the only solution is to compile tensorflow from source and install on arm9 (this definitely is gonna take me some time).

Thank you for your attention!

Regards, Luccas

johnaiii commented 5 years ago

I have same problem in MacOS, and I can't install tensorflow==1:

ERROR: Could not find a version that satisfies the requirement tensorflow==1 (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 2.0.0a0) ERROR: No matching distribution found for tensorflow==1

Also i can't run this in a iMac 2010 in terminal: python3 flow --model cfg/yolo.cfg --load bin/yolov2.weights videofile.mp4 Illegal instruction: 4