当前位置:网站首页>yoloV5 使用——训练速度慢,加速训练
yoloV5 使用——训练速度慢,加速训练
2022-08-04 05:29:00 【TigerZ*】
conda create --name yolov5 python=3.8
conda activate yolov5 # linux下2、进入conda环境后,按照官方的程序下载源码和安装依赖
$ git clone https://github.com/ultralytics/yolov5
$ cd yolov5
$ pip install -r requirements.txt$ Python
import torch
torch.__version__ # 打印torch版本
torch.cuda.is_available() # 查看GPU是否可用 4、如果GPU不可用,显示如下:


pip uninstall torch
pip uninstall torchvision
$ Python
import torch
torch.__version__ # 打印torch版本
torch.cuda.is_available() # 查看GPU是否可用 DistributedDataParallel而不要再使用老旧的DataParallel方式。

python -m torch.distributed.launch --nproc_per_node 4 train.py --epochs 100 --batch 128 --data ./data/contraband_rmrb.yaml --weights ./yolov5l.pt --device 0,1,2,3边栏推荐
猜你喜欢

Pytorch语义分割理解

【论文阅读】Multi-View Spectral Clustering with Optimal Neighborhood Laplacian Matrix

TensorFlow2 study notes: 4. The first neural network model, iris classification

thymeleaf中 th:href使用笔记

【深度学习21天学习挑战赛】3、使用自制数据集——卷积神经网络(CNN)天气识别

安装dlib踩坑记录,报错:WARNING: pip is configured with locations that require TLS/SSL

Transformer

TensorFlow2 study notes: 8. tf.keras implements linear regression, Income dataset: years of education and income dataset

Usage of RecyclerView

Jupyter Notebook installed library;ModuleNotFoundError: No module named 'plotly' solution.
随机推荐
Learning curve learning_curve function in sklearn
Thread 、Handler和IntentService的用法
2020-10-29
光条中心提取方法总结(一)
SQL练习 2022/7/3
PCL1.12 解决memory.h中EIGEN处中断问题
Various commands such as creating a new user in postgresql
WARNING: sql version 9.2, server version 11.0. Some psql features might not work.
postgresql中创建新用户等各种命令
审稿意见回复
计算某像素点法线
MFC读取点云,只能正常显示第一个,显示后面时报错
Pytorch语义分割理解
TypeError: load() missing 1 required positional argument: ‘Loader‘
[CV-Learning] Semantic Segmentation
postgresql 事务隔离级别与锁
[Deep Learning 21 Days Learning Challenge] Memo: What does our neural network model look like? - detailed explanation of model.summary()
TensorFlow2学习笔记:5、常用激活函数
MySQL最左前缀原则【我看懂了hh】
Androd Day02