lxfater / inpaint-web

A free and open-source inpainting & image-upscaling tool powered by webgpu and wasm on the browser。| 基于 Webgpu 技术和 wasm 技术的免费开源 inpainting & image-upscaling 工具, 纯浏览器端实现。
https://inpaintweb.lxfater.com/
GNU General Public License v3.0
4.7k stars 523 forks source link

图片无法处理 #45

Open yangxunj opened 6 months ago

yangxunj commented 6 months ago

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

lxfater commented 6 months ago

刷新一下试试,你可以截图

qiguaideaaaa commented 4 months ago

好像是因为在图片过大的情况下(大约16,00万像素左右),超分辨率完成后在渲染过程中数组的长度炸了,我看控制台报了如下错误:

superResolution RangeError: Invalid array length
    at Array.push (<anonymous>)
    at ZS (index-wKMmwxyL.js:76:37509)
    at pS (index-wKMmwxyL.js:76:38142)
    at async index-wKMmwxyL.js:76:46849