CVPR2023 | 神经网络结构设计、CNN、GNN、Transformer论文合集(附代码)

论文阅读《LargeKernel3D: Scaling up Kernels in 3D Sparse CNNs》 本文针对 3D 卷积过程中深度分离卷积与大卷积核卷积难以有效应用的难题,提出了空间分区卷积与与适用于3D卷积过程的大卷积核卷积方式,通过在空间上相邻的位置之间共享权重来将大卷积核重新映射为小卷积核,与普通大卷积核相比,该方法的延迟更短,而且空间维度之间的权重共享可以克服过拟合问题,实验数据表明该方法在多个下游任务中有较好的性能表现。 阅读详情

合集下载:点我跳转

1、神经网络结构设计

[1]Boundary Unlearning

[Code]None

 

[2]Equiangular Basis Vectors

[Code]GitHub - NJUST-VIPGroup/Equiangular-Basis-Vectors

 

[3]LargeKernel3D: Scaling up Kernels in 3D Sparse CNNs

[Code]GitHub - dvlab-research/LargeKernel3D: LargeKernel3D: Scaling up Kernels in 3D Sparse CNNs (CVPR 2023)

 

[4]Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networks

[Code]GitHub - JierunChen/FasterNet: [CVPR 2023] Code for PConv and FasterNet

 

[5]ALOFT: A Lightweight MLP-like Architecture with Dynamic Low-frequency Transform for Domain Generalization

[Code]https://github.com/lingeringlight/ALOFT/

[Area]MLP

 

[6]Learning 3D Representations from 2D Pre-trained Models via Image-to-Point Masked Autoencoders

[Code]GitHub - ZrrSkywalker/I2P-MAE: [CVPR 2023] Learning 3D Representations from 2D Pre-trained Models via Image-to-Point Masked Autoencoders

[Area]MAE

 

[7]Compacting Binary Neural Networks by Sparse Kernel Selection

[Code]None

 

[8]Bridging Precision and Confidence: A Train-Time Loss for Calibrating Object Detection

[Code]GitHub - akhtarvision/bpc_calibration: [CVPR 2023] Bridging Precision and Confidence: A Train-Time Loss for Calibrating Object Detection

 

[9]SMPConv: Self-moving Point Representations for Continuous Convolution

[Code]GitHub - sangnekim/SMPConv: [CVPR2023] "SMPConv: Self-moving Point Representations for Continuous Convolution"

 

2、CNN

[1]Randomized Adversarial Training via Taylor Expansion

[Code]GitHub - Alexkael/Randomized-Adversarial-Training

 

[2]Alias-Free Convnets: Fractional Shift Invariance via Polynomial Activations

[Code]https://github.com/hmichaeli/alias_free_convnets/

 

[3]DeepMAD: Mathematical Architecture Design for Deep Convolutional Neural Network

[Code]GitHub - alibaba/lightweight-neural-architecture-search: This is a collection of our zero-cost NAS and efficient vision applications.

 

[4]Demystify Transformers & Convolutions in Modern Image Deep Networks

[Code]GitHub - OpenGVLab/STM-Evaluation

 

[5]InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutions

[Code]GitHub - OpenGVLab/InternImage: [CVPR 2023 Highlight] InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutions

 

[6]VNE: An Effective Method for Improving Deep Representation by Manipulating Eigenvalue Distribution

[Code]GitHub - jaeill/CVPR23-VNE: Official Implementation of CVPR 2023 paper: "VNE: An Effective Method for Improving Deep Representation by Manipulating Eigenvalue Distribution"

 

3、Transformer

[1]POTTER: Pooling Attention Transformer for Efficient Human Mesh Recovery

[Code]POTTER: Pooling Attention Transformer for Efficient Human Mesh Recovery

 

[2]FeatER: An Efficient Network for Human Reconstruction via Feature Map-Based TransformER

[Code]https://zczcwh.github.io/feater_page/

 

[3]Spherical Transformer for LiDAR-based 3D Recognition

