OlafenwaMoses / ImageAI

A python library built to empower developers to build applications and systems with self-contained Computer Vision capabilities
https://www.genxr.co/#products
MIT License
8.49k stars 2.18k forks source link

Illegal instruction: 4 #7

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi, please help me, I still try 3 days for resolving my issue...

i have a MacBook Pro.

if I start your script, I got a error:

`sh-3.2# python3 FirstVideoObjectDetection.py

Using TensorFlow backend. Illegal instruction: 4`

Problem is the last line (Illegal instruction: 4). This comes from this codeline: video_path = detector.detectObjectsFromVideo(input_file_path=os.path.join(execution_path, "test.mp4"), output_file_path=os.path.join(execution_path, "traffic_detected"), frames_per_second=20, log_progress=True)

Have you a idea ???

Greets Christian

sh-3.2# pip3 freeze absl-py==0.2.2 astor==0.6.2 bleach==1.5.0 cloudpickle==0.5.3 cycler==0.10.0 dask==0.18.0 decorator==4.3.0 gast==0.2.0 grpcio==1.12.1 h5py==2.8.0 html5lib==0.9999999 imageai==2.0.1 imutils==0.4.6 Keras==2.2.0 Keras-Applications==1.0.2 Keras-Preprocessing==1.0.1 kiwisolver==1.0.1 Markdown==2.6.11 matplotlib==2.2.2 networkx==2.1 nose==1.3.7 numpy==1.13.0 opencv-python==3.4.1.15 pbr==4.0.4 Pillow==5.1.0 protobuf==3.6.0 psycopg2==2.7.5 PyAutoGUI==0.9.36 PyMsgBox==1.0.6 pyobjc==4.2.2 pyobjc-core==4.2.2 pyobjc-framework-Accounts==4.2.2 pyobjc-framework-AddressBook==4.2.2 pyobjc-framework-AppleScriptKit==4.2.2 pyobjc-framework-AppleScriptObjC==4.2.2 pyobjc-framework-ApplicationServices==4.2.2 pyobjc-framework-Automator==4.2.2 pyobjc-framework-AVFoundation==4.2.2 pyobjc-framework-AVKit==4.2.2 pyobjc-framework-BusinessChat==4.2.2 pyobjc-framework-CalendarStore==4.2.2 pyobjc-framework-CFNetwork==4.2.2 pyobjc-framework-CloudKit==4.2.2 pyobjc-framework-Cocoa==4.2.2 pyobjc-framework-Collaboration==4.2.2 pyobjc-framework-ColorSync==4.2.2 pyobjc-framework-Contacts==4.2.2 pyobjc-framework-ContactsUI==4.2.2 pyobjc-framework-CoreBluetooth==4.2.2 pyobjc-framework-CoreData==4.2.2 pyobjc-framework-CoreLocation==4.2.2 pyobjc-framework-CoreML==4.2.2 pyobjc-framework-CoreServices==4.2.2 pyobjc-framework-CoreSpotlight==4.2.2 pyobjc-framework-CoreText==4.2.2 pyobjc-framework-CoreWLAN==4.2.2 pyobjc-framework-CryptoTokenKit==4.2.2 pyobjc-framework-DictionaryServices==4.2.2 pyobjc-framework-DiskArbitration==4.2.2 pyobjc-framework-EventKit==4.2.2 pyobjc-framework-ExceptionHandling==4.2.2 pyobjc-framework-ExternalAccessory==4.2.2 pyobjc-framework-FinderSync==4.2.2 pyobjc-framework-FSEvents==4.2.2 pyobjc-framework-GameCenter==4.2.2 pyobjc-framework-GameController==4.2.2 pyobjc-framework-GameKit==4.2.2 pyobjc-framework-GameplayKit==4.2.2 pyobjc-framework-ImageCaptureCore==4.2.2 pyobjc-framework-IMServicePlugIn==4.2.2 pyobjc-framework-InputMethodKit==4.2.2 pyobjc-framework-InstallerPlugins==4.2.2 pyobjc-framework-InstantMessage==4.2.2 pyobjc-framework-Intents==4.2.2 pyobjc-framework-IOSurface==4.2.2 pyobjc-framework-iTunesLibrary==4.2.2 pyobjc-framework-LatentSemanticMapping==4.2.2 pyobjc-framework-LaunchServices==4.2.2 pyobjc-framework-libdispatch==4.2.2 pyobjc-framework-LocalAuthentication==4.2.2 pyobjc-framework-MapKit==4.2.2 pyobjc-framework-MediaAccessibility==4.2.2 pyobjc-framework-MediaLibrary==4.2.2 pyobjc-framework-MediaPlayer==4.2.2 pyobjc-framework-ModelIO==4.2.2 pyobjc-framework-MultipeerConnectivity==4.2.2 pyobjc-framework-NetFS==4.2.2 pyobjc-framework-NetworkExtension==4.2.2 pyobjc-framework-NotificationCenter==4.2.2 pyobjc-framework-OpenDirectory==4.2.2 pyobjc-framework-Photos==4.2.2 pyobjc-framework-PhotosUI==4.2.2 pyobjc-framework-PreferencePanes==4.2.2 pyobjc-framework-PubSub==4.2.2 pyobjc-framework-QTKit==4.2.2 pyobjc-framework-Quartz==4.2.2 pyobjc-framework-SafariServices==4.2.2 pyobjc-framework-SceneKit==4.2.2 pyobjc-framework-ScreenSaver==4.2.2 pyobjc-framework-ScriptingBridge==4.2.2 pyobjc-framework-SearchKit==4.2.2 pyobjc-framework-Security==4.2.2 pyobjc-framework-SecurityFoundation==4.2.2 pyobjc-framework-SecurityInterface==4.2.2 pyobjc-framework-ServiceManagement==4.2.2 pyobjc-framework-Social==4.2.2 pyobjc-framework-SpriteKit==4.2.2 pyobjc-framework-StoreKit==4.2.2 pyobjc-framework-SyncServices==4.2.2 pyobjc-framework-SystemConfiguration==4.2.2 pyobjc-framework-Vision==4.2.2 pyobjc-framework-WebKit==4.2.2 pyparsing==2.2.0 PyScreeze==0.1.14 pytesseract==0.2.2 python-dateutil==2.7.3 PyTweening==1.0.3 pytz==2018.4 PyWavelets==0.5.2 PyYAML==3.12 scikit-image==0.14.0 scikit-learn==0.19.1 scipy==1.1.0 six==1.11.0 sklearn==0.0 stevedore==1.28.0 tensorboard==1.8.0 tensorflow==1.5.0 tensorflow-tensorboard==1.5.1 termcolor==1.1.0 toolz==0.9.0 torch==0.4.0 torchvision==0.2.1 utils==0.9.0 virtualenv==16.0.0 virtualenv-clone==0.3.0 virtualenvwrapper==4.8.2 Werkzeug==0.14.1

OlafenwaMoses commented 6 years ago

Hello,

What version of Tensorflow do you have installed? It might be as a result of the version you have installed. I will suggest you try out the solution provided in the link below. https://stackoverflow.com/questions/49084934/illegal-instruction-4-when-importing-tensorflow-in-python-3-6