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

ort.InferenceSession.create 失败,求助! #64

Open litaohckj opened 2 months ago

litaohckj commented 2 months ago

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

litaohckj commented 2 months ago

@lxfater 求助一下

litaohckj commented 2 months ago

我已经定位到了。不用啦