Git Product home page Git Product logo

autormbg's Introduction

autoRMBG

基于SpringBoot3.2.2 + jdk17 + Thymeleaf + WebClient + briaai/RMBG-1.4 实现的基于AI的自动抠图服务

系列教程

启动方式

技术栈

自动抠图服务,目前主要依赖两套技术栈,分别是基于python的AI模型执行过程与基于Java的WEB应用

JAVA后端技术栈: JDK17 + Maven + SpringBoot3.2.2

基础组件:

技术 说明 官网
Spring & SpringMVC & WebFlux Java全栈应用程序框架和WEB容器实现 https://spring.io/
SpringBoot Spring应用集成开发框架 https://spring.io/projects/spring-boot
https 证书 https://letsencrypt.org/
lombok Java语言增强库 https://projectlombok.org
guava google开源的java工具集 https://github.com/google/guava
thymeleaf html5模板引擎 https://www.thymeleaf.org
jackson json/xml处理 https://www.jackson.com
bootstrap-fileinput 图片上传控件 https://github.com/kartik-v/bootstrap-fileinput
base-plugin 文件处理 https://github.com/liuyueyi/quick-media

Python技术栈: python3.11 + torch + fastapi

基础组件:

技术 说明 官网
torch 深度学习框架 PyTorch
Pillow 图像操作 pillow · PyPI
NumPy 科学计算基础包 NumPy -
huggingface_hub huggingface模型包管理工具 Hugging Face – The AI community building the future.
fastAPI web框架 FastAPI

环境依赖

  • python3.11
  • jdk17
  • maven3.6+

环境配置

  1. brain提供的自动抠图AI初始化

rmbg-ai服务安装

  1. jdk相关环境初始化
  • 安装jdk,maven
  • idea 加载项目,编译

启动服务

首先进入 rmbg-ai 启动服务

# mac/linux 环境
rmbg-ai/venv/bin/python rmbg-ai/main.py

# win 环境
.\rmbg-ai\venv\Scripts\python.exe .\rmbg-ai\main.py

ai启动

接着启动SpringBoot应用

Spring应用启动

浏览器打开: http://localhost:8080/

实际体验效果如下:

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.