import { ModelConfig , PersonInferenceConfig } from '@tensorflow-models/body-pix/dist/body_pix_model' ; import { Dimensions } from './types' ; export const BLUR_FILTER_RADIUS = 15 ; export const DEBOUNCE = 2 ; export const MASK_BLUR_RADIUS = 5 ; export const HISTORY_COUNT = 5 ; export const PERSON_PROBABILITY_THRESHOLD = 0.4 ; export const MODEL_NAME = 'selfie_segmentation_landscape.tflite' ; export const TFLITE_LOADER_NAME = 'tflite-1-0-0.js' ; export const TFLITE_SIMD_LOADER_NAME = 'tflite-simd-1-0-0.js' ; export const MODEL_CONFIG = { architecture : 'MobileNetV1' , outputStride : 16 , multiplier : 0.75 , quantBytes : 4 , } ; export const INFERENCE_CONFIG = { internalResolution : 1 , maxDetections : 1 , segmentationThreshold : 0.75 , } ; export const BODYPIX_INFERENCE_DIMENSIONS = { width : 224 , height : 224 , } ; export const WASM_INFERENCE_DIMENSIONS = { width : 256 , height : 144 , } ;