Wan2.2中hight和low nosie的差别

ComfyUI+通义万相 Wan2.1系列生成视频教程 Wan2.1 系列是阿里巴巴通义实验室推出的开源视频生成模型套件,共有 4 个模型,包括文生视频的 Wan2.1-T2V-1.3B 和 Wan2.1-T2V-14B,以及图生视频的 Wan2.1-I2V-14B在权威评测集 VBench 中,Wan2.1 以总分 86.22% 的成绩登上榜首位置,大幅领先了 Sora、Minimax、Luma、Gen3、Pika 等国内外视频生成模型具体来说,Wan2.1开源了文生视频和图生视频两种模型。 阅读详情
AI摘要

本文分析了Wan2.2中low_noise与high_noise模型的区别,指出二者在去噪调度策略上的不同:low侧重写实稳定,适合真人视频;high强调创意动态,适用于抽象或动作场景,模型大小相同但生成倾向各异。

第一次玩wan2.2的视频生成,在下载模型的时候,发型同一个模型有两种类型。查看名称唯一的差别就是low和hight。

他们的模型大小完全一样,这就让我很好奇,这两个模型的差别在哪里?

所以我专门查了一下这个问题:wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors 这个名字种的low noise 和high noise 有什么差别?

根据 Wan2.2 模型官方文档和社区实践经验,大致可以知道 “low_noise” 和 “high_noise” 的区别如下。

一、命名含义

在 Wan2.2 系列 中(尤其是 t2v / text-to-video 模型), low_noise 与 high_noise 指的是 去噪阶段的噪声调度策略(noise schedule), 也就是在扩散过程(diffusion denoising)中,初始噪声强度的不同配置。


二、区别与影响

对比项low_noisehigh_noise
初始噪声量较低较高
生成稳定性更稳定,细节保留好随机性强,创意/动态更大
画面清晰度更干净、锐利容易更模糊或更具艺术化噪点
风格倾向写实、稳定、逼真动感、梦幻、变化更大
适合场景人物、写实镜头、产品、广告动画、梦境、幻想、特效镜头

三、应用建议

  • 如果你追求干净写实、稳定的视觉输出(比如真人视频、人物特写), ➤ 用 low_noise。

  • 如果你追求创意变化或强动态感的镜头(比如梦境、抽象、动作场景), ➤ 用 high_noise。


四、技术细节(内部区别)

  • 这两个版本主要区别在于扩散 scheduler 的噪声调度曲线(noise schedule curve)。

  • low_noise 使用 偏平滑的线性调度(线性β);

  • high_noise 使用 高起点或指数型调度;

  • 对显存占用、推理速度几乎无差别,只是生成倾向不同。

五、应用实战

Wan2.2 14B 模型使用建议表

视频类型推荐模型版本输出风格特点英文 Prompt 建议
真人短片 / 写实镜头low_noise光线自然、肤色真实、画面稳定、细节清晰A cinematic shot of a young woman walking through a city street at sunset, soft lighting, realistic motion, shallow depth of field, professional film look.
人物特写 / 广告级画面low_noise面部清晰、皮肤质感好、稳定性强Close-up portrait of a woman turning her head slowly, golden hour light, 85mm lens, realistic facial expression, natural color grading.
时尚 / MV / 写真风格low_noise稳定但有美感,适合搭配柔光A stylish woman posing for a fashion video shoot, moving gracefully, cinematic lighting, smooth slow motion, Vogue style.
梦境 / 幻想 / 抽象艺术high_noise帧间变化大,画面有梦幻流动感A surreal dream scene where floating lights move around a sleeping girl, glowing atmosphere, ethereal light rays, artistic style.
科幻 / 未来城市 / 数字人high_noise更有动态粒子感、金属质感强A futuristic city at night with flying cars, glowing neon lights, cinematic motion, reflective surfaces, sci-fi aesthetic.
二次元 / 动画风 / 漫画风格high_noise色彩饱和、风格化强、动画质感An anime-style girl standing in the rain with umbrella, emotional expression, cinematic lighting, Studio Ghibli style animation.
自然风景 / 纪录片low_noise色彩真实、画面平稳A drone shot flying over mountains and lakes at sunrise, cinematic light, realistic nature textures, 4K ultra clarity.
动作场景 / 战斗 / 炫酷动态high_noise动感强烈、镜头更具张力A fast-paced action scene with a warrior jumping through explosions, dramatic lighting, dynamic camera movement, cinematic epic tone.
产品展示 / 商业广告low_noise光线均匀、细节锐利、专业质感A product rotating on a reflective surface, soft studio lighting, macro focus, premium advertisement style.
艺术短片 / 实验影像high_noise随机性强,效果多变Abstract motion of colors and light waves blending together, dreamlike transitions, artistic camera movement, experimental video art.

