Skip to content

Commit

Permalink
release: v1.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHauschildt committed Feb 7, 2024
1 parent c1082a3 commit c808d4e
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 27 deletions.
16 changes: 11 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.4.3",
"version": "1.4.4",
"name": "workspace",
"workspaces": [
"packages/web",
Expand Down
4 changes: 2 additions & 2 deletions packages/node-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"@imgly/background-removal-node": "file:../node",
"jest": "^29.6.2"
},
"version": "1.4.3"
}
"version": "1.4.4"
}
4 changes: 2 additions & 2 deletions packages/node-examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"dependencies": {
"@imgly/background-removal-node": "file:../node"
},
"version": "1.4.3"
}
"version": "1.4.4"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ type: Added
# type: Security
# private: true
description: |
Bumped onnx runtime to 1.17 Changed
Bumped onnx runtime to 1.17 Changed
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ type: Added
# type: Security
# private: true
description: |
Changed license from GPL to AGPL Changed
Changed license from GPL to AGPL Changed
4 changes: 2 additions & 2 deletions packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@imgly/background-removal-node",
"version": "1.4.3",
"version": "1.4.4",
"description": "Background Removal in NodeJS",
"resources": "@imgly/background-removal-node",
"keywords": [
Expand Down Expand Up @@ -81,4 +81,4 @@
"webpack": "^5.85.1",
"webpack-cli": "^5.1.4"
}
}
}
4 changes: 2 additions & 2 deletions packages/web-data/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@imgly/background-removal-data",
"version": "1.4.3",
"version": "1.4.4",
"description": "Background Removal Data",
"keywords": [
"background-removal",
Expand Down Expand Up @@ -46,4 +46,4 @@
"dependencies": {
"onnxruntime-web": "~1.17.0"
}
}
}
4 changes: 2 additions & 2 deletions packages/web-examples/create-react-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "test",
"version": "1.4.3",
"version": "1.4.4",
"private": true,
"dependencies": {
"@imgly/background-removal": "file:../../web",
Expand Down Expand Up @@ -35,4 +35,4 @@
"last 1 safari version"
]
}
}
}
4 changes: 2 additions & 2 deletions packages/web-examples/vite-project/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vite-project",
"private": true,
"version": "1.4.3",
"version": "1.4.4",
"type": "module",
"scripts": {
"start": "npm run dev",
Expand All @@ -20,4 +20,4 @@
"vite": "^4.3.9",
"vue-tsc": "^1.4.2"
}
}
}
2 changes: 1 addition & 1 deletion packages/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ The library does not need any configuration to get started. However, there are o

```typescript
type Config = {
publicPath: string; // The public path used for model and wasm files. Default: 'https://staticimgly.com/${PACKAGE_NAME}-data/@${PACKAGE_VERSION}/dist/'
publicPath: string; // The public path used for model and wasm files. Default: 'https://staticimgly.com/${PACKAGE_NAME}-data/${PACKAGE_VERSION}/dist/'
debug: bool; // enable or disable useful console.log outputs
proxyToWorker: bool; // Whether to proxy the calculations to a web worker. (Default true)
model: 'small' | 'medium'; // The model to use. (Default "medium")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ type: Added
# type: Security
# private: true
description: |
Bumped onnx runtime to 1.17 Changed
Bumped onnx runtime to 1.17 Changed
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ type: Added
# type: Security
# private: true
description: |
Changed license from GPL to AGPL Changed
Changed license from GPL to AGPL Changed
5 changes: 3 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@imgly/background-removal",
"version": "1.4.3",
"version": "1.4.4",
"description": "Background Removal in the Browser",
"keywords": [
"background-removal",
Expand Down Expand Up @@ -60,6 +60,7 @@
"dependencies": {
"@types/lodash": "~4.14.0",
"@types/node": "~20.3.0",
"@types/ndarray": "~1.0.14",
"lodash": "~4.17.0",
"ndarray": "~1.0.0",
"onnxruntime-web": "~1.17.0",
Expand All @@ -78,4 +79,4 @@
"webpack": "~5.85.0",
"webpack-cli": "~5.1.0"
}
}
}
4 changes: 3 additions & 1 deletion packages/web/src/inference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import { loadAsBlob } from './resource';
import ndarray, { NdArray } from 'ndarray';
import { convertFloat32ToUint8 } from './utils';

async function initInference(config?: Config): Promise<{ config: Config, session: unknown }> {
async function initInference(
config?: Config
): Promise<{ config: Config; session: unknown }> {
config = validateConfig(config);

if (config.debug) console.debug('Loading model...');
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const ConfigSchema = z
.optional()
.describe('The public path to the wasm files and the onnx model.')
.default(
'https://staticimgly.com/@imgly/background-removal-data/@${PACKAGE_VERSION}/dist/'
'https://staticimgly.com/@imgly/background-removal-data/${PACKAGE_VERSION}/dist/'
)
.transform((val) => {
return val
Expand Down

0 comments on commit c808d4e

Please sign in to comment.