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