Giter Club home page Giter Club logo

lxfater / inpaint-web Goto Github PK

View Code? Open in Web Editor NEW
4.4K 4.4K 478.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%
image-upscaling inpainting super-resolution webgpu

inpaint-web's Introduction

Anurag's github stats
  • 👋 Hello, I am the Hammer Man. I have a general understanding of cryptography, machine learning, compiler theory, and computer graphics.
  • 👀 I am currently very interested in GPU programming, browser-side model optimization, and deployment.
  • 🌱 I am currently engaged in front-end plugin development work.
  • 💞️ Welcome to submit any PRs to my error-filled projects.
  • 📫 You can contact me through X, or follow me on GitHub to get the latest updates on my work.
  • 🌑 I code at midnight, please do not disturb me during this time.

  • 👋 你好,我是铁锤人。不学无术,了解点密码学,机器学习,编译原理和图形学
  • 👀 我目前对GPU编程,浏览器端模型优化和部署十分感兴趣
  • 🌱 我现在从事前端插件开发工作
  • 💞️ 欢迎给我错误百出的项目提任何PR
  • 📫 你可以通过X联系我,或者GitHub关注我,获得我的最新的进展
  • 🌑 我会在半夜时候编程,这个时候请别打扰我

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

inpaint-web's Issues

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 ...

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.

图片无法处理

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

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模型文件是正常的

黑屏

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

图片无法处理

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

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

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

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

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

链接坏了

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

chrome可用,safari报错

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

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

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.