logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Pytorch迁移学习

在本教程中,您将学习如何使用迁移学习来训练您的网络。您可以在cs231n便笺上读到更多关于迁移学习的内容,引用这些注释。实际上,很少有人从零开始(随机初始化)训练整个卷积网络,因为拥有足够大的数据集相对较少。相反,通常在一个非常大的数据集中对ConvNet进行预处理(例如,ImageNet,它包含120万张图像,包含1000个类别),然后使用ConvNet作为初始化或固定的特征提取器来完...

逆向透视变换贴图数据增强

import numpy as npimport cv2def rad(x):return x * np.pi / 180def order_points(pts):# initialzie a list of coordinates that will be ordered# such that the first entry in the list is the top-left,# the

#贴图#机器学习#深度学习
transformer目标检测

import torchfrom torch import nnfrom torchvision.models import resnet50class DETR(nn.Module):def __init__(self,num_classes,hidden_dim,nheads,num_encoder_layers,num_decoder_layers):super().__init__()se

#深度学习
逆向透视变换贴图数据增强

import numpy as npimport cv2def rad(x):return x * np.pi / 180def order_points(pts):# initialzie a list of coordinates that will be ordered# such that the first entry in the list is the top-left,# the

#贴图#机器学习#深度学习
qt添加数据库

CoreGuiWidgetsSqlREQUIRED)Qt::CoreQt::GuiQt::Sql。

文章图片
#qt#开发语言
transformer目标检测

import torchfrom torch import nnfrom torchvision.models import resnet50class DETR(nn.Module):def __init__(self,num_classes,hidden_dim,nheads,num_encoder_layers,num_decoder_layers):super().__init__()se

#深度学习
线性可分支持向量机

我们知道两类样本点其实是有很多分割超平面的,那么哪条最优呢?若两个集合有部分相交,那么又如何定义超平面使得两个集合“尽量”分开呢?现在就从这两个问题入手来解决SVM分类器的目标函数是什么。假如有正例和负例两类样本点,现在就要去作一条分割线,但是这些样本的地位并不完全一样,距离直线最近的样本,算出它们离直线的距离,如果两边的不相等,那么我们总可以通过移动直线来使得样本到直线的最短距离相等。我们知..

#机器学习#支持向量机
transformers训练自己的数据集实战

"""使用IMDb评论进行序列分类"""#先下载数据# wget http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz# tar -xf aclImdb_v1.tar.gz#整理文件from pathlib import Pathdef read_imdb_split(split_dir):split_dir = Path(s

各种IOUloss的pytorch实现

def bbox_iou(box1, box2, x1y1x2y2=True, GIoU=False, DIoU=False, CIoU=False):# Returns the IoU of box1 to box2. box1 is 4, box2 is nx4box2 = box2.t()# Get the coordinates of bounding boxesif x1y1x2y2:#

    共 22 条
  • 1
  • 2
  • 3
  • 请选择