[Code]GitHub - dvlab-research/SphereFormer: The official implementation for "Spherical Transformer for LiDAR-based 3D Recognition" (CVPR 2023).

 

[4]MELTR: Meta Loss Transformer for Learning to Fine-tune Video Foundation Models

[Code]https://github.com/mlvlab/MELTR

 

[5]Top-Down Visual Attention from Analysis by Synthesis

[Code]https://sites.google.com/view/absvit

 

[6]BiFormer: Vision Transformer with Bi-Level Routing Attention

[Code]GitHub - rayleizhu/BiFormer: [CVPR 2023] Official code release of our paper "BiFormer: Vision Transformer with Bi-Level Routing Attention"

 

[7]Making Vision Transformers Efficient from A Token Sparsification View

[Code]None

 

[8]Visual Atoms: Pre-training Vision Transformers with Sinusoidal Waves

[Code]None

 

[9]Learning Imbalanced Data with Vision Transformers

[Code]https://github.com/XuZhengzhuo/LiVT

 

[10]SAP-DETR: Bridging the Gap Between Salient Points and Queries-Based Transformer Detector for Fast Model Convergency

[Code]https://github.com/liuyang-ict/SAP-DETR.

 

[11]Masked Jigsaw Puzzle: A Versatile Position Embedding for Vision Transformers

[Code]GitHub - yhlleo/MJP: An official Pytorch implementation of "Masked Jigsaw Puzzle: A Versatile Position Embedding for Vision Transformers", CVPR 2023.

 

[12]Lite DETR : An Interleaved Multi-Scale Encoder for Efficient DETR

[Code]https://github.com/IDEA-Research/Lite-DETR

 

[13]Integrally Pre-Trained Transformer Pyramid Networks

[Code]GitHub - sunsmarterjie/iTPN: (CVPR2023) Integrally Pre-Trained Transformer Pyramid Networks

 

[14]Sparsifiner: Learning Sparse Instance-Dependent Attention for Efficient Vision Transformers

[Code]None

 

[15]CAT: LoCalization and IdentificAtion Cascade Detection Transformer for Open-World Object Detection

[Code]GitHub - xiaomabufei/CAT

 

[16]Learning Anchor Transformations for 3D Garment Animation

[Code]AnchorDEF

 

[17]Generalized Relation Modeling for Transformer Tracking

[Code]https://github.com/Little-Podi/GRM

 

[18]One-Stage 3D Whole-Body Mesh Recovery with Component Aware Transformer

[Code]One-Stage 3D Whole-Body Mesh Recovery with Component Aware Transformer

 

[19]Transferable Adversarial Attacks on Vision Transformers with Token Gradient Regularization

[Code]None

 

[20]Learning Expressive Prompting With Residuals for Vision Transformers

[Code]None

 

[21]Visual Dependency Transformers: Dependency Tree Emerges from Reversed Attention

[Code]GitHub - dingmyu/DependencyViT: Visual Dependency Transformers: Dependency Tree Emerges from Reversed Attention (CVPR 2023)

 

[22]MethaneMapper: Spectral Absorption aware Hyperspectral Transformer for Methane Detection

[Code]GitHub - UCSB-VRL/MethaneMapper-Spectral-Absorption-aware-Hyperspectral-Transformer-for-Methane-Detection: MethaneMapper: Spectral Absorption aware Hyperspectral Transformer for Methane Detection

 

[23]METransformer: Radiology Report Generation by Transformer with Multiple Learnable Expert Tokens

[Code]None

 

[24]Slide-Transformer: Hierarchical Vision Transformer with Local Self-Attention

[Code]GitHub - LeapLabTHU/Slide-Transformer: Official repository of Slide-Transformer (CVPR2023)

 

4、图神经网络(GNN)

[1]Turning Strengths into Weaknesses: A Certified Robustness Inspired Attack Framework against Graph Neural Networks

[Code]None

 

