Giter Club home page Giter Club logo

Comments (4)

mdfirman avatar mdfirman commented on May 25, 2024

@JamieWatson683 – as far as I remember we could train this model with a batch size of 12 on a single 12GB GPU, is that right?

Manydepth is pretty lightweight. Normal deep MVS methods tend to use a 4D cost volume, of size num_features x depth x height x width. We just use a 3D cost volume, of size depth x height x width. This helps a lot in terms of memory.

from manydepth.

JamieWatson683 avatar JamieWatson683 commented on May 25, 2024

Yes that sounds about right @mdfirman, maybe batch size of 10 for 12GB GPU for 640x192 (the "MR" resolution).

We generate a 3D cost volume, as we take the L1 distance between features at each location (collapsing the num_features dimension, rather than concatenating as per more heavy weight MVS methods.

We also don't let gradients flow through the cost volume or the feature extraction on previous images, which additionally reduces the memory consumption.

from manydepth.

agenthong avatar agenthong commented on May 25, 2024

Thanks for replying.

How do you process the cost volume to conver it to a single depth map? In my opinion, It's a 3D tensor so 3D conv is needed.

from manydepth.

mdfirman avatar mdfirman commented on May 25, 2024

Yes it's a 3D tensor – but we avoid 3D convs by treating the depth dimension as the channel dimension in standard 2D convs. So we treat the 3D cost volume as a 2D image with multiple channels. We then do a series of 2D convs to finally end up with a depth image.

from manydepth.

Related Issues (20)

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.