Code Monkey home page Code Monkey logo

byicon / inpaint_wechat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shifu-group/inpaint_wechat

0.0 0.0 0.0 5.17 MB

《照片修复小小助手》是一款基于微信AI能力的微信小程序,实现了图片选定区域的消除修复功能,纯客户端实现,无服务端。Inpaint_wechat is a WeChat mini-program based on the WeChat AI capabilities, implementing the functionality of inpainting and repairing selected areas in images, which is purely implemented by the client and has no server.

License: GNU General Public License v3.0

JavaScript 100.00%

inpaint_wechat's Introduction

照片修复小小助手 (Inpaint_wechat)

照片修复小小助手是一款快速P图微信小程序,用来消除图片中指定的人和物,基于微信AI能力,纯客户端实现,无服务端。

本程序借鉴了 MI-GAN 原项目和 inpaint_web 网页实现项目的逻辑以及部分代码,代码开源。

鉴于微信小程序仅支持有限的算子,为了弥补这一限制,本程序采用了 WebAssembly (wasm) 技术,并结合适配微信的 OpenCV 技术,以实现对模型的预处理和后处理。

Inpaint_wechat is a WeChat mini-program based on the WeChat AI capabilities, implementing the functionality of inpainting and repairing selected areas in images, which is purely implemented by the client and has no server.

The program draws inspiration from the logic and some code of the original MI-GAN project and inpaint_web project.

Given the limited support for operators in WeChat mini-programs, to address this constraint, the program utilizes WebAssembly (wasm) technology. Additionally, it integrates with WeChat-adapted OpenCV techniques to achieve model preprocessing and post-processing.

特点:

  • 手机操作,快速去除图片中的杂物,是发朋友圈图片和其他类似需求的好帮手。
  • 去水印,去字幕,去掉闲杂人物。。。 多尝试几次,总会有惊喜等着你。
  • 图片数据不上传,100% 确保隐私。

注释:小程序首次执行时,会自动下载约30M AI模型到本机。

Demo(1.选择图片 2.涂抹遮罩 3.消除)

照片修复小助手 照片修复小助手 照片修复小助手 照片修复小助手 照片修复小助手

Video Demo(视频演示)

inpaint-wechat_480.mp4

QR Code for the Wechat App (扫描微信小程序二维码打开小程序)

照片修复小助手

Operation Tips (操作建议)

  1. Multiple inpainting operations can be performed on the target area until satisfactory results are achieved.

可以对目标区域进行连续的多次消除操作,直到对结果满意为止。

  1. If you are not satisfied with the current result, you can use "undo" to cancel the operation and then reselect the area. Please note that this operation is irreversible.

如果对当前结果不满意,可以用“回退”来取消操作,再重新选择区域。注意此操作不可逆。

Product Roadmap (版本演进)

  • Execution speed optimization.

    优化执行速度,执行时间缩短2秒以上。

  • Manually adjust the mask to zoom in or out.

    遮罩手动扩大和缩小。

  • New UI.

    新的界面。

  • Manual download AI model

    手动下载AI模型。

  • Enlarge the image and apply a mask to a specific portion of the area.

    放大图像并在指定区域涂抹遮罩, 工作进行中。。。

  • Workflow UI.

    工作流式界面,现有的界面可以看作工作室模式,计划两者共存。

  • Segment anything

    调用AI模型实现目标自动识别。 已完成技术调研,由于微信算子的限制,需要接入后端。暂无开发计划。

Contact

Twitter Follow

📺 bilibili

Reference

  • The MI-GAN model

https://github.com/Picsart-AI-Research/MI-GAN

  • The inpaint-web repository

https://github.com/lxfater/inpaint-web

  • Adapted opencv for WeChat

https://github.com/sanyuered/WeChat-MiniProgram-AR-WASM

  • Image Cropper

https://github.com/1977474741/image-cropper

inpaint_wechat's People

Contributors

wangqmshf avatar davidshen111 avatar

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.