总结一下

  • 写实类作品(真人、广告、产品) → 用 low_noise 清晰、稳、自然

  • 创意类作品(科幻、二次元、梦境) → 用 high_noise变化更大、风格更“活”

Wan2.2 文本到视频(Text-to-Video)——ComfyUI 部署与使用 本文提供了在GPU服务器上部署ComfyUI并运行Wan2.2视频生成模型的完整教程。内容包括硬件要求(推荐NVIDIA H100/A100)、系统环境准备(Ubuntu 20.04/22.04)、驱动安装、Python虚拟环境配置、模型文件下载(需Hugging Face账号)以及ComfyUI的启动方法。教程详细说明了SSH远程访问、目录结构优化建议,并提供了常见问题排查指南。此外还包含性能优化技巧、安全注意事项及部署建议,适合想要搭建文本到视频生成系统的开发者参考。 阅读详情

相关推荐

AMD MI50 能跑 ComfyUI Wan2.2 文生视频吗?

本次失败大概率是因为内存的原因,因为 Wan2.2 高噪声和低噪声采样器运行后解码时都需要用到内存,此时内存占用都会大幅提升,本次卡在的界面就是在高噪声采样器生成后的解码阶段,内存无法满足,虽然也增加了虚拟内存,但似乎没有往虚拟内存里塞。等后续将物理内存增加到 64G 再尝试看看。

Ai.den 1723

Wan2.2 正式发布!下载 ComfyUI 工作流 – 生成电影级视频

Wan2.2 AI视频生成工具于2025年7月28日发布,包含TI2V-5B和I2V-14B两个版本,支持文本/图片生成720P高清视频。5B模型轻量高效,适合快速验证创意;14B模型则提供更高画质和动作精度。用户需使用ComfyUI nightly版本,通过官方模板或提供的工作流文件操作。系统要求Windows/NVIDIA显卡(8GB显存)或macOS M系列芯片,提供标准版和GGUF版(低显存适配)。模型文件需放置在ComfyUI指定目录,支持直接下载或从镜像站点获取。

分享开发心得 1万+

【ComfyUI】Wan 2.2 14B 文本转视频 电影级动态生成

本文介绍了一个基于Wan2.2 Text-to-Video模型的ComfyUI工作流,该流程通过双UNet模型(高噪/低噪)和LoRA适配器实现高效文本到视频生成。工作流包含模型加载、潜空间初始化、文本解析、采样生成和解码成像等模块,支持灵活选择模型版本和LoRA加速。CLIP文本编码器解析提示词,KSampler控制采样策略,VAE完成图像解码,最终输出动态视频。该方案在保证生成质量的同时,兼顾了计算效率,为视频生成提供了实用解决方案。(149字)

Mr数据杨 1511

Wan2.2-I2V-A14B-Moe模型:MoE架构重构视频生成,消费级显卡实现电影级效果

Wan2.2Moe加速模型是基于Wan2.2-I2V-A14B开发的高效图像转视频模型,通过优化推理步骤(仅需4步)和取消分类器引导显著提升生成速度。该模型采用分阶段训练策略,重点优化高噪声处理(2步),同时沿用Wan2.1的低噪声LoRA模块。模型体积28G,建议16G显存用户开启FP8量化运行。工作流整合了蒸馏大模型处理高噪声和传统I2V模型处理低噪声的方案,配合奖励模型可增强动态效果。官方示例展示了该模型在保持视频质量的同时大幅缩短生成时间的优势。

郭然的程序人生 1216

【ComfyUI】Wan 2.2 14B 图像转视频 精准动作保持

