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.62k stars 2.19k forks source link

imagai seems not working in linux(ubuntu18.04) #284

Closed Jefflier closed 5 years ago

Jefflier commented 5 years ago

lt said: Using TensorFlow backend. 2019-08-09 10:34:50.660802: W tensorflow/core/platform/profile_utils/cpu_utils.cc:98] Failed to find bogomips in /proc/cpuinfo; cannot determine CPU frequency 2019-08-09 10:34:50.661635: I tensorflow/compiler/xla/service/service.cc:161] XLA service 0x3f68f1b0 executing computations on platform Host. Devices: 2019-08-09 10:34:50.661714: I tensorflow/compiler/xla/service/service.cc:168] StreamExecutor device (0): , 2019-08-09 10:34:50.739878: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:965] ARM64 does not support NUMA - returning NUMA node zero 2019-08-09 10:34:50.740194: I tensorflow/compiler/xla/service/service.cc:161] XLA service 0x3da98830 executing computations on platform CUDA. Devices: 2019-08-09 10:34:50.740286: I tensorflow/compiler/xla/service/service.cc:168] StreamExecutor device (0): NVIDIA Tegra X1, Compute Capability 5.3 2019-08-09 10:34:50.740690: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1433] Found device 0 ................................................... TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 191 MB memory) -> physical GPU (device: 0, name: NVIDIA Tegra X1, pci bus id: 0000:00:00.0, compute capability: 5.3) WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version. Instructions for updating: Colocations handled automatically by placer. GStreamer: Error opening bin: empty pipeline not allowed

OlafenwaMoses commented 5 years ago

The problem you are having is with the GStreamer installed on your Linux. Kindly follow this thread on solving this. https://stackoverflow.com/questions/44247926/gstreamer-and-opencv3-videocapture-error-opening-bin-empty-pipeline-not-allow

Do you have ffmpeg installed? You might want to do that.

Jefflier commented 5 years ago

Thank you!l have solved this.

Jefflier commented 5 years ago

l have trained yolov3-tiny weights in darknet and l got a tiny-yolo weight ,but how can l translate it into your tiny-yolov3.h5 l tried but it says error

ValueError: You are trying to load a weight file containing 12 layers into a model with 2 layers. or something like that.

OlafenwaMoses commented 5 years ago

ImageAIs custom detection class doesn't support TinyYOLOv3 yet. It will be supported in future updates.