Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHauschildt committed May 10, 2024
1 parent b228350 commit d3bb977
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 15 deletions.
6 changes: 2 additions & 4 deletions TODOS.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# Todos

## Todo 2.0
## Todo 2.0

- [ ] use logger/telemetry callback instead of custom debug output
- [ ] use resolver callback instead of publicPath as such we can allow various
```
resolve: (path: string) => Response
```
- [ ] default to `gpu`
- [ ] remove image encode and decode
- [ ] remove image encode and decode
- [ ] removebg should get `ImageData` and return raw `ImageData`


7 changes: 2 additions & 5 deletions packages/node/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"compilerOptions": {
"lib": [
"DOM",
"ES2015"
],
"lib": ["DOM", "ES2015"],
"resolveJsonModule": true,
"esModuleInterop": true,
"emitDeclarationOnly": true,
"declaration": true,
"target": "ES6",
"moduleResolution": "Node16"
}
}
}
4 changes: 2 additions & 2 deletions packages/web-examples/vite-project/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ export default {
const load = async () => {
const randomImage = image
? image
: images[Math.floor(Math.random() * images.length)];
? image
: images[Math.floor(Math.random() * images.length)];
isRunning.value = true;
resetTimer();
Expand Down
4 changes: 2 additions & 2 deletions packages/web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Added

- Added option to execute on gpu (webgpu) and cpu Added
- Added option to execute on gpu (webgpu) and cpu. Enable by setting `device: "gpu"`

- Added isnet model for webgpu Added
- Added isnet model for webgpu

## [1.4.5]

Expand Down
1 change: 1 addition & 0 deletions packages/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ The library does not need any configuration to get started. However, there are o
type Config = {
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
device: 'cpu' | 'gpu'; // choose the execution device. gpu will use webgpu if available
proxyToWorker: bool; // Whether to proxy the calculations to a web worker. (Default true)
model: 'small' | 'medium'; // The model to use. (Default "medium")
output: {
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: |
Added option to execute on gpu (webgpu) and cpu Added
Added option to execute on gpu (webgpu) and cpu. Enable by setting `device: "gpu"`
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ type: Added
# type: Security
# private: true
description: |
Added isnet model for webgpu Added
Added isnet model for webgpu

0 comments on commit d3bb977

Please sign in to comment.