本文介绍了Wan2.2图生视频ComfyUI工作流,通过高低噪声扩散模型结合VAE编解码器和CLIP文本编码器,实现静态图像到动态视频的转换。工作流包含模型加载、图像上传、提示词设定、潜变量采样和视频合成等环节,支持正向/反向提示词控制画面内容,并引入LoRA提升生成效率。该方案在保证视频质量的同时,平衡了生成速度与动态表现,为图像到视频转换提供了标准化解决方案。(149字)

Mr数据杨 1907

【ComfyUI】Wan 2.2 14B 首尾帧转视频 平滑过渡

本文介绍了基于 Wan2.2 ComfyUI 的视频生成工作流,通过预训练模型、提示词与参考图像的结合,实现高质量视频合成。工作流采用高低噪声模型与 LoRA 模块优化风格与细节,确保画面过渡平滑稳定。核心流程包括模型加载、图像输入、提示词编码、潜空间采样、解码与视频合成,最终生成动态转场视频。节点设计涵盖 CLIPTextEncode、KSamplerAdvanced 等关键模块,协同完成从文本到视频的全链路生成。正向提示词作为核心驱动力,直接影响视频的动作、镜头与画面变化。

Mr数据杨 1701

ComfyUI Wan2.2首尾帧视频生成:小白也能搞定的丝滑变装攻略

本文分享了使用ComfyUI工作流实现Wan2.2首尾帧视频生成的方法。主要内容包括:硬件要求(推荐RTX 4090)、软件环境搭建、模型下载清单、工作流配置步骤、参数设置建议(分辨率576×864,帧数49-73帧)。实战演示了变装视频制作流程,并提供了性能优化技巧,如使用Lightx2v LoRA可将生成时间缩短至74秒。文章还总结了常见问题解决方案和应用场景,强调提示词要具体描述变化过程,建议优先保证帧数而非分辨率以获得更流畅的效果。

amor77qing的博客 3267

ComfyUI/Wan2.2 首尾帧平滑过渡视频生成

文件编号:c0071 ComfyUI使用教程、开发指导、资源下载: https://datayang.blog.csdn.net/article/details/145220524 AIGC工具平台Tauri+Django开源ComfyUI项目介绍和使用 https://datayang.blog.csdn.net/article/details/146316250 更多工具介绍 项目源码搭建介绍: 《我的AI工具箱Tauri+Django开源git项目介绍和使用》https://datayang.blog.csdn.net/article/details/146156817 图形桌面工具使用教程: 《我的AI工具箱Tauri+Django环境开发,支持局域网使用》https://datayang.blog.csdn.net/article/details/141897682

颠覆行业!Wan2.2横空出世:开源视频模型的里程碑突破,从技术解析到实战指南

大家好,我是专注于AI前沿技术的探索者。 感谢各位的持续关注与支持,我将不断为大家带来AI领域的深度解析与实用技巧。本文涉及的模型资源与操作流程,欢迎关注后私信"wan"获取详细指引。 随着ComfyUI官方正式宣布原生集成Wan2.2的首尾帧视频生成功能,这款由阿里云团队打造的新一代视频模型已然成为行业焦点。今天,我们就来全方位解读Wan2.2如何重新定义开源视频生成的技术边界。 ### 一、

gitblog_00668的博客 1219

ComfyUI/Wan2.2 去AI感洗图

文件编号:c0171 ComfyUI使用教程、开发指导、资源下载: https://datayang.blog.csdn.net/article/details/145220524 AIGC工具平台Tauri+Django开源ComfyUI项目介绍和使用 https://datayang.blog.csdn.net/article/details/146316250 更多工具介绍 项目源码搭建介绍: 《我的AI工具箱Tauri+Django开源git项目介绍和使用》https://datayang.blog.csdn.net/article/details/146156817 图形桌面工具使用教程: 《我的AI工具箱Tauri+Django环境开发,支持局域网使用》https://datayang.blog.csdn.net/article/details/141897692

倍福ADS通讯协议深度解析——从握手到数据包的完整旅程

本文以工程师视角,通过Wireshark抓包实战,深度解析了倍福ADS通讯协议的完整工作流程。从TCP三次握手建立连接,到拆解AMS/TCP信封、AMS Header地址与命令解析,再到ADS Data读写请求的载荷构成,完整呈现了一次数据通讯的“旅程”。文章重点剖析了协议包格式,并结合实际案例,提供了基于协议分析的故障排查思路,帮助开发者深入理解并精准调试工业自动化系统通讯。

