MCPcopy Index your code
hub / github.com/lxfater/inpaint-web

github.com/lxfater/inpaint-web @main sqlite

repository ↗ · DeepWiki ↗
77 symbols 154 edges 22 files 0 documented · 0%
README

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(图片修复)

https://github.com/lxfater/inpaint-web/assets/22794120/bcad4812-02ae-48bb-9e84-94dfeb7234f5

Super-Resolution(图片高清化)

https://github.com/lxfater/inpaint-web/assets/22794120/3a8d894f-9749-4685-b947-8b5f15c9cf38

Demo link

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

Project Roadmap

en

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

cn

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

Setup

npm install

Development

npm run start

Contributors

Translations via fink editor

inlang status badge

About me

Wechat

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

<img src="https://tinyeraserblog.lxfater.com/G7yayw4aMAgN_Zs.jpeg" style="width: 200px; display: inline-block;">

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

Other Projects by the Author (作者的其他项目)

中文

查看我的其他项目:

  • Demoget:免费的自动放大,鼠标轨迹优化的录屏软件。
  • tinyeraser:免费,批量,快速,一键换背景。

English

Check out my other projects:

  • Demoget: Free screen recording software with auto-zoom and mouse trajectory optimization.
  • tinyeraser: Free, batch, fast, one-click background replacement.

Extension points exported contracts — how you extend this code

EditorProps (Interface)
(no doc)
src/Editor.tsx
ResizeImageFileResult (Interface)
(no doc)
src/utils.ts
ModalProps (Interface)
(no doc)
src/components/Modal.tsx
Line (Interface)
(no doc)
src/Editor.tsx
ButtonProps (Interface)
(no doc)
src/components/Button.tsx
LinkProps (Interface)
(no doc)
src/components/Link.tsx
ProgressProps (Interface)
(no doc)
src/components/Progress.tsx

Core symbols most depended-on inside this repo

getModel
called by 4
src/adapters/cache.ts
modelExists
called by 3
src/adapters/cache.ts
getCapabilities
called by 3
src/adapters/util.ts
drawLines
called by 2
src/Editor.tsx
loadImage
called by 2
src/utils.ts
startWithDemoImage
called by 2
src/App.tsx
onFileSelected
called by 2
src/components/FileSelect.tsx
readEntriesPromise
called by 2
src/components/FileSelect.tsx

Shape

Function 70
Interface 7

Languages

TypeScript100%

Modules by API surface

src/Editor.tsx17 symbols
src/adapters/inpainting.ts10 symbols
src/adapters/util.ts8 symbols
src/adapters/superResolution.ts8 symbols
src/utils.ts7 symbols
src/components/FileSelect.tsx7 symbols
src/adapters/cache.ts7 symbols
src/components/Progress.tsx2 symbols
src/components/Modal.tsx2 symbols
src/components/Link.tsx2 symbols
src/components/Button.tsx2 symbols
src/App.tsx2 symbols

Dependencies from manifests, versioned

@heroicons/react1.0.4 · 1×
@inlang/paraglide-js1.0.0-prerelease.19 · 1×
@inlang/paraglide-js-adapter-vite1.0.2 · 1×
@testing-library/react12.1.2 · 1×
@testing-library/user-event13.5.0 · 1×
@types/jest27.0.2 · 1×
@types/node18.0.0 · 1×
@types/react17.0.30 · 1×
@types/react-dom17.0.9 · 1×
@typescript-eslint/eslint-plugin5.1.0 · 1×
@vitejs/plugin-react-swc3.5.0 · 1×

For agents

$ claude mcp add inpaint-web \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact