Code Monkey home page Code Monkey logo

lxfater / inpaint-web Goto Github PK

View Code? Open in Web Editor NEW
4.8K 28.0 543.0 171.8 MB

A free and open-source inpainting & image-upscaling tool powered by webgpu and wasm on the browser。| 基于 Webgpu 技术和 wasm 技术的免费开源 inpainting & image-upscaling 工具, 纯浏览器端实现。

Home Page: https://inpaintweb.lxfater.com/

License: GNU General Public License v3.0

TypeScript 97.39% JavaScript 0.76% HTML 0.71% Shell 0.13% CSS 0.09% Dockerfile 0.93%
inpainting webgpu image-upscaling super-resolution

inpaint-web's Introduction

Inpaint-web

Inpaint-web

A free and open-source inpainting & image-upscaling tool powered by webgpu and wasm on the browser.

基于 Webgpu 技术和 wasm 技术的免费开源 inpainting & image-upscaling 工具, 纯浏览器端实现。

Inpaint(图片修复)

github.mp4

Super-Resolution(图片高清化)

git.mp4

Demo link

Demo link:https://inpaintweb.lxfater.com/

Project Roadmap

en

  • Image Modification History
  • Optimize Model
  • Integrate Post-Processing into the Model
  • Image-upscaling
  • Integrate Segment Anything for Quick Selection and Removal in Images
  • Integrate Stable Diffusion for Image Replacement
  • Better UI

cn

  • 图像修改历史
  • 优化模型
  • 后处理集成于模型中
  • 超分辨率
  • 接入 Segment Anything,实现快速选择和去除图像
  • 接入 stable diffusion,实现图像替换
  • 更好的界面

Setup

npm install

Development

npm run start

Contributors

Translations via fink editor

inlang status badge

About me

Wechat

联系我之前说明来意,我创业了,时间很宝贵。

English Content

For updates and discussions in English, follow me on Twitter: Twitter Follow

中文内容

获取中文更新和讨论,请关注我的 Twitter: Twitter Follow

Acknowledgements

Frontend code are modified from cleanup.pictures, You can experience their great online services here.

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

Star History

Star History Chart

inpaint-web's People

Contributors

andraniksargsyan avatar cmingxu avatar cyrildiagne avatar dummyekko avatar joryjoestar avatar libmw avatar linexjlin avatar lxfater avatar mingxta avatar nilsjacobsen avatar v-sjs avatar vlin avatar wangrongding avatar y122972 avatar yangchuansheng avatar yeuoly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

inpaint-web's Issues

import * as m from './paraglide/messages' 问题

请问此处是否是依赖引入,还是文件引入(代码项目中却没有对应文件夹)

// App.tsx
import * as m from './paraglide/messages'
import {
  languageTag,
  onSetLanguageTag,
  setLanguageTag,
} from './paraglide/runtime'

ort.InferenceSession.create 失败,求助!

chrome 浏览器

mac inter芯片

在文件 superResolution.ts 中 264行

    model = await ort.InferenceSession.create(modelBuffer, {
      executionProviders: [capabilities.webgpu ? 'webgpu' : 'wasm'],
    })

Error: Can't create a session. ERROR_CODE: 7, ERROR_MESSAGE: Failed to load model because protobuf parsing failed.

创建会话失败,onnx模型文件是正常的

windows 11 下 npm install报错

file:///B:/AI/inpaint-web/node_modules/.store/@Inlang[email protected]/node_modules/@inlang/sdk/dist/loadProject.js:8
import { ProjectSettings, Message } from "./versionedInterfaces.js";
^^^^^^^
SyntaxError: The requested module './versionedInterfaces.js' contains conflicting star exports for name 'Message'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:171:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:254:5)
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:485:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:109:5)

黑屏

上传图片后点击4倍高清黑屏了,效果如图
image

Some problems when viewing from China.

Hi, I found a few problems when viewing this app from China.

  1. models download from huggingface is always failed, I tried to change the host of the download links of models to hf-mirror.com, but is still have some CORS problems. Maybe need to fallback to use the self-hosted models which could download using huggingface-cli.
  2. the onnxruntime-web libs from jsdelivr could not download sometimes, I also tried unpkg, both of them are not stable. Maybe use self-hosted instead of CDN.

And I tried to run the app from github codespace, and I found some problems when running npm run start, the typescript version conflicts, some type errors related to ora (onnxruntime-web) and so on ...

dockerfile问题,

您这个是否支持docker离线部署,docker build .有些问题,启动后产生了三个镜像,不支持离线,我看到模型有下载的

图片无法处理

CleanShot 2023-12-25 at 13 11 24@2x
无论是本地端还是网页端,在执行和 demo 相同操作时,均无法实现 demo 的效果,返回的图都是纯黑色

Editing another region modifies previously inpainted area

When inpainting some region, then trying to edit another region, the region which was previously inpainted also gets modified. This behavior is likely undesirable in most cases and can be considered a bug. In other words, with every edit, mask should be composed from scratch and the image should be the latest edit, while the current approach seems to unite the currently created mask with all previous masks before passing it to the model.

chrome可用,safari报错

能否解决下这个问题,顺便兼容下手机浏览器?

请问是用的什么模型?是用onnx构建的嘛?我想自己试着调试下看能不能解决

链接坏了

在README文件里, Frontend code are modified from cleanup.pictures cleanup.picures的开源库没了

关于4x-upscaling生成速度的问题

部署完成后,发现4x-upscaling生成速度很慢,与demo演示站差距大

请问demo演示站服务器配置情况?

建议什么配置的服务器部署?

图片无法处理

CPU:AMD5500
显卡:AMD6650XT
系统:Win11
浏览器:Chrome
下载了30MB+70MB两个文件,然后上传了本地的“pic.jpg”,进度从0走到100%以后,没有进行处理,跟demo表现不一致。demo会在屏幕上方有一个timeline,方便回滚处理,但是,我这边网页上timeline是空的,屏幕上的图片看起来也没有任何处理

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.