mirror of https://github.com/vladmandic/human
fix usge of string enums
parent
69021653be
commit
b6f3f6a494
|
@ -37,6 +37,7 @@
|
|||
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||||
"@typescript-eslint/no-shadow": "error",
|
||||
"@typescript-eslint/no-var-requires": "off",
|
||||
"@typescript-eslint/triple-slash-reference": "off",
|
||||
"camelcase": "off",
|
||||
"dot-notation": "off",
|
||||
"func-names": "off",
|
||||
|
|
|
@ -11,9 +11,8 @@
|
|||
|
||||
### **HEAD -> main** 2021/09/11 mandic00@live.com
|
||||
|
||||
|
||||
### **origin/main** 2021/09/11 mandic00@live.com
|
||||
|
||||
- implement event emitters
|
||||
- fix iife loader
|
||||
- simplify dependencies
|
||||
- fix file permissions
|
||||
- remove old build server
|
||||
|
|
|
@ -7,9 +7,10 @@
|
|||
* Contains all configurable parameters
|
||||
* @typedef Config
|
||||
*/
|
||||
|
||||
export interface Config {
|
||||
/** Backend used for TFJS operations */
|
||||
backend: null | '' | 'cpu' | 'wasm' | 'webgl' | 'humangl' | 'tensorflow' | 'webgpu',
|
||||
backend: '' | 'cpu' | 'wasm' | 'webgl' | 'humangl' | 'tensorflow' | 'webgpu' | null | string,
|
||||
|
||||
/** Path to *.wasm files if backend is set to `wasm` */
|
||||
wasmPath: string,
|
||||
|
@ -24,7 +25,7 @@ export interface Config {
|
|||
* - warmup pre-initializes all models for faster inference but can take significant time on startup
|
||||
* - only used for `webgl` and `humangl` backends
|
||||
*/
|
||||
warmup: 'none' | 'face' | 'full' | 'body',
|
||||
warmup: 'none' | 'face' | 'full' | 'body' | string,
|
||||
|
||||
/** Base model path (typically starting with file://, http:// or https://) for all models
|
||||
* - individual modelPath values are relative to this path
|
||||
|
|
Loading…
Reference in New Issue