File size: 1,747 Bytes
cf93910
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# SanketSetu Backend β€” environment variables
# Copy this file to .env and edit as needed.
# All values below are the defaults; remove a line to keep the default.

# ── Model paths (default: resolved from repo root) ─────────────────────────
# WEIGHTS_DIR=/absolute/path/to/model/dir

# ── Inference ───────────────────────────────────────────────────────────────
# Pipeline A confidence below this β†’ also run Pipeline B
CONFIDENCE_THRESHOLD=0.70

# Pipeline A+B ensemble confidence below this β†’ also run Pipeline C (if image)
SECONDARY_THRESHOLD=0.60

# Which pipeline to run: A | B | C | ensemble
PIPELINE_MODE=ensemble

# ── Server ──────────────────────────────────────────────────────────────────
MAX_WS_CONNECTIONS=100

# Comma-separated list of allowed CORS origins
CORS_ORIGINS=http://localhost:5173,http://localhost:3000

# ── TensorFlow / Keras ──────────────────────────────────────────────────────
KERAS_BACKEND=tensorflow
TF_CPP_MIN_LOG_LEVEL=3
CUDA_VISIBLE_DEVICES=         # empty = CPU-only, skip GPU scan (faster startup)
TF_ENABLE_ONEDNN_OPTS=0
OMP_NUM_THREADS=4

# ── Logging ─────────────────────────────────────────────────────────────────
LOG_LEVEL=INFO