当前位置:网站首页>工程(五)——小目标检测tph-yolov5
工程(五)——小目标检测tph-yolov5
2022-07-31 02:34:00 【桦树无泪】
1、环境安装
1、创建环境
conda create -n yolo python=3.7
conda activate yolo
2、安装pytorch
conda install pytorch torchvision cudatoolkit=11.3 -c pytorch
3、克隆代码
git clone https://github.com/cv516Buaa/tph-yolov5
cd tph-yolov5
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
4、yolov5 报错AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor
根据自己电脑cuda执行相应命令
# CUDA 10.2
conda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 cudatoolkit=10.2 -c pytorch
# CUDA 11.3
conda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 cudatoolkit=11.3 -c pytorch -c conda-forge
# CPU Only
conda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 cpuonly -c pytorch
2、数据下载
Datasets: [VisDrone](http://aiskyeye.com/download/object-detection-2/)
Weights(PyTorchv1.10):
yolov5l-xs-1.pt: (https://pan.baidu.com/s/1APETgMoeCOvZi1GsBZERrg)
yolov5l-xs-2.pt: (https://pan.baidu.com/s/19S84EevP86yJIvnv9KYXDA)
3、测试
python detect.py --source ./data/images/ --weights weights/yolov5l-xs-1.pt --conf 0.4
边栏推荐
猜你喜欢
The principle of complete replication of virtual machines (cloud computing)
16. Registration Center-consul
12 pictures take you to fully understand service current limit, circuit breaker, downgrade, and avalanche
CMOS和TTL的区别?
静态路由+PAT+静态NAT(讲解+实验)
How to do a startup CTO?
f.grid_sample
mysql view
用户交互+格式化输出
Manchester City confuses fans with smart scarf that detects emotions
随机推荐
Introduction to flask series 】 【 flask - using SQLAlchemy
系统需求多变如何设计
你们程序员为什么不靠自己的项目谋生?而必须为其他人打工?
Manchester City confuses fans with smart scarf that detects emotions
Pythagorean tuple od js
【shell基础】判断目录是否为空
1. Non-type template parameters 2. Specialization of templates 3. Explanation of inheritance
Brute Force/Adjacency List Breadth First Directed Weighted Graph Undirected Weighted Graph
跨专业考研难度大?“上岸”成功率低?这份实用攻略请收下!
The effective square of the test (one question of the day 7/29)
Drools Rule Properties, Advanced Syntax
leetcode-399: division evaluation
【银行系列第一期】中国人民银行
【C语言基础】解决C语言error: expected ‘;‘, ‘,‘ or ‘)‘ before ‘&‘ token
How to do a startup CTO?
uniapp uses 3rd party fonts
There is a problem with the multiplayer-hlap package and the solution cannot be upgraded
12 pictures take you to fully understand service current limit, circuit breaker, downgrade, and avalanche
AtCoder Beginner Contest 261 Partial Solution
BAT can't sell "Medical Cloud": Hospitals flee, mountains stand, and there are rules