pytorch
文章平均质量分 71
deyiwang89
这个作者很懒,什么都没留下…
展开
-
[自用代码] 没活了-用人家的reid做个羽毛球场人员跟踪
deepsort reid 羽球运动球员跟踪原创 2022-07-22 01:29:50 · 555 阅读 · 11 评论 -
deep sort yolox pytorch实现
基于pytorch实现的YOLOX-DEEPSORT原创 2022-07-07 00:40:24 · 1165 阅读 · 4 评论 -
deep sort yolov4 pytorch实现
基于pytorch的yolov4 deepsort原创 2020-12-14 09:53:37 · 4550 阅读 · 177 评论 -
SimCLR笔记
SimCLR笔记文章目录SimCLR笔记一. 对该问题进行建模, 总共分为三步:1.1 相似和不同图像的样本1.2 了解图像所表示的内容的能力1.3 量化两个图像是否相似的能力二. SimCLR框架的方法2.1 算法框架2.1.1 数据增强2.1.2 得到图像的表示2.1.3 投影头2.1.4 模型调优(把相似图像拉的更近一些)2.2 下游任务2.3 目标结果代码来源: leftthomas_SimCLR内容来源: 图解SimCLR框架,用对比学习得到一个好的视觉预训练模型近年来,众多的自我监督原创 2020-07-23 21:17:43 · 6738 阅读 · 22 评论 -
Pytorch 中的数据增强(自学用)
介绍Pytorch中torchvision.transforms几个数据增强函数的使用方法:from torchvision import transformsfrom PIL import Imagefrom torchvision.transforms import functional as TFimport torchpath = 'D:\\片儿\\1910pt课程\\pract...原创 2019-11-02 15:30:17 · 895 阅读 · 0 评论 -
lesson-07-Logsitic-Regression-norm
"""# @file name : Logsitic-Regression-norm.py# @author : tingsongyu# @date : 2019-09-08 10:08:00# @brief :"""import torch import torch.nn as nnimport matplotlib.pyplot as plt...翻译 2019-10-24 15:42:31 · 217 阅读 · 0 评论 -
lesson-06-image-classification-based-on-lenet
Part I 拆分数据"""# @file name : 1_split_dataset.py# @author : tingsongyu# @date : 2019-09-07 10:08:00# @brief : 将数据集划分为训练集,验证集,测试集"""# for data splitimport osimport randomimpor...翻译 2019-10-24 15:40:38 · 311 阅读 · 0 评论 -
lesson-05-Logistic-Regression
import torch as ttimport torch.nn as nnimport matplotlib.pyplot as pltimport numpy as nptt.manual_seed(10)<torch._C.Generator at 0x6858f10>机器学习模型训练步骤迭代训练数据模型loss_fnoptimizer# ste...翻译 2019-10-19 17:15:52 · 98 阅读 · 0 评论 -
lesson-05-autograd
lesson - 05 - 01 - autogradautograd–自动求导系统import torch as tttt.manual_seed(10)<torch._C.Generator at 0x6079f10>torch.autograd.backward(tensors, # 用于求导的张量, 如loss grad_tens...翻译 2019-10-19 17:14:42 · 183 阅读 · 0 评论 -
lesson-04-computational-graph
@file name : lesson-04-Computational-Graph.py@author : tingsongyu@date : 2018-08-28@brief : 计算图示例# lesson-04-computational-graph.pyimport torch as ttw = tt.tensor([1.], requires_...翻译 2019-10-19 17:13:55 · 77 阅读 · 0 评论 -
lesson-3-LinearRegreession
import torch import matplotlib.pyplot as plttorch.manual_seed(10) # 干啥用的<torch._C.Generator at 0x647af10>lr = 0.1#创建训练数据x = torch.rand(20, 1) * 10 # x data (tansor), shape = (20, 1)y =...翻译 2019-10-19 17:13:01 · 114 阅读 · 0 评论 -
Lesson-3-张量操作
import torch as tttt.manual_seed(1)<torch._C.Generator at 0x683af10>torch.manual_seed(args.seed) #为CPU设置种子用于生成随机数,以使得结果是确定的if args.cuda:torch.cuda.manual_seed(args.seed)#为当前GPU设置随机种子;如果使用...翻译 2019-10-19 17:10:25 · 122 阅读 · 0 评论