How shyad1/fast-sea-thru works
The repository provides two command-line workflows: downloading images described by a COCO-format dataset, and restoring underwater images with a Sea-Thru implementation. The downloader’s worker, retry, and file-writing behavior is visible in its excerpt. The restoration excerpt shows image handling, illuminant support, fitting, recovery, and postprocessing, while the README documents the broader stages and output options; unsampled internal call relationships are therefore not asserted.
Main entry points: proyect.py Restoration CLI · download.py Adaptive Downloader · illuminant.cu CUDA Backend
Components 20
Image Download
- Dataset Loader
download.py - Task Builder
download.py - Adaptive Downloader
download.py - Downloaded Images
download.py
Image Restoration
- Restoration CLI
proyect/proyect.py - Image Reader
proyect/proyect.py
Depth Estimation
- Depth Inputs
proyect/proyect.py - MiDaS Estimation
proyect/proyect.py - Depth Modes
proyect/proyect.py
Sea-Thru Modeling
- Illuminant Map
proyect/proyect.py - CUDA Backend
proyect/illuminant.cu - Backscatter Removal
proyect/proyect.py - Attenuation Fitting
proyect/proyect.py - Radiance Recovery
proyect/proyect.py - Tone and Postprocess
proyect/proyect.py
Outputs
- Restored Images
proyect/proyect.py - Depth Diagnostics
proyect/proyect.py
Other components
- User
- COCO Dataset
- Image Servers
Connections 19
- User → Dataset Loader: selects dataset
download.py - COCO Dataset → Dataset Loader: loads
download.py - Dataset Loader → Task Builder: provides images
download.py - Task Builder → Adaptive Downloader: creates tasks
download.py - Adaptive Downloader → Image Servers: requests images
download.py - Adaptive Downloader → Downloaded Images: writes files
download.py - User → Restoration CLI: supplies inputs
README.md - Restoration CLI → Image Reader: reads images
proyect/proyect.py - Restoration CLI → Depth Modes: selects depth mode
README.md - Depth Inputs → Depth Modes: provides maps
README.md - MiDaS Estimation → Depth Modes: provides predicted depth
README.md - Depth Modes → Illuminant Map: supplies depth
proyect/proyect.py - Illuminant Map → CUDA Backend: dispatches optionally
- Restoration CLI → Backscatter Removal: removes backscatter
README.md - Restoration CLI → Attenuation Fitting: fits attenuation
README.md - Restoration CLI → Radiance Recovery: recovers radiance
README.md - Restoration CLI → Tone and Postprocess: applies options
README.md - Restoration CLI → Restored Images: writes results
proyect/proyect.py - Restoration CLI → Depth Diagnostics: saves diagnostics
README.md