Giter Site home page Giter Site logo

jackzhousz / mesoscopic-photogrammetry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kevinczhou/mesoscopic-photogrammetry

0.0 0.0 0.0 35 KB

3D reconstructions of mm-scale objects from sequences of phone camera images

License: MIT License

Python 73.93% Jupyter Notebook 26.07%

mesoscopic-photogrammetry's Introduction

Mesoscopic photogrammetry with an unstabilized phone camera

This repository contains the code that stitches a sequence of close-range (several cms) camera images from different lateral positions of a scene with mm-scale height variation. The output is a stitched orthomosaic and a coaligned height map with accuracy as good as tens of microns. For more information on methodology and results, see our CVPR 2021 paper.

Data

The image sequence datasets can be downloaded at https://doi.org/10.6084/m9.figshare.13363574.

Required packages

The code requires the following python 3 libraries:

  • tensorflow 2.1*
  • numpy
  • scipy
  • cv2
  • tqdm
  • matplotlib
  • jupyter

*Please use IBM's version, which allows GPU-CPU memory swapping: https://github.com/IBM/tensorflow-large-model-support. Without this version, your GPU will probably run out of memory.

Usage

First, download the datasets from the above figshare link, and put them in a directory, called data/ (e.g., so that you have data/painting/, data/helicopter_seeds/, etc.). Next, run the jupyter notebook, run_mesoscopic_photogrammetry.ipynb, which contains more detailed, cell-by-cell instructions. To run as is, you will need a GPU with at least 11 GB of RAM and 32 GB of CPU RAM. With an Intel Xeon Silver 4116 augmented with an Nvidia RTX 2080 Ti GPU, we were able to perform the stitching and reconstruction in 8-12 hours per sample, if using the CNN reparameterization and without downsampling the images (1512x2016).

mesoscopic-photogrammetry's People

Contributors

kevinczhou 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.