当前位置:网站首页>工程(五)——小目标检测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 pytorch2、数据下载
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

边栏推荐
- Drools Rule Properties, Advanced Syntax
- [1154] How to convert string to datetime
- STP选举(步骤+案列)详解
- The difference between link and @import
- AtCoder Beginner Contest 261 Partial Solution
- Static route analysis (the longest mask matching principle + active and standby routes)
- Static routing + PAT + static NAT (explanation + experiment)
- General introduction to the Unity interface
- The modification is not properly placed in the sandbox, causing Apple compatibility issues
- Hanyuan Hi-Tech 8-channel HDMI integrated multi-service high-definition video optical transceiver 8-channel HDMI video + 8-channel two-way audio + 8-channel 485 data + 8-channel E1 + 32-channel teleph
猜你喜欢

The real CTO is a technical person who understands products

Static routing + PAT + static NAT (explanation + experiment)

Path and the largest

User interaction + formatted output

uniapp uses 3rd party fonts

经典链表OJ强训题——快慢双指针高效解法

Pythagorean tuple od js

1. Non-type template parameters 2. Specialization of templates 3. Explanation of inheritance

tcp框架需要解决的问题

跨专业考研难度大?“上岸”成功率低?这份实用攻略请收下!
随机推荐
图解lower_bound&upper_bound
Mathematics to solve the problem - circular linked list
Maximum area of solar panel od js
Problems that need to be solved by the tcp framework
Drools WorkBench的简介与使用
19.支持向量机-优化目标和大间距直观理解
Face detection based on opencv
STM32CUBEMX develops GD32F303 (11) ---- ADC scans multiple channels in DMA mode
Static routing + PAT + static NAT (explanation + experiment)
Draw Your Cards
Drools规则属性,高级语法
怎样做好一个创业公司CTO?
Tower of Hanoi problem
软件积累 -- 截图软件ScreenToGif
AtCoder Beginner Contest 261 Partial Solution
The final exam first year course
AtCoder Beginner Contest 261 部分题解
How to do a startup CTO?
Pythagorean tuple od js
医疗影像领域AI软件开发流程