Coder Social home page Coder Social logo

sea-thru's Introduction

This is an implementation of Sea-Thru. The original paper by Derya Akkaynak and Tali Treibitz can be found here. Data can be found here.

You will need python3 as well as all the packages in the requirements.txt file, as well as tkinter (on Ubuntu, sudo apt install python3-tk).

I extended their method to use a CNN-based monocular depth estimation technique called monodepth2, which can be found here. Check out the report for more information!

Example:

# install the requirements
pip3 install -r requirements.txt
# download the dataset
wget "https://www.dropbox.com/sh/xtimf7qwfak4wwc/AAAGqn2JMe98II9lYeBTVBE2a/D3?dl=1"
unzip D3.zip
# generate the image
# can use either RAW files or PNG/JPG
python3 seathru.py --image Raw/T_S04858.ARW --depth-map depthMaps/depthT_S04858.tif

## If you want to run the monocular depth estimation pipeline
# install deps
git submodule update --init --recursive
python3 seathru-mono-e2e.py --monodepth-add-depth 1.0 --monodepth-multiply-depth 3.0 --image Raw/T_S04858.ARW --raw --output output-monodepth.png

Input:

Output:

Output with estimated depths (ranging from 1.0-4.0 meters):

The monodepth pipeline can also be used with PNG/JPEG images by omitting the --raw option. For each image, the --monodepth-add-depth parameter controls the minimum depth that the estimation will output, and the --monodepth-multiply-depth controls the range of depths as follows:

output_depths = monodepth_multiply_depth + (monodepth_multiply_depth * monodepth_depths)

where monodepth_depths range from 0 to 1.

sea-thru's People

Contributors

jgibson2 avatar jeffin07 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.