weixin_29231725的博客 151

通义万相wan2.2视频模型的基础模型与安装应用详解

Wan2.2 是阿里 2025 年 7 月开源的电影级视频生成模型,采用 MoE 架构(双专家分工去噪),具电影级美学、复杂运动生成能力,5B 模型支持高效高清 TI2V。分 A14B 文生 / 图生视频、5B 混合版(支持图文生视频)。在 ComfyUI 中,官方版本需下载对应模型(含 VAE、文本编码器),14B 模型需高低噪声专家配合;另有 kijai 版(需专用插件)和 GGUF 版(需 GGUF 插件),工作流需加载对应模型节点

画青山的博客 8018

【技术解析】AlexNet——从ReLU到Dropout的深度学习关键突破

本文深入解析AlexNet在深度学习领域的关键突破,重点探讨了ReLU激活函数和Dropout技术的革命性应用。作为卷积神经网络的里程碑,AlexNet通过ReLU解决梯度消失问题,利用Dropout有效防止过拟合,为现代深度学习模型奠定了重要基础。这些创新技术至今仍在计算机视觉和自然语言处理等领域发挥重要作用。

weixin_33719619的博客 272

Wan-AI/Wan2.2-Animate-14B

本文介绍了Wan2.2-Animate-14B模型的下载安装及工作流配置过程。主要内容包括:通过ModelScope下载Wan2.2-Animate-14B主模型及相关组件(包括扩散模型、LoRA、文本编码器等);配置ComfyUI工作流目录结构;提供参考图像和视频示例;以及下载DWPose姿态估计模型的相关指令。文中还包含了各模型组件的HuggingFace下载链接和存储路径说明,为用户部署Wan2.2动画生成系统提供了完整的资源指引和技术路线。

mixboot 3737

SqlSugar避坑指南:C#操作MySQL时你可能会忽略的5个细节

本文分享了使用C#和SqlSugar框架操作MySQL数据库时的实战避坑指南。针对连接配置、实体映射、查询性能、事务处理等关键环节,深入剖析了5个容易被忽略但至关重要的细节,帮助开发者提升项目稳定性和执行效率,避免常见陷阱。

delta的博客 276

ANSYS 有限元分析 支架拓扑优化设计 分析过程及常见问题解决

1.确定分析类型,所用模块包括两种 static structural Topology Optimization。3.通过草图建立几何模型,建好的几何模型如图1所示。2.工程材料采用默认的Q235。

m0_68737530的博客 1965

ComfyUI 里的 Wan 2.2 图生视频工作流

这很可能是该 4steps LoRA 的推荐区间。说明这个模型在低 CFG 下已经足够听话,不需要像单图那样强推文本。如果你现在就准备上手,这么记就够了:这套工作流不是为了“极致画质”,而是为了用很低的采样成本,快速做出一段可看的图生视频。跑得快试错快有首帧锚定更稳适合角色短动作很适合做概念验证、短视频素材、IP角色动效预览首帧图是否清晰提示词是否简洁聚焦LoRA 权重是否合适seed 是否碰到好结果动作是否足够简单长度和分辨率是否在硬件承受范围内下面我直接给你一份。

u014177256的博客 436

猿创征文|Qt 文件和目录应用讲解【QCoreApplication】【QFile、QFileInfo】【QTemporaryDir和QTemporaryFile】【QDir】【QFileSyste】

Qt 文件和目录精准讲解【QCoreApplication】【QFile、QFileInfo】【QTemporaryDir和QTemporaryFile】【QDir】【QFileSyste】【QFileDialog】 第一章 QCoreApplication类 第一节 QCoreApplication常用函数方法 第二节 QCoreApplication举例 第二章 QFile类 第一节 静态函数方法 第二节 成员函数方法 第三章 QFileInfo类 第一节 常用函数方法 第四章 QDir类

Qt历险记,专注Qt技术,三年医疗设备研发经验,1年机器视觉研发经验,半年柔性传感研发经验。 941

