深度学习-卷积神经网络-目标检测YOLO-v3-推理运行-55
目录
代码仓地址:
https://github.com/qqwweee/keras-yolo3.git
-
创建虚拟环境
-
三方件安装
Python 3.7.5
conda 4.1.6
pip3 uninstall keras-nightly
pip3 uninstall -y tensorflow
pip3 install keras==2.1.6
pip3 install tensorflow==1.15.0
pip3 install h5py==2.10.0
pip install opencv-python ==3.4.2.16
pip install pillow
pip install matplotlib
requirements.txt:
absl-py==2.1.0
astor==0.8.1
astunparse==1.6.3
cachetools==5.3.3
certifi==2024.2.2
charset-normalizer==3.3.2
cycler==0.11.0
distro==1.9.0
flatbuffers==24.3.7
fonttools==4.38.0
gast==0.2.2
google-auth==2.28.2
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
grpcio==1.62.1
h5py==2.10.0
idna==3.6
importlib-metadata==6.7.0
Keras==2.1.6
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.2
kiwisolver==1.4.5
libclang==18.1.1
Markdown==3.4.4
MarkupSafe==2.1.5
matplotlib==3.5.3
numpy==1.21.6
oauthlib==3.2.2
opencv-python==3.4.2.16
opt-einsum==3.3.0
packaging==24.0
Pillow==9.5.0
protobuf==3.19.6
pyasn1==0.5.1
pyasn1-modules==0.3.0
pyparsing==3.1.2
python-dateutil==2.9.0.post0
PyYAML==6.0.1
requests==2.31.0
requests-oauthlib==1.4.0
rsa==4.9
scikit-build==0.17.6
scipy==1.7.3
six==1.16.0
tensorboard==1.15.0
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorflow==1.15.0
tensorflow-estimator==1.15.1
tensorflow-intel==2.11.0
tensorflow-io-gcs-filesystem==0.31.0
termcolor==2.3.0
tomli==2.0.1
typing_extensions==4.7.1
urllib3==2.0.7
Werkzeug==2.2.3
wrapt==1.16.0
zipp==3.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
分类:
机器学习
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!