睡到吃午饭,下午三点骑车出去转悠。路过海淀公园,进去走走,发现有音乐街的活动。于是在里面转了转,等四点半活动开始。mc金艺的嘻哈听了还不错,叫什么“京范儿嘻哈”,就是嘻哈+北京文化吧。 唱了三首,然后是嗜血乐队的表演,我对重金属音乐不是很感兴趣,于是去中关村图书大厦转了转,买了两本休闲的书,《中国绘画》和《王维孟浩然诗选评》。
相关推荐
8邻域和16邻域链码的matlab实现
一、链码概念 如上图所示,黑色点为像素,绿色区域为像素的8方向邻域,黄色区域为像素的16方向邻域,蓝色为像素的2
量化W8A8和W8A16是什么?
本文介绍量化的w8a8、w8a16的详细内容。
FoundationPose复现及Realsense应用
FoundationPose是一个统一的基础模型,用于6D对象姿态估计和跟踪,支持基于模型和无模型的设置。在测试时可以立即应用于未见过的新对象,无需微调,只要给出其CAD模型,或者捕获少量RGBD参考图像。得益于统一框架,下游姿态估计模块在两种3D模型设置中都是相同的,当没有CAD模型时,使用神经隐式表示进行高效的新视角合成。通过大规模合成训练,辅以大型语言模型(LLM)、一种基于transformer的新架构和对比学习公式,实现了强大的泛化能力。
在Proteus中用8×8来实现16×16点阵屏
在Proteus中用8×8点阵屏来实现16×16点阵屏 百度网盘链接 资源免费 proteus仿真 代码编写
为什么大语言模型推理要分成 Prefill 和 Decode?深入理解这两个阶段的真正意义
Prefill 阶段是语言模型推理中的第一个步骤,它负责处理你输入的所有上下文内容(prompt),为后续生成打下基础。“请解释一下 Transformer 的原理。这句话会被 tokenizer 编码为一串 token,比如["请", "解释", "一下", "Trans", "##former", "的", "原理", "。"]。然后这些 token 会进入 Transformer 模型进行前向传播。重点来了 👇。
L298N电机驱动模块的接线使用与代码实现
#include "iostm8s208mb.h" #define u8 uint8_t #define u16 uint16_t #define u32 uint32_t typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned long uint32_t; // 关于LED灯的宏定义 #define LED2 PI_ODR_ODR2 //输出量 #define LE
fp8、fp16和bp16的区别
本文介绍fp8、fp16以及bp16的区别。
从零搭建风电场:手把手教你用WAsP+WindPRO完成风资源评估全流程
本文详细介绍了从零开始搭建风电场的全流程,重点讲解如何使用WAsP和WindPRO进行风资源评估和风场布局优化。内容包括软件配置、数据采集规范、风图谱建模实战、机组选型策略以及常见问题解决方案,帮助工程师掌握风电开发的核心技术,提升项目成功率。
Mux8Way16
// This file is part of www.nand2tetris.org // and the book “The Elements of Computing Systems” // by Nisan and Schocken, MIT Press. // File name: projects/01/Mux8Way16.hdl /** 8-way 16-bit multiplex...
树莓派4B安装 ubuntu20.04 & VNC远程桌面 & 安装ROS noetic
树莓派4B安装ubuntu20.04 & VNC远程桌面1、安装ubuntu方式1:下载Imager文件。方式2:下载镜像文件。2、查询树莓派 IP 地址3、使用ssh远程登录树莓派4、更新源地址5、更新6、安装桌面环境7、允许root登陆8、登陆远程桌面9、设置中文 1、安装ubuntu 方式1:下载Imager文件。...
结构函数分析与 JESD51-14 标准详解
结构函数(Structure Function)是将器件瞬态热响应曲线(冷却曲线)通过数学变换,转换为热阻(Rth)与热容(Cth)沿热流路径一维分布的图形化分析方法。它能“看到”热量从结(Junction)到壳(Case)或环境的过程中,经过每一层结构时的热学特性。
用GDAL将16位Tiff图像转为8位
关键代码:主要流程是先将16位的像素指针强制转成uint16_t*,方便进行指针运算,因为原始的指针是char*。 注意:指针移动的字节长度等与指针所指类型的字节长度(原来指针类型强制转换这么有用) 然后通过uint16_t获取16位像素的值,再赋值给8位像素值。 通过指针运算进行取值,不同类型的指针移动长度不一样,同时取值时根据指针类型进行取值。 if (eDT ==GDT_UInt16...
点云统计滤波 (python详细过程版)【2025最新版】
统计滤波python详细过程版,博客长期更新,本文最近更新时间为:2025年1月12日。
16位数与8位数的转换
情况一、一个16位数unit拆分成2个8位数high、low: high = (unit >> 8) & 0xff; //高8位 low = unit & 0xff; //低8位 情况二、2个8位数high和low合成一个16位数据unit: unit= (uint16_t) (high << 8) | low; //uint16_t是无符号16位...
万字长文介绍ARINC 653,以及在综合模块化航空电子设备(IMA)中的作用
ARINC 653 在综合模块化航空电子设备(IMA)的发展进程中扮演着极为关键的角色。从行业应用的实际情况来看,空客 A380 和波音 787 等先进飞机的航电系统套件充分体现了行业对 IMA 的高度重视和积极投入。在 IMA 架构下,核心软件具备强大的能力,能够支持多个航空电子应用程序的同时运行。这些应用程序可以并行开发,并高效地部署在同一个计算平台上,极大地提高了开发效率和系统集成度。ARINC 653 的出现为航空电子行业创造了一个充满活力和竞争力的商业环境。
IDEA的使用指南
IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.
图像16位与8位之间的转换
图像16位与8位之间的转换在处理一些图像到时候,总是会遇到一些数据的转换 在处理一些图像到时候,总是会遇到一些数据的转换 1.Mat dstImage(1024, 1024, CV_64FC1); 2.imageConvert.convertTo(imageConvert, CV_64FC1, 1 / 255.0); 3.imageConvert.convertTo(imageConvert, CV_8UC1, 1); 4.equalizeHist(imageConvert, dstImage); 5.ds
RU DOS版、EFI版32bit/64bit BIOS常用工具
DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。
51单片机教程:51单片机驱动四个8*8点阵,拼凑16*16点阵显示标准汉字。
看此篇博文之前建议先看博主的上一篇博文: 51单片机教程:8*8 点阵显示字符、数字、简单汉字 教你如何用4个8乘8点阵拼成一个16乘16点阵 一、点阵原理 市面上有很多种类的点阵,但是最常用的还是这种88点阵 内部结构如下图 可以发现点阵就是由led构成,并且有一排是阳极,另一排是阴极,有一排是控制行,另一排是控制列。 打开proteus搜索MATRIX,看到各种型号的点阵,选择88即可 任意选择一个颜色的点阵,我们发现引脚没有做任何标记,默认上排:阴极、控制列;下排:阳极、控制行 什么意思呢,也
霍尼韦尔SoftMaster使用说明
霍尼韦尔SoftMaster使用说明
深度学习工具包 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');```[](https://bitdeli.com/free "Bitdeli Badge")
FP16与INT8
AI计算中的两种数据格式 FP16和INT8同为端侧AI计算深度学习模型中的常用数据格式,在不同的AI应用中具有独特优势 什么是FP16呢? 在计算机语言中,FP32表示单精度浮点数,相应的FP16就是半精度浮点数。与FP32相比,FP16的访存消耗仅为1/2,也因此FP16是更适合在移动终端侧进行AI计算的数据格式。 相比INT8,FP16浮点计算在终端侧的体验优势非常明显,尤其在需要更高精度图像处理的场景,能够实现更高精度的“抠图”。如今,AI拍照、AI视频等已经成为人们记录生活的智慧助手,高精度带来
FP32、FP16和INT8
FP32(Full Precise Float 32,单精度)占用4个字节,共32位,其中1位为符号位,8为指数位,23为尾数位。 FP16(float,半精度)占用2个字节,共16位,其中1位为符号位,5位指数位,十位有效数字位。与FP32相比,FP16的访存消耗仅为1/2,也因此FP16是更适合在移动终端侧进行AI计算的数据格式。 INT8,八位整型占用1个字节,INT8是一种定点计算方式,代表整数运算,一般是由浮点运算量化而来。在二进制中一个“0”或者“1”为一bit,INT8则意味着用8bit来表
opencv 将16位图像数据转为8位、8转16
函数 Mat(int rows, int cols, int type, void* data, size_t step=AUTO_STEP);
在量化中,bf16、fp16、fp32、int8的含义
精度格式位数动态范围精度优点缺点用途fp3232大高高精度,广泛支持内存和计算开销大训练和推理fp1616中中减少内存占用,加速训练和推理精度较低,可能溢出或下溢混合精度训练,推理加速bf1616大中低动态范围大,适合训练精度较低深度学习训练(如TPU)int88小低显著减少内存占用,加速推理精度损失较大边缘设备推理int44很小极低极低内存占用精度损失非常大超低功耗设备。
CRC8 CRC16
--------H------------#ifndef _CRC_16_#define _CRC_16_#ifdef __cplusplusextern "C"{#endif typedef unsigned char U8; typedef unsigned short U16; typedef int I32; U16 crc16...
8位、16位、32位单片机(MCU)
1、 8位、16位、32位的位是什么? 指CPU处理的数据的宽度,参与运算的寄存器的数据长度。2、 51和ARM 32位 在51单片机里面,R0和R2都是8位的,所以51的CPU一次只能处理8位数据。 在ARM里面,R0和R2是32位的,所以ARM的CPU一次能处理32位数据。3、进一步解释 单片机在进行计算的时候统统是2进制数的运算。所...
16位深度图像转8位灰度
img=imread('output.png') img1=im2uint8(img) imwrite(img1,'result.jpg') 或者python from PIL import Image import numpy as np import math img=Image.fromarray(np.uint8(img_array/float(math.pow(2,16)-1)*255...
java16进制转换为8进制
Java进制转换,蓝桥杯
YOLOv8 FP16与BF16精度对比实测结果
深入对比YOLOv8在FP16与BF16两种半精度格式下的推理表现,涵盖显存占用、计算效率和检测精度差异。结合硬件支持情况,解析各自适用场景,为实际部署提供决策依据。
1万+



被折叠的 条评论
为什么被折叠?



