爱意满满的作品展示区。
messagebus

AI 在浏览器内一键去除图片背景

  •  1
     
  •   messagebus · Jun 15, 2024 · 3033 views
    This topic created in 872 days ago, the information mentioned may be changed or developed.

    这周学习使用 transformers.js 在浏览器跑 AI 模型。

    通过 transformers.js 和 WebGPU 在浏览器成功运行一键去图片背景的 AI 模型。

    试了一下 M1 PRO 处理一张 4K 图,需要 500ms 左右, 如果不使用 WebGPU 得 16s 。

    大伙试试,速度咋样?

    Background Remover

    https://html.zone/background-remover/

    5 replies  •  2024-11-19 09:31:14 +08:00
    IH0kIG5E67ZY43M5
    IH0kIG5E67ZY43M5
    Jun 15, 2024❤️1
    1
    试了下,比我 PS 手动的快不少
    cyio
    cyio
    Jun 15, 2024❤️1
    2
    1s 内,比较快了,这个模型授权比较特殊,我之前用的 modnet 模型,授权友好,只需要 CPU ,速度 1s 多些,效果可能各有胜负 https://huggingface.co/spaces/oakerx/vanilla-js-portrait-matting
    muzihuaner
    muzihuaner
    Jun 15, 2024 via Android
    3
    这个可以开源么?🤔 想自己部署玩玩
    messagebus
    messagebus
    OP
    Jun 15, 2024 via iPhone
    4
    @cyio 我研究下
    BeijingBaby
    BeijingBaby
    PRO
    Nov 19, 2024
    5
    nice !
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3714 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 04:13 · PVG 12:13 · LAX 20:13 · JFK 23:13
    ♥ Do have faith in what you're doing.