From 733fab63a699f07c52f5a7824bf72f720e5dcf68 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=A0=E6=89=8B=E6=8D=A7=E9=B2=9C=E8=8A=B1?=
<157215725@qq.com>
Date: Thu, 7 Dec 2023 11:12:03 +0800
Subject: [PATCH] docs
---
README.md | 26 +++++++++++++-------------
index.html | 2 +-
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/README.md b/README.md
index 58bdbd4..68ed8a5 100644
--- a/README.md
+++ b/README.md
@@ -53,17 +53,17 @@ removeBackground('/example.jpg', {
## Open source models
-| Output | Model | Resolution | Size(MB) | From |
-|---------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|------------|----------|-------------------------------------------------------------------------------|
-| | | | | |
-| | [u2net.onnx](https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net.onnx) | 320 | 168 | [danielgatis/rembg](https://github.com/danielgatis/rembg) |
-| | [u2netp.onnx](https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2netp.onnx) | 320 | 4 | [danielgatis/rembg](https://github.com/danielgatis/rembg) |
-| | [u2net_human_seg.onnx](https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net_human_seg.onnx) | 320 | 168 | [danielgatis/rembg](https://github.com/danielgatis/rembg) |
-| | [u2net_cloth_seg.onnx](https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net_cloth_seg.onnx) | 768 | 168 | [danielgatis/rembg](https://github.com/danielgatis/rembg) |
-| | [silueta.onnx](https://github.com/danielgatis/rembg/releases/download/v0.0.0/silueta.onnx) | 320 | 42 | [danielgatis/rembg](https://github.com/danielgatis/rembg) |
-| | [isnet-general-use.onnx](https://github.com/danielgatis/rembg/releases/download/v0.0.0/isnet-general-use.onnx) | 320 | 170 | [danielgatis/rembg](https://github.com/danielgatis/rembg) |
-| | [isnet-anime.onnx](https://github.com/danielgatis/rembg/releases/download/v0.0.0/isnet-anime.onnx) | 1024 | 168 | [danielgatis/rembg](https://github.com/danielgatis/rembg) |
-| | [large](https://github.com/imgly/background-removal-js/raw/main/bundle/models/large?download=) | 1024 | 176 | [imgly/background-removal-js](https://github.com/imgly/background-removal-js) |
-| | [medium](https://github.com/imgly/background-removal-js/raw/main/bundle/models/medium?download=) | 1024 | 88 | [imgly/background-removal-js](https://github.com/imgly/background-removal-js) |
-| | [small](https://github.com/imgly/background-removal-js/raw/main/bundle/models/small?download=) | 1024 | 44 | [imgly/background-removal-js](https://github.com/imgly/background-removal-js) |
+| Output | Model | Resolution | Size(MB) | From |
+|-----------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|------------|----------|-------------------------------------------------------------------------------|
+| | | | | |
+| | [u2net.onnx](https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net.onnx) | 320 | 168 | [danielgatis/rembg](https://github.com/danielgatis/rembg) |
+| | [u2netp.onnx](https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2netp.onnx) | 320 | 4 | [danielgatis/rembg](https://github.com/danielgatis/rembg) |
+| | [u2net_human_seg.onnx](https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net_human_seg.onnx) | 320 | 168 | [danielgatis/rembg](https://github.com/danielgatis/rembg) |
+| | [u2net_cloth_seg.onnx](https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net_cloth_seg.onnx) | 768 | 168 | [danielgatis/rembg](https://github.com/danielgatis/rembg) |
+| | [silueta.onnx](https://github.com/danielgatis/rembg/releases/download/v0.0.0/silueta.onnx) | 320 | 42 | [danielgatis/rembg](https://github.com/danielgatis/rembg) |
+| | [isnet-general-use.onnx](https://github.com/danielgatis/rembg/releases/download/v0.0.0/isnet-general-use.onnx) | 320 | 170 | [danielgatis/rembg](https://github.com/danielgatis/rembg) |
+| | [isnet-anime.onnx](https://github.com/danielgatis/rembg/releases/download/v0.0.0/isnet-anime.onnx) | 1024 | 168 | [danielgatis/rembg](https://github.com/danielgatis/rembg) |
+| | [large](https://github.com/imgly/background-removal-js/raw/main/bundle/models/large?download=) | 1024 | 176 | [imgly/background-removal-js](https://github.com/imgly/background-removal-js) |
+| | [medium](https://github.com/imgly/background-removal-js/raw/main/bundle/models/medium?download=) | 1024 | 88 | [imgly/background-removal-js](https://github.com/imgly/background-removal-js) |
+| | [small](https://github.com/imgly/background-removal-js/raw/main/bundle/models/small?download=) | 1024 | 44 | [imgly/background-removal-js](https://github.com/imgly/background-removal-js) |
diff --git a/index.html b/index.html
index 83f8477..3a0c85f 100644
--- a/index.html
+++ b/index.html
@@ -13,7 +13,7 @@
const blob = await removeBackground(imageSource, {
debug: true,
model: '/models/u2netp.onnx',
- resolution: 1024,
+ resolution: 320,
wasmPaths: {
'ort-wasm-simd.wasm': './node_modules/onnxruntime-web/dist/ort-wasm-simd.wasm',
},