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.5k stars 2.18k forks source link

ImportError: No module named 'tensorflow.python' #91

Closed wassimgoodar closed 5 years ago

wassimgoodar commented 5 years ago

Hi i have tested the object detection using tenserflow for cpu and it is working fine and it is taking between 15 to 25 seconds to do object detection using tiny-yolo. However, when i try to test it using tenserflow GPU using Nvidea Getfoce GTX 950M, i am getting the following error.Can anyone help me please?? i have install tensorflow gpu using the command pip install tensorflow-gpu and has successfully installed tensorflow gpu version 1.11.0

C:\Users\acer\PycharmProjects\imageai\venv\Scripts\python.exe C:/Users/acer/PycharmProjects/imageai/firstdetectiongpu.py Using TensorFlow backend. Traceback (most recent call last): File "C:/Users/acer/PycharmProjects/imageai/firstdetectiongpu.py", line 1, in from imageai.Detection import ObjectDetection File "C:\Users\acer\PycharmProjects\imageai\venv\lib\site-packages\imageai\Detection__init__.py", line 3, in from imageai.Detection.keras_retinanet.models.resnet import resnet50_retinanet File "C:\Users\acer\PycharmProjects\imageai\venv\lib\site-packages\imageai\Detection\keras_retinanet\models\resnet.py", line 19, in import keras File "C:\Users\acer\PycharmProjects\imageai\venv\lib\site-packages\keras__init.py", line 3, in from . import utils File "C:\Users\acer\PycharmProjects\imageai\venv\lib\site-packages\keras\utils\init.py", line 6, in from . import conv_utils File "C:\Users\acer\PycharmProjects\imageai\venv\lib\site-packages\keras\utils\conv_utils.py", line 9, in from .. import backend as K File "C:\Users\acer\PycharmProjects\imageai\venv\lib\site-packages\keras\backend\init__.py", line 89, in from .tensorflow_backend import * File "C:\Users\acer\PycharmProjects\imageai\venv\lib\site-packages\keras\backend\tensorflow_backend.py", line 6, in from tensorflow.python.framework import ops as tf_ops ImportError: No module named 'tensorflow.python'

Process finished with exit code 1

wassimgoodar commented 5 years ago

i had wrongly installled tensorflow-gpu dependencies like cuda, cudnn