[2]From Node Interaction to Hop Interaction: New Effective and Scalable Graph Learning Paradigm

[Code]GitHub - JC-202/HopGNN

 

[3]Mind the Label Shift of Augmentation-based Graph OOD Generalization

[Code]GitHub - Samyu0304/LiSA: LiSA (CVPR 2023) is a model-agnostic Graph OOD framework.

 

[4]Adversarially Robust Neural Architecture Search for Graph Neural Networks

[Code]None

 

5、神经网络架构搜索(NAS)

[1]Polynomial Implicit Neural Representations For Large Diverse Datasets

[Code]GitHub - Rajhans0/Poly_INR: Code for our CVPR'23 paper: "Polynomial Implicit Neural Representations For Large Diverse Datasets"

 

[2]PA&DA: Jointly Sampling PAth and DAta for Consistent NAS

[Code]GitHub - ShunLu91/PA-DA: [CVPR '23] PA&DA: Jointly Sampling PAth and DAta for Consistent NAS

 

[3]Stitchable Neural Networks

[Code]Stitchable Neural Networks

LightGlue:Transformer加速特征匹配的技术解析 特征匹配是计算机视觉中的基础任务,传统方法如SIFT、ORB依赖手工设计的特征描述符,而深度学习方法如SuperGlue通过图神经网络提升了精度但牺牲了速度。Transformer架构的引入改变了这一局面,其自注意力机制能够高效建模特征点间的关联。LightGlue创新性地采用Transformer重构特征匹配流程,在保持高精度的同时显著提升速度,计算复杂度从O(N²)降至O(NK)。这种技术特别适用于实时SLAM、无人机视觉定位等对计算效率要求高的场景,通过动态匹配终止机制和共享权重设计,实现了精度与速度 阅读详情

相关推荐

自动驾驶轨迹预测大模型:从语义建模到车端实时部署

轨迹预测是自动驾驶决策系统的核心环节,其本质是从多源感知数据中推断交通参与者未来运动状态。传统方法依赖时序回归与局部图结构建模,受限于泛化性差、物理不可解释、长尾场景鲁棒性弱等瓶颈。大型基础模型通过交通语义编码、多智能体约束感知注意力、时空一致性校验等机制,将预测任务升维为‘语义空间中的条件生成’,显著提升复杂路口博弈、鬼探头、施工绕行等长尾场景的预测精度与可解释性。结合Transformer动态建模能力、多源异构预训练范式及轻量化部署技术,这类模型已实现在小鹏XNGP 2.5、华为ADS 3.0等量产系统

weixin_33785108的博客 411

Transformer顶会最新进展 | 含IJCAI,CVPR,AAAI2023等会议论文

Transformer作为提升NLP效率的黑魔法,在自然语言处理领域发生了巨大的影响,如当下火热的GPT-3 和 lang-8 等,就是基于Transformer架构构建的大语言模型。为了让更多科研人更高效的获取文献知识,AMiner基于GLM-130B大模型能力,开发了Chatpaper,帮助科研人快速提高检索、阅读论文效率,获取最新领域研究动态,让科研工作更加游刃有余。Transformer 模型的最新进展表明,它已经成为自然语言处理领域中最重要的模型之一,并且在许多任务中取得了最先进的性能。

AI_Conf的博客 1381

基于CNN的数据回归预测--附Matlab源代码

本文介绍了基于CNN实现数据回归预测的方法,并附上了相应的Matlab源代码。这种方法在一定程度上可以提高数据回归预测的准确率,特别是在复杂的数据集上表现较好。训练时,我们可以采用交叉验证的方式,以提高模型的稳定性和泛化能力。本文将介绍基于CNN实现数据回归预测的方法,并附上相应的Matlab源代码。读者需要掌握基本的深度学习和CNN的知识。常见的预处理方式包括特征缩放和标准化,本文采用标准化的方式进行数据预处理。在这里,我们采用4层卷积层和3层全连接层的结构,其中激活函数采用ReLU函数。

code_welike的博客 1138

2023/9/3周报 GNN

GNN是指基于图的神经网络,它是一种特殊的深度学习模型,主要用于处理具有复杂结构的数据。它使用神经网络来处理具有复杂结构的数据,比如图形、文本和时序等。GNN可以将具有复杂结构的数据转换为有用的特征,从而为模型的训练提供有用的信息。本周对GNN进行初步的学习,学习GNN的一些应用以及模型。重点关注了GNN背后的一些数学原理,例如傅里叶级数、傅里叶变换等等。GNN是非常强大的工具,已经在路线规划、欺诈检测、网络优化和药物研究等领域得到广泛的应用。

user_s1的博客 495

涨点技巧:Yolov5/Yolov7引入CVPR2023 Demystify Transformers & Convolutions ,提升小目标检测精度

特征转换模块(例如注意力或卷积)之间的主要区别在于空间特征聚合的方式,即所谓的“空间标记混合器”(STM)。因此制定了一个统一的架构来消除不同工程技术的不公平影响,最终引入到Yolov5/Yolov7

①答疑群聊服务;②YOLO大模型知识问答系统;③计算机视觉论文生成智能体; 1737

Python新手必看:5分钟搞定睿尔曼机械臂基础控制(附代码示例)

本文为Python新手提供了快速上手睿尔曼机械臂基础控制的实战指南。通过详细的步骤讲解和代码示例,介绍了从环境搭建、网络配置、SDK安装到建立连接、执行关节运动(movej)、直线运动(movel)等核心控制指令的全过程,帮助零基础开发者快速实现机械臂的基础操控。

hp777的博客 332

2023年 20篇神经架构搜索(Neural Architecture Search) CVPR ICLR AAAI Survey 笔记 (持续更新)

23年 20篇神经架构搜索(NAS) CVPR ICLR ICCV AAAI IJCAI Survey 笔记

miss_the_boat的博客 4165

Git Worktree + Claude Code:多终端并发开发完全实战

深入讲解如何使用 Git Worktree 配合多终端 Claude Code 实现并发开发,通过实战案例展示如何在 Android 开发中提升 2-3 倍效率,彻底告别等待 AI 的问题。

Cheson的专栏 1208

(WSI分类)WSI分类文献小综述

WSI分类研究介绍。

qq_34616741的博客 8975

SystemVue 链路预算、仿真分析步骤

使用SystemVue进行链路预算、频谱分析等,相对ADS更全面。

BeCourageable的博客 3844

如何在WSL2中利用NVIDIA Container Toolkit实现GPU加速的Docker容器(实测有效)

本文详细介绍了在WSL2环境中通过NVIDIA Container Toolkit实现Docker容器GPU加速的完整配置流程。从环境准备、工具包安装到Docker运行时优化,提供了实测有效的步骤指南和性能调优技巧,帮助开发者高效利用GPU资源进行机器学习开发。

weixin_29230773的博客 232

Torch-Pruning:深度学习模型剪枝的革命性工具,让大模型也能轻装上阵

想要让庞大的深度学习模型变得更小、更快、更高效吗?Torch-Pruning正是为解决这一挑战而生的结构化剪枝工具包。作为CVPR 2023的杰出研究成果,它基于创新的DepGraph算法,能够智能识别神经网络中的参数依赖关系,实现安全、高效的模型压缩,支持从传统CNN到现代Transformer、大型语言模型(LLMs)乃至扩散模型的广泛架构。 ## 🚀 为什么选择Torch-Pruning

gitblog_00765的博客 1066

C语言实现俄罗斯方块

使用C语言完成俄罗斯方块。《俄罗斯方块》的基本规则是移动、旋转和摆放游戏自动输出的各种方块,使之排列成完整的一行或多行并且消除得分。由小方块组成的不同形状的板块陆续从屏幕上方落下来,玩家通过调整板块的位置和方向,使它们在屏幕底部拼出完整的一条或几条。这些完整的横条会随即消失,给新落下来的板块腾出空间,与此同时,玩家得到分数奖励。没有被消除掉的方块不断堆积起来,一旦堆到屏幕顶端,玩家便告输,游戏结束。顾名思义,俄罗斯方块自然是俄罗斯人发明的。

qq_54169998的博客 7万+

Torch-Pruning 终极指南:如何用 DepGraph 实现高效神经网络剪枝

**Torch-Pruning** 是一个基于 DepGraph 算法的结构化神经网络剪枝工具包,专门设计用于物理移除冗余参数而非简单掩码零化。这个开源项目支持从传统卷积网络到现代 Transformer、LLM、扩散模型等多种架构,通过自动化依赖分析确保剪枝后的模型保持结构完整性。🚀 ## 为什么选择 Torch-Pruning? 在深度学习模型部署中,模型大小和推理速度是关键瓶颈。传统剪

gitblog_00541的博客 490

从真题到策略:浙江工业大学计算机转专业机试全解析与备考指南

本文全面解析浙江工业大学计算机转专业机试的考试概况、典型真题和高频考点,提供详细的备考策略和面试准备建议。从机试题目类型到解题技巧,帮助考生高效备考,顺利通过这一竞争激烈的转专业关卡。

weixin_42524824的博客 432

SOEM主站开发篇(1):移植SOEM主站到Linux开发板

详细介绍了SOEM主站源码移植到Linux开发板上的步骤,同时演示了如何使用Linux开发板获取EtherCAT从站的PDO映射信息。

kevin1499的博客 2402

ICLR 2022十大硬核论文技术图谱:从理论边界到工业落地

深度学习已进入系统能力构建新阶段,不再满足于单点性能突破,而是追求可验证的理论边界、可迁移的技术范式与可解释的工程实现。自监督学习、扩散模型、因果可解释性、几何深度学习等方向正经历范式松动与临界点跃迁,其中扩散模型超越GANs展现表征理解力,Transformer表达能力获代数拓扑严格界定,梯度对齐与自适应批处理则直击鲁棒性与大模型训练瓶颈。这些进展共同指向AI从‘能用’迈向‘可信、可控、可部署’的核心演进路径——本文聚焦ICLR 2022最具迁移价值的10篇论文,解析其问题定义创新、理论约束证明与开源实现

weixin_34391445的博客 438

WindowsServer2022蓝牙音频开启方法

为Windowsserver 2022 添加蓝牙音频驱动的方法和工具

thebestismin的专栏 2720

Torch-Pruning结构化剪枝技术:基于DepGraph的Transformer模型优化方案

在深度学习模型部署实践中,大型Transformer模型的计算密集特性成为生产环境的主要瓶颈。BERT-base等情感分析模型虽然具备优异的语义理解能力,但其1.1亿参数规模和680M MACs计算量限制了在边缘设备和实时系统中的部署效率。Torch-Pruning作为CVPR 2023的开源结构化剪枝框架,通过创新的依赖图(DepGraph)机制和同构剪枝策略,为工程团队提供了可量化的模型压缩解

gitblog_00264的博客 1059

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

51c深度学习~合集8

方法的完整数学描述略显复杂,如果只是想了解主要思想,可以只看上面 PatchMix的流程图即可(其实只是公式多,每个公式也不复杂,后续有机会做个演示动画,帮助大家理解。这个方法也可以用简单的 Mask 方法实现,但是本方法在大规模图像处理上效率是最高的),对该工作感兴趣的同行可以看一下,我尽量写得清楚一些。结合 PatMix 的流程图,主要过程如下:由于混合图像和混合图像之间,重叠比例的不同,mix-to-mix label 中每一项的权重分数是不同的,根据上图,可以得到权重系数可以表示为。

whaosoft~aiotの开发板商城 2976

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Torch-Pruning 结构化剪枝终极指南:从理论到实战的完整解决方案

**深度神经网络模型日益庞大,计算资源消耗成为部署的瓶颈。传统剪枝方法要么仅零化参数无法真正加速,要么需要手动处理复杂的层间依赖关系。Torch-Pruning 通过创新的 DepGraph 算法,实现了真正的结构化剪枝,物理移除冗余参数,同时保持模型架构完整性。** 无论您是处理 CNN、Transformer、RNN 还是 GNN,Torch-Pruning 提供了统一的结构化剪枝框架,支持

gitblog_00886的博客 996

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

AI/ML论文核心主张:可执行、可证伪、锚定缺口的作战指令

在人工智能与机器学习研究中,'thesis statement'并非文学性论点,而是具备工程约束力的研究主张——它必须定义可测量的性能变化(如准确率提升1.6%)、限定可复现的实验边界(ViT-Base+ImageNet-1K+AdamW),并明确缝合前人工作暴露的技术缺口(如特征空间失配)。这种可计算的因果断言,是连接算法设计、实验验证与学术贡献的逻辑枢纽,直接决定论文是否具备可复现性、可评审性与可部署性。它支撑模型选型、指标设定、消融设计与审稿回应,是驱动整个研究周期的‘技术GPS’。本文聚焦AI/ML

weixin_34332905的博客 606

模型剪枝与超参数优化:Torch-Pruning+Optuna自动化调参完整指南

模型剪枝是深度学习模型压缩的关键技术,能够显著减少模型大小、提升推理速度,同时保持模型性能。Torch-Pruning作为CVPR 2023的开源项目,提供了强大的结构剪枝框架,支持多种神经网络架构。本文将详细介绍如何结合Optuna超参数优化框架,实现自动化模型剪枝调参,帮助开发者高效优化模型性能。 ## 为什么需要自动化模型剪枝调参? 传统的模型剪枝通常依赖手动设置剪枝比例、剪枝策略和重要

gitblog_00041的博客 959

3分钟快速上手:用Torch-Pruning终极指南让你的AI模型瘦身90%

你是不是经常遇到这样的困境:训练了一个强大的深度学习模型,但它在你的设备上运行缓慢,内存占用巨大,部署困难?别担心,今天我要向你介绍一个神奇的AI模型"减肥"神器——Torch-Pruning!这个免费的开源工具能帮你轻松实现**结构化剪枝**,让模型体积缩小90%以上,同时保持性能基本不变。 想象一下,你的AI模型就像一个过度肥胖的人,里面有很多"脂肪"参数,它们对最终结果贡献不大,却占用了大

gitblog_00602的博客 393

终极指南:如何利用Torch-Pruning实现去中心化AI模型剪枝方案

在人工智能飞速发展的今天,模型剪枝技术成为优化AI模型效率的关键。Torch-Pruning作为一款强大的模型剪枝工具,不仅支持LLMs、Diffusion、Transformers、YOLOv8和CNNs等多种模型结构,还能与区块链技术结合,打造去中心化的AI模型剪枝方案,为AI模型优化带来全新可能。 ## 什么是Torch-Pruning? Torch-Pruning是一个基于PyTorc

gitblog_00823的博客 651

3步实现BERT模型轻量化部署与性能优化:基于Torch-Pruning的结构化剪枝指南

在自然语言处理领域,预训练语言模型如BERT-base已成为情感分析等任务的核心工具,但庞大的参数量(1.1亿参数)和计算需求(680M MACs)严重制约了其在边缘设备的部署。模型剪枝作为一种关键的模型压缩技术,能够在保持性能的同时显著降低资源消耗。本文将通过"问题-方案-实践-拓展"四象限框架,详细介绍如何使用Torch-Pruning实现BERT模型的高效剪枝与优化。 ## 🔍 技术痛点

gitblog_00553的博客 393
上一篇: CVPR2023 | 三维视觉方向论文合集(附代码)
下一篇: CVPR 2023 | 一文看尽12篇Best Paper候选(附合集)
AI前沿速递
博客等级 码龄10年 1730粉丝 304原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值