I am following this article on AI Agriculture with Google Colaboratory
https://medium.com/deepquestai/ai-in-agriculture-detecting-defects-in-apples-b246799b329c
And when running the python file it gives an error
!python apple_detection_training.py
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory when running
!pip install tensorflow-gpu==1.13.1
!pip install keras
!pip install opencv-python
!pip install imageai --upgrade
!unzip apple_detection_dataset.zip
!python apple_detection_training.py
Using TensorFlow backend. Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "/usr/lib/python3.6/imp.py", line 243, in load_module return load_dynamic(name, filename, file) File "/usr/lib/python3.6/imp.py", line 343, in load_dynamic return _load(spec) ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "apple_detection_training.py", line 1, in from imageai.Detection.Custom import DetectionModelTrainer File "/usr/local/lib/python3.6/dist-packages/imageai/Detection/init.py", line 2, in from imageai.Detection.keras_retinanet.models.resnet import resnet50_retinanet File "/usr/local/lib/python3.6/dist-packages/imageai/Detection/keras_retinanet/models/resnet.py", line 19, in import keras File "/usr/local/lib/python3.6/dist-packages/keras/init.py", line 3, in from . import utils File "/usr/local/lib/python3.6/dist-packages/keras/utils/init.py", line 6, in from . import conv_utils File "/usr/local/lib/python3.6/dist-packages/keras/utils/conv_utils.py", line 9, in from .. import backend as K File "/usr/local/lib/python3.6/dist-packages/keras/backend/init.py", line 1, in from .load_backend import epsilon File "/usr/local/lib/python3.6/dist-packages/keras/backend/load_backend.py", line 89, in from .tensorflow_backend import * File "/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py", line 5, in import tensorflow as tf File "/usr/local/lib/python3.6/dist-packages/tensorflow/init.py", line 24, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/init.py", line 49, in from tensorflow.python import pywrap_tensorflow File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in raise ImportError(msg) ImportError: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "/usr/lib/python3.6/imp.py", line 243, in load_module return load_dynamic(name, filename, file) File "/usr/lib/python3.6/imp.py", line 343, in load_dynamic return _load(spec) ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
Failed to load the native TensorFlow runtime.
Top comments (0)