Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
!extractor/mapping/OpenSfM/setup.py
!extractor/mapping/OpenSfM/viewer

!extractor/segmentation/Mask_RCNN/mrcnn
!extractor/segmentation/Mask_RCNN/MANIFEST.in
!extractor/segmentation/Mask_RCNN/README.md
!extractor/segmentation/Mask_RCNN/requirements.txt
!extractor/segmentation/Mask_RCNN/setup.cfg
!extractor/segmentation/Mask_RCNN/setup.py
!extractor/segmentation/Mask_RCNN_TF2/mrcnn
!extractor/segmentation/Mask_RCNN_TF2/MANIFEST.in
!extractor/segmentation/Mask_RCNN_TF2/README.md
!extractor/segmentation/Mask_RCNN_TF2/requirements.txt
!extractor/segmentation/Mask_RCNN_TF2/setup.cfg
!extractor/segmentation/Mask_RCNN_TF2/setup.py

!requirements.txt

Expand Down
80 changes: 80 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# PV-Hawk Docker Environment Configuration
# Copy this file to .env and adjust the paths according to your setup

# =============================================================================
# DATA DIRECTORIES
# =============================================================================

# Directory containing your input videos and data
DATA_DIR=./data

# Working directory for processing (will contain intermediate and final results)
WORK_DIR=./workdir

# Directory containing configuration files (config.yml)
CONFIG_DIR=./config

# Directory containing camera calibration parameters
CALIBRATION_DIR=./calibration

# Directory containing model weights (mask_rcnn_*.h5 files)
MODELS_DIR=./models

# Directory for final outputs
OUTPUT_DIR=./output

# =============================================================================
# API CONFIGURATION
# =============================================================================

# Port for the REST API server
API_PORT=8000

# Secret key for JWT token signing (IMPORTANT: Change in production!)
API_SECRET_KEY=pv-hawk-secret-key-change-in-production

# Optional API key for simple authentication
API_KEY=

# =============================================================================
# JUPYTER DEVELOPMENT (optional)
# =============================================================================

# Port for Jupyter Lab (only used if running development profile)
JUPYTER_PORT=8888

# Jupyter token (leave empty for no token, set for security)
JUPYTER_TOKEN=

# =============================================================================
# GPU CONFIGURATION
# =============================================================================

# Which GPU to use (0 for first GPU, 1 for second, etc.)
CUDA_VISIBLE_DEVICES=0

# TensorFlow GPU memory growth (recommended: true)
TF_FORCE_GPU_ALLOW_GROWTH=true

# TensorFlow logging level (0=all, 1=no info, 2=no warnings, 3=errors only)
TF_CPP_MIN_LOG_LEVEL=1

# =============================================================================
# EXAMPLE PATHS (adjust to your system)
# =============================================================================

# Example for Linux:
# DATA_DIR=/home/user/pv-hawk/data
# WORK_DIR=/home/user/pv-hawk/workdir
# CONFIG_DIR=/home/user/pv-hawk/config
# CALIBRATION_DIR=/home/user/pv-hawk/calibration
# MODELS_DIR=/home/user/pv-hawk/models
# OUTPUT_DIR=/home/user/pv-hawk/output

# Example for Windows (use forward slashes or double backslashes):
# DATA_DIR=C:/Users/user/pv-hawk/data
# WORK_DIR=C:/Users/user/pv-hawk/workdir
# CONFIG_DIR=C:/Users/user/pv-hawk/config
# CALIBRATION_DIR=C:/Users/user/pv-hawk/calibration
# MODELS_DIR=C:/Users/user/pv-hawk/models
# OUTPUT_DIR=C:/Users/user/pv-hawk/output
26 changes: 18 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
__pycache__
.ipynb_checkpoints
.vscode

.ve
.venv
.vevn_tf2
debug.txt

docker_command.txt
Expand All @@ -12,15 +14,23 @@ htmlcov
.hypothesis
.mutmut-cache

extractor/segmentation/Mask_RCNN/logs
extractor/segmentation/Mask_RCNN/mask_rcnn_coco.h5
extractor/segmentation/Mask_RCNN/mask_rcnn_pv_modules_0120.h5
extractor/segmentation/Mask_RCNN/mask_rcnn_pv_modules_rgb_0059.h5
extractor/segmentation/Mask_RCNN/build/
extractor/segmentation/Mask_RCNN/dist/
extractor/segmentation/Mask_RCNN/mask_rcnn.egg-info/
extractor/segmentation/Mask_RCNN_TF2/logs
extractor/segmentation/Mask_RCNN_TF2/mask_rcnn_coco.h5
extractor/segmentation/Mask_RCNN_TF2/mask_rcnn_pv_modules_0120.h5
extractor/segmentation/Mask_RCNN_TF2/mask_rcnn_pv_modules_rgb_0059.h5
extractor/segmentation/Mask_RCNN_TF2/build/
extractor/segmentation/Mask_RCNN_TF2/dist/
extractor/segmentation/Mask_RCNN_TF2/mask_rcnn.egg-info/

calibration/camera_8hz/images_undistorted
calibration/camera_30hz/images_undistorted

docs/build

# Test outputs and temporary files
test_output/
*.tmp
*.log

# Version control files from cloned repositories
=*
Loading