Giter Club home page Giter Club logo

lightwinde / paddlesegsharp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raoyutian/paddlesegsharp

0.0 0.0 0.0 108.43 MB

本项目是一个基于百度飞桨PaddleSeg项目的人像分割模块而开发的.NET的工具类库。PaddleSeg是基于飞桨PaddlePaddle的端到端图像分割套件,内置45+模型算法及140+预训练模型,支持配置化驱动和API调用开发方式,打通数据标注、模型开发、训练、压缩、部署的全流程,提供语义分割、交互式分割、Matting、全景分割四大分割能力,助力算法在医疗、工业、遥感、娱乐等场景落地应用

License: Apache License 2.0

C# 100.00%

paddlesegsharp's Introduction

简体中文 | 更新记录

如果对你有用或者喜欢,那就给颗星赞,点个赞。谢谢!

介绍


本项目是一个基于百度飞桨PaddleSeg项目的人像分割模块而开发的.NET的工具类库。

本项目中PaddleSeg.dll文件是基于开源项目最新发布版本PaddleSeg 2.7PaddleSeg的版本修改而成的C++动态库,基于opencv的x64编译而成的。

PaddleSeg是基于飞桨PaddlePaddle的端到端图像分割套件,内置45+模型算法及140+预训练模型,支持配置化驱动和API调用开发方式,打通数据标注、模型开发、训练、压缩、部署的全流程,提供语义分割、交互式分割、Matting、全景分割四大分割能力,助力算法在医疗、工业、遥感、娱乐等场景落地应用。

本项目只能在X64的CPU上编译和使用,只能在avx指令集上的CPU上使用。

本项目支持飞桨人像抠图的所有模型。PP-MattingV2-512、PP-Matting-512、PP-Matting-1024、PP-HumanMatting、MODNet-MobileNetV2。 默认使用MODNet-MobileNetV2模型。

输入图片说明

效果如下:

原图 输入图片说明 分离前后背景图 输入图片说明 替换蓝色背景结果 输入图片说明

本项目目前支持以下.NET框架:

net35;net40;net45;net451;net452;net46;net461;net462;net47;net471;net472;net48;net481;
netstandard2.0;netcoreapp3.1;
net5.0;net6.0;net7.0;

本项目提供了两个SDK,一个是C++版本,一个是.net版本,.net版本是桥接C++的封装,核心还是C++代码。

源码编译


本项目编译使用opencv4.1.1版本,如需使用其他版本,请自行更换opencv版本编译。

1.文件夹结构

PaddleSegSharp               //该文件夹包含.NET对PaddleSeg封装类库项目
Demo                //该文件夹包含PaddleSeg示例Demo文件夹
|--CSharp        //.NET调用示例项目

.NET版编译

.NET版编译

使用与部署


1. 在.NET中使用PaddleSegSharp

在.NET中使用PaddleSegSharp

模型


技术交流方式


QQ技术交流群:818391797。

微信公众号:明月心技术学堂。

许可证书


本项目的发布受Apache 2.0 license许可认证。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.