Questions tagged [imageai]

Use for questions about using ImageAI, a python library to build applications and systems with self-contained Deep Learning and Computer Vision .

Use for questions about using ImageAI, a python library to build applications and systems with self-contained Deep Learning and Computer Vision.

Use together with .

Related Tags

Links

This tag is being discussed in Do we need [imageai]?

69 questions
4
votes
1 answer

ImportError: cannot import name convert_all_kernels_in_model

I am trying to use ImageAI’s model training to train an AI model. This is the code: from imageai.Prediction.Custom import ModelTraining model_trainer = ModelTraining() model_trainer.setModelTypeAsResNet() …
sydney
  • 83
  • 1
  • 2
  • 11
3
votes
0 answers

Display live camera feed with object recognition markers Python ImageAI OpenCV

I've been using the image AI library to create a simple object detection system using python, which currently records video using the webcam and as far as I can tell detects objects live, once the program stops, a video file is created with object…
jerico
  • 31
  • 4
3
votes
2 answers

Using ImageAI I get => AttributeError: module 'tensorflow' has no attribute 'to_float'

I want to detect objects in images, following this tutorial (https://medium.com/deepquestai/train-object-detection-ai-with-6-lines-of-code-6d087063f6ff). However I receive an error message, which I cannot resolve. What can I do about it, given that…
Philipp
  • 652
  • 2
  • 10
  • 28
2
votes
0 answers

Tensorflow Profiler session tear down and training stopped

I am trying to train an object detection model using ImageAI library and here is my code. from imageai.Detection.Custom import DetectionModelTrainer trainer =…
2
votes
1 answer

Finding the intent of a H5 file

I have downloaded some H5 files, which to my current understanding contain trained models for image recognition. I can successfully apply these models on images using Python, Keras, Tensorflow and ImageAI. From some examples on the Internet, I also…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
1
vote
1 answer

Flask app deployed on PythonAnywhere with Machine Learning model not responding

I am new to PythonAnywhere and facing an issue while deploying my Flask app. The app works fine on my local PC, but I encountered problems when deploying it to PythonAnywhere. Specifically, when I send a POST request with a key "image" and upload an…
1
vote
0 answers

ImageAI variable shape and value shape are different

I am using the imageai.Detection.Custom.CustomObjectDetection class to label my test image based on the model that I trained. The model was trained using the imageai.Detection.Custom.DetectionModelTrainer class. I followed the instructions in the…
1
vote
0 answers

python imageai error `Function call stack: train_function`

Hi sorry for the cringe "tell me what this means" question but I can't seem to figure it out... Here's the code from imageai.Classification.Custom import ClassificationModelTrainer model_trainer =…
1
vote
0 answers

ImageAI Custom Image Classification Only Gives False Positives

I'm just getting started at learning how to use image recognition so I started by following this tutorial a few days ago. Since I'm new at this, I decided to use the same group of images that's used in the tutorial to make sure I'm doing everything…
1
vote
1 answer

How can I run ImageAI on my GPU and not my CPU

So I am quite new to this I was trying to find answers on google but it is kind of not working. So I am trying to run this library ImageAI library I am able to run it normally on the CPU at least I think it runs on CPU by just calling python…
1
vote
0 answers

Tensorflow not working on gpu, raises error nakon seting up cuda and all .dll-s

I have a problem getting tensorflow-gpu working. I use two CNN models, one for object detection and the second for classification. In project, i need opencv, keras, imageai and tensorflow at the same time. I can't get them working all at the same…
1
vote
0 answers

In imageai, how do you interpret the name of the saved model, e.g., "model_ex-077_acc-0.941176.h5"?

I have implemented the standard code from readthedocs on imageai custom prediction, using my own images with two classes - roughly 700 images each in train and 150 in test, and have gotten a model named "model_ex-077_acc-0.941176.h5". Does this mean…
bengelha
  • 11
  • 2
1
vote
1 answer

How to solve "The kernel appears to have died. It will restart automatically"

I am not having the error but when I run the below line its continuously showing that kernel appears to dead. It will restart automatically. I am having the python 3.7.10 and tensorflow 2.4.0 installed. The error is showing when I run the below line…
user15320062
1
vote
1 answer

How to resolve "ValueError: Subshape must have computed start >= end since stride is negative" while implementing object recognition?

I tried to implement the following code: from imageai.Detection import ObjectDetection detector = ObjectDetection() model_path = "yolo-tiny.h5" input_path = "passport_photo.png" output_path =…
Atharv Mishra
  • 11
  • 1
  • 2
1
vote
1 answer

How to deploy python project with tenserflow to exe file?And is it even possible?

I have a project based on ImageAI (the code is taken directly from the documentation), which uses tenserflow, keras and other dependencies, and it needs to be packed into an exe file. The problem is that, so far, I haven't been able to do it, I've…
Rick
  • 11
  • 2
1
2 3 4 5