当前位置:网站首页>Bisenetv2 face segmentation ncnn reasoning
Bisenetv2 face segmentation ncnn reasoning
2022-07-19 03:13:00 【HySmiley】
1、onnx turn ncnn
onnx2ncnn.exe BiSeNetV2_sim.onnx BSNs.param NSNs.bin2、ncnn Reasoning
#include<iostream>
#include<opencv2/opencv.hpp>
#include<net.h>
#include <stdio.h>
int main()
{
cv::Mat img = cv::imread("../asserts/4.png");
cv::cvtColor(img,img,cv::COLOR_BGR2RGB);
ncnn::Net net;
// Load parameters before loading models
net.load_param("../asserts/BSNs.param");
net.load_model("../asserts/BSNs.bin");
ncnn::Mat input = ncnn::Mat::from_pixels_resize(img.data, ncnn::Mat::PIXEL_RGB, img.cols,img.rows,512,512);
const float mean_vals[3] = { 0.485f * 255.f, 0.456f * 255.f, 0.406f * 255.f };//123,117,104
const float norm_vals[3] = { 1 / 0.229f / 255.f, 1 / 0.224f / 255.f, 1 / 0.225f / 255.f };//0.017,0.017,0.017
input.substract_mean_normalize(mean_vals, norm_vals);
//std::cout << "data_shape:" << data.d << "," << data.c << "," <&l边栏推荐
- Automatic assembly & set injection
- Multi table query - case exercise
- 内置键盘连续444
- 3. Asynctool framework principle source code analysis
- [MCU simulation] (XV) instruction system bit operation instructions - bit operation instructions, bit conditional transfer instructions
- Polynomial interpolation fitting (II)
- 【单片机仿真】(一)Proteus8.9 安装教程
- 【单片机仿真】(二)keil 安装教程
- JDBC连接Mysql数据库
- While loop
猜你喜欢
4. Some thoughts on asynctool framework
![深入理解机器学习——类别不平衡学习(Imbalanced Learning):样本采样技术-[人工采样技术之SMOTE采样法及Borderline-SMOTE采样法]](/img/9f/a0d03b23e66849f12150f9a72f36c5.png)
深入理解机器学习——类别不平衡学习(Imbalanced Learning):样本采样技术-[人工采样技术之SMOTE采样法及Borderline-SMOTE采样法]

ncnn param文件及bin模型可视化解析

ResNet学习笔记

无线用的鉴权代码

Bisenetv1 face segmentation
![In depth understanding of machine learning - unbalanced learning: sample sampling technology - [smote sampling method and borderline smote sampling method of manual sampling technology]](/img/9f/a0d03b23e66849f12150f9a72f36c5.png)
In depth understanding of machine learning - unbalanced learning: sample sampling technology - [smote sampling method and borderline smote sampling method of manual sampling technology]

Authentication code for wireless

BiSeNetV1 面部分割

Pytorch best practices and code templates
随机推荐
多项式插值拟合(一)
Fiddler grabbing
MySQL storage engine details
【单片机仿真】(十七)控制转移类指令 — 调用及返回指令
我最高产的EasyPyPI又双叒叕更新了!v1.4.0发布
多项式插值拟合(二)
mysql复制表
通过Dao投票STI的销毁,SeekTiger真正做到由社区驱动
[MCU simulation] (II) keil installation tutorial
【PHP】tp6多表连接查询
Polynomial interpolation fitting (III)
多项式插值拟合(三)
04_服务注册Eureka
关于XML文件(六)-与JSON的区别
05_服务调用Ribbon
Tools and methods - Excel plug-in xltools
【单片机仿真】(八)指令系统 — 数据传送指令
数据源对象管理(第三方对象资源) & 加载properties文件
【单片机仿真】(十二)指令系统逻辑运算指令 — 逻辑异或指令XRL、累加器清0和取反指令
重写equals为什么要重写hashcode