视频生成效率之王:Wan2.2-I2V-A14B的SAFETENSORS格式加载速度测试

在当今AI视频生成领域,创作者和开发者面临着一个普遍的痛点:**模型加载速度过慢**。想象一下,当你需要快速将创意转化为视频内容时,却不得不等待数分钟甚至更长时间来加载庞大的模型文件,这不仅影响工作效率,还可能打断创作灵感。Wan2.2-I2V-A14B作为一款开源视频生成模型的重大升级,采用了SAFETENSORS格式来优化模型加载速度,为解决这一痛点带来了新的希望。 本文将深入探讨Wan2....

gitblog_00238的博客 2098

windows下宝塔安装教程

windows下宝塔安装教程 目录宝塔是什么?宝塔安装流程1.下载2.配置3.登录4.安装的环境套件小结 宝塔是什么? 宝塔是管理服务器的免费的软件,宝塔上面可以进行对你的服务器批量进行管理,对于运维人员来说还是必不可少的一个软件,值得使用。 宝塔安装流程 1.下载 链接: https://download.bt.cn/win/panel/BtSoft.zip 下载后安装买最好自定义目录,方便找 2.配置 下载完成后会出现这个页面,对着页面进行配置 点击默认密码复制进来,这里注意一点就是一定要查看

你在看屏幕的同时,屏幕也在注视着你 4421

56、CAN总线RC低通滤波器截止频率计算与实战

本文详细探讨了CAN总线RC低通滤波器的设计与应用。作者通过实际项目案例,分析了CAN总线噪声频谱特性,提出截止频率计算的"黄金法则",强调需考虑收发器输入阻抗的并联效应。文章给出RC参数选择的经验值(R=100Ω-1kΩ,C=10pF-100pF),并指出PCB布局的关键要点:RC应紧贴收发器引脚,电容接地端需直接连接地平面。最后建议结合示波器和眼图验证效果,并提醒RC滤波器只是抗干扰方案的一部分,良好的PCB布局设计才是根本。

2401_88858637的博客 70

16G显存+64G内存利用ComfyUI制作视频现状

如下图所示,内存和GPU显存都消耗差不多了。

LIHENHAO的专栏 231

AI 赋能 DBA:如何用 DeepSeek 等大模型简化数据库管理工作

数据库管理员(DBA)的工作涉及 SQL 优化、故障排查、性能监控等复杂任务。而 DeepSeek、ChatGPT 等大模型可以大幅减少重复劳动,提高 DBA 的工作效率。:某电商平台的订单查询 SQL 执行缓慢(平均 5s),DBA 需要优化。:DBA 需要监控 MySQL 的慢查询,但不想手动写脚本。:某金融系统频繁出现数据库死锁,DBA 需要快速定位原因。:大模型可分析 SQL 执行计划,推荐索引优化方案。:用日常语言查询数据库,无需写复杂 SQL。:一键生成监控、备份、数据迁移脚本。

专注于编程、AI、人工智能等多个领域内容研究和分析 564

【Wan2.2 视频生成 量化模型】迅雷分享一波模型,全速下载不用龟咯。

Wan2.2 发布了,赶紧一起来测试玩一下把~~~ 迅雷还是比较容易实现告诉下载的,我分享7天20次的下载。有需要再次通知我,更新分享链接。

qq_42944545的博客 3645

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

Wan2.2-T2V/I2V_14B,文生视频,图生视频,8-12G显存可用,支持50系

Wan2.2-T2V/I2V_14B,文生视频,图生视频,8-12G显存可用,支持50系

嘟嘟的博客 8673

深度学习工具包 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")

通义万相Wan2.2的High/Low Noise双分支到底怎么用?ComfyUI保姆级节点连接与参数衔接指南

本文介绍了如何在星图GPU平台上自动化部署ComfyUI镜像,并利用其节点工作流,高效应用通义万相Wan2.2双分支模型进行AI视频生成。通过精准配置高噪与低噪分支的节点衔接与参数,用户可轻松实现从文本描述到动态、连贯视频内容的创作。

weixin_42593549的博客 939

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

上一篇: Python关闭transformers和torch警告信息输出!
下一篇: Triton tcc.exe执行出错解决方案
Tony's Notes
博客等级 码龄4年 732粉丝 19原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值