How revanthvundamatla/capstone works
DeepSea Restore is an underwater-image restoration application backed by a DDPG agent, with a browser interface, an API, and a separate dataset-training workflow. The user workflow is upload → API inference → sequential enhancement → returned image and quality metrics. Training pairs raw/reference images, evaluates the learned policy, and records validation history. Relationships for unsampled API and training details are omitted unless supported by the excerpts or source index.
Main entry points: environment.py Enhancement environment · inference.py Inference runner · agent.py DDPG agent · train.py Dataset training
Components 13
Browser interface
- Upload and results UI
deepsea-restore-frontend/script.js - Training charts
deepsea-restore-frontend/charts.js
API and inference
- REST API
Backend/app.py - Inference runner
Backend/inference.py
Restoration engine
- Enhancement environment
Backend/enhancement/environment.py - Image state encoding
Backend/enhancement/state.py - Image enhancement ops
Backend/enhancement/ops.py - Quality metrics
Backend/metrics/metrics.py
DDPG learning
- DDPG agent
Backend/ddpg/agent.py - Actor and critic
Backend/ddpg/networks.py - Dataset training
Backend/train.py - Replay buffer
Backend/ddpg/replay_buffer.py
Other components
- Image user
Connections 15
- Image user → Upload and results UI: uploads image
deepsea-restore-frontend/script.js - Upload and results UI → REST API: posts image
- REST API → Inference runner: runs restoration
Backend/app.py - Inference runner → DDPG agent: selects actions
Backend/inference.py - Inference runner → Enhancement environment: steps environment
Backend/inference.py - Inference runner → Quality metrics: computes metrics
Backend/inference.py - Enhancement environment → Image enhancement ops: applies actions
Backend/enhancement/environment.py - Enhancement environment → Image state encoding: encodes image
Backend/enhancement/environment.py - Enhancement environment → Quality metrics: scores restoration
Backend/enhancement/environment.py - DDPG agent → Actor and critic: uses networks
Backend/ddpg/agent.py - Dataset training → DDPG agent: trains policy
Backend/train.py - Dataset training → Enhancement environment: runs episodes
Backend/train.py - Dataset training → Replay buffer: stores experience
Backend/train.py - DDPG agent → Replay buffer: samples batches
Backend/ddpg/agent.py - REST API → Upload and results UI: returns image and metrics