依賴
在應(yīng)用程序開發(fā)中使用ImageAI之前必須安裝以下依賴項(xiàng):
- python (使用3.7.7猜丹,不要使用python3.8,如果安裝了3.8央渣,tensorflow只能安裝2.0以上版本计盒,ImageAI現(xiàn)在還不支持)
- pip3
- tensorflow(tensorflow1.15.0)
pip3 install tensorflow==1.15.0
- Numpy 1.13.1(及更高版本)
pip3 install numpy
- SciPy 0.19.1(及更高版本) 安裝或 通過pip安裝
pip3 install scipy
- OpenCV
pip3 install opencv-python
- pillow
pip3 install pillow
- Matplotlib
pip3 install matplotlib
- h5py
pip3 install h5py
- Keras 2.3.1
pip3 install keras==2.3.1
安裝
請(qǐng)?jiān)诿钚兄羞\(yùn)行如下命令來安裝 ImageAI:
pip3 install https://github.com/OlafenwaMoses/ImageAI/releases/download/2.0.1/imageai-2.0.1-py3-none-any.whl
Tensorflow和Keras的版本有對(duì)應(yīng)關(guān)系