ImageAI icon indicating copy to clipboard operation
ImageAI copied to clipboard

Can ImageAI use newer Libraries?

Open damies13 opened this issue 2 years ago • 4 comments

Hi I was wanting to try ImageAI but was not able to get it working following the Install Documentation

pip install tensorflow==2.4.0

The first issue was tensorflow 2.4.0 is no longer available so I just installed the latest version (2.9.1), I also tried installing the oldest available version 2.5.0

I also had the same issue with

pip install keras==2.4.3 numpy==1.19.3 pillow==7.0.0 scipy==1.4.1 h5py==2.10.0 matplotlib==3.3.2 opencv-python keras-resnet==0.2.0

For some of these libraries these version weren't available, I started as with tensorflow with the current version, then when I rolled back to tensorflow 2.5.0 I rolled these back to the closest available version

For Reference I'm using a vanilla Debian 11 install with Python 3.9.2

Other issues I had (that might be worth including in the documentation):

  1. The dependancy on libGL.so.1 was missed, so I needed to figure out that I needed to install
apt install libgl1-mesa-glx
  1. tensorflow needs a lot of memory to install (>2GB), for my application I intend to use small ARM SBC's these often only have 512MB of ram so I set my VM up with the same specifications, however the tensorflow install just crashed, I needed to give more than 2GB of swap memory in order for tensorflow to install at all.

My main question is: Will there be a version soon of ImageAI that works with a more recent version of tensorflow and the other dependancies?

Dave.

damies13 avatar Jun 18 '22 07:06 damies13

This issue is quite important because right now anyone who doesn't have the dependencies saved by chance on their computer won't be able to configure the framework. I understand the difficulty of maintaining the software with the new versions of the dependencies, but it is absolutely necessary to keep the project alive.

alonsoir avatar Oct 06 '22 08:10 alonsoir

I agree with the above and am willing to offer any help needed if that is of any interest.

YakFromStateFarm avatar Oct 10 '22 04:10 YakFromStateFarm

I agree. I cannot install and run directly because it uses too many old libs that don't exist on pip. I don't want to find the old versions and install them one by one. I just give up.

immortal-blog avatar Oct 30 '22 04:10 immortal-blog

You might need to check the tensorflow-2.7.2 branch.

tankxiaodi avatar Nov 08 '22 08:11 tankxiaodi