• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

MAC下的yolov5环境配置(超详细总结)


Recommended Posts

1.下载anaconda环境

官网下载太慢。从清华资源下载,地址如下:

https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

选择合适的版本,直接下载。下载后,双击pkg文件进行安装。注意选择安装路径,默认也可以。

安装后,命令行执行

#conda -版本

也可以直接打开应用页面。

2.在GitHub上下载源代码

GitHub源地址:https://github.com/ultralytics/yolov5/tree/v6.1

走向没有中国人的道路

3.创建一个python环境

lylvsk5hxox3874.png

4 .开放终端

进入代码目录并执行。

pip安装-r request.txt

建议先切换pip的来源,快速下载笔记。

5.进入python环境,用python打开

进口火炬

model=torch . hub . load(' ultralytics/yolov 5 ',' yolov5s ')

img=' https://raw . githubusercontent.com/ultralytics/yolov 5/master/data/images/zidane . jpg '

结果=模型(img)

results.show()

Link to comment
Share on other sites