目录
代码仓地址:
https://github.com/qqwweee/keras-yolo3.git
-
创建虚拟环境
-
三方件安装
Python 3.7.5
conda 4.1.6
pip3 uninstall keras-nightlypip3 uninstall -y tensorflow
pip3 install keras2.1.6
pip3 install tensorflow1.15.0
pip3 install h5py==2.10.0
pip install opencv-python ==3.4.2.16
pip install pillow
pip install matplotlib
其他的pip版本:
absl-py2.1.0
astor0.8.1
astunparse1.6.3
cachetools5.3.3
certifi2024.2.2
charset-normalizer3.3.2
cycler0.11.0
distro1.9.0
flatbuffers24.3.7
fonttools4.38.0
gast0.2.2
google-auth2.28.2
google-auth-oauthlib0.4.6
google-pasta0.2.0
grpcio1.62.1
h5py2.10.0
idna3.6
importlib-metadata6.7.0
Keras2.1.6
Keras-Applications1.0.8
Keras-Preprocessing1.1.2
kiwisolver1.4.5
libclang18.1.1
Markdown3.4.4
MarkupSafe2.1.5
matplotlib3.5.3
numpy1.21.6
oauthlib3.2.2
opencv-python3.4.2.16
opt-einsum3.3.0
packaging24.0
Pillow9.5.0
protobuf3.19.6
pyasn10.5.1
pyasn1-modules0.3.0
pyparsing3.1.2
python-dateutil2.9.0.post0
PyYAML6.0.1
requests2.31.0
requests-oauthlib1.4.0
rsa4.9
scikit-build0.17.6
scipy1.7.3
six1.16.0
tensorboard1.15.0
tensorboard-data-server0.6.1
tensorboard-plugin-wit1.8.1
tensorflow1.15.0
tensorflow-estimator1.15.1
tensorflow-intel2.11.0
tensorflow-io-gcs-filesystem0.31.0
termcolor2.3.0
tomli2.0.1
typing_extensions4.7.1
urllib32.0.7
Werkzeug2.2.3
wrapt1.16.0
zipp3.15.0
-
weights文件下载
直接在浏览器输入:
https://pjreddie.com/media/files/yolov3.weights -
模型格式转换
python convert.py yolov3.cfg yolov3.weights model_data/yolo.h5 -
image检测
python yolo_video.py --image
输入图片路径
\your\path\darks.jpg -
video检测
python yolo_video.py --input \your\path\basketball.MP4 --output \your\path\basketball_bak.MP4