Spaces:
Sleeping
Sleeping
| # Copy to .env and uncomment values as needed (optional for local dev). | |
| # python run.py sets APP_MODE=dda automatically. | |
| # APP_MODE=dda | |
| # SECRET_KEY=change-me-to-a-long-random-string | |
| # Database (default: SQLite in data/satellite_app.db) | |
| # DATABASE_URL=sqlite:///./data/satellite_app.db | |
| # Local image library folder (default: library_sources/) | |
| # LOCAL_LIBRARY_ROOT=C:/path/to/your/images | |
| # Image upload limit in MB (default 15360 = 15 GB) | |
| # MAX_GEOTIFF_MB=15360 | |
| # MAX_IMAGE_MB=15360 | |
| # Max pixel dimension for detection (lower = less RAM, default 4096 local) | |
| # DETECTION_MAX_SIDE=4096 | |
| # --- Accuracy controls (all optional; defaults preserve current behavior) --- | |
| # Inference mode: downscaled (default) or fullres_tiled (native detail for large GeoTIFFs) | |
| # DETECTION_INFERENCE_MODE=downscaled | |
| # Full-res cap (px) in fullres_tiled mode; 0 = native resolution | |
| # DETECTION_FULLRES_MAX_SIDE=8192 | |
| # Native side (px) above which GeoTIFFs stream from disk windows (avoids OOM) | |
| # DETECTION_WINDOWED_THRESHOLD=8192 | |
| # Soft RAM budget (MB) per in-memory array before switching to windowed streaming | |
| # DETECTION_TILE_MEMORY_MB=1536 | |
| # Tile size / overlap for full-res scoring | |
| # DETECTION_TILE_SIZE=512 | |
| # DETECTION_TILE_OVERLAP=0.25 | |
| # Multi-scale DL fusion: off or a comma list, e.g. 0.5,1.0,1.5 | |
| # DETECTION_MULTISCALE=off | |
| # Fusion strategy: smart_union (default) or hysteresis | |
| # DETECTION_FUSION=smart_union | |
| # Preprocessing toggles | |
| # DETECTION_CLAHE=true | |
| # DETECTION_HIST_MATCH=false | |
| # DETECTION_SKIP_PREBLUR= # auto: on in fullres_tiled mode | |
| # Border pixels zeroed in mask cleanup (auto: 4 fullres / 12 downscaled) | |
| # DETECTION_BORDER_MARGIN= | |
| # Tiles per GPU forward pass (1 = no batching) | |
| # DETECTION_TILE_BATCH=1 | |
| # Save a downsampled probability-map PNG per run for debugging | |
| # DETECTION_SAVE_PROB_MAP=false | |
| # Public URL for report links in emails (default http://localhost:8000 locally) | |
| # PUBLIC_BASE_URL=http://localhost:8000 | |
| # Email notifications (optional) | |
| # EMAIL_API_URL=https://emailservice.managemybusinessess.com/api/email/send | |
| # SMTP_HOST=smtp.gmail.com | |
| # SMTP_PORT=587 | |
| # SMTP_USER= | |
| # SMTP_PASS= | |
| # Hugging Face model cache directory | |
| # HF_HOME=./.hf_cache | |
| # Department export API (optional — FR-08) | |
| # DEPT_API_URL=https://dept.example.gov/api/changes | |
| # DEPT_API_KEY=your-api-key | |
| # DDA admin account (optional — UAT / ops) | |
| # DDA_ADMIN_EMAIL=admin@example.com | |
| # DDA_ADMIN_PASSWORD=change-me | |
| # DDA_TRAINING_EXPORT_KEY=secret-key-for-fp-export | |