Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Latest commit

 

History

History
24 lines (20 loc) · 1.25 KB

config-client.md

File metadata and controls

24 lines (20 loc) · 1.25 KB

Configuration Details

Majority of active client configuration can be edited in the client app directly via 'User' -> 'Settings' without the need to modify configuration files

To modify client configuration advanced parameters, edit client/shared/config.js

Main parameters are:

  const config = {
    backEnd: 'webgl',     // back-end used by tensorflow for image processing, can be webgl, cpu, wasm
    floatPrecision: true, // use true (32bit) or false (16bit) float precision
    maxSize: 780,         // maximum image width or height that will be used for processing
                          // all images are resized to this resolution for in-memory processing only
                          // originals are never modified
    renderThumbnail: 230, // resolution in which to store image thumbnail embedded in result set
    batchProcessing: 1,   // how many images to process in parallel
                          // can be increased for faster processing, but uses extra GPU memory
    squareImage: false,   // resize proportional to the original image or to a square image
    registerPWA: true,    // register PWA service worker?
    facing: true,         // webcam facing front or back
    memory: false,        // set webgl memory hard limit
  }