Giter VIP home page Giter VIP logo

Comments (7)

TruongKhang avatar TruongKhang commented on May 30, 2024 1

Thank you @Parskatt! :D, because I only have 4 GPUs and each one has 12GB, the training is so long. Anyway, the performance of your method on MegaDepth and ScanNet is really impressive. Thank you for sharing your code! Hope that we can see each other at a conference in the near future! :))))

from dkm.

Parskatt avatar Parskatt commented on May 30, 2024

Hi! The code here uses quite a bit of memory, the high-resolution version uses about 10GB per sample during training. (in fp32).
We're working on an autocast version with fp16 and support for DDP, this reduces the memory to about 5GB per sample :)

from dkm.

Parskatt avatar Parskatt commented on May 30, 2024

We trained using total batchsize 8 per GPU (we used A100fats), but I think if you have more limited memory you can try reducing batchsize and lr, or accumulating gradients.

from dkm.

TruongKhang avatar TruongKhang commented on May 30, 2024

Hey @Parskatt, thank you! But I want to know how much memory each your GPU card has

Do you make it work for FP16 by purely using Pytorch? I used mix-precision in PyTorch-lightning but got the nan loss error.

from dkm.

Parskatt avatar Parskatt commented on May 30, 2024

Those cards have 80GB memory. Although now we're pretty close to having a version work for much smaller GPU sizes (basically should work even for 10GB cards).
We also got the nan loss errors, you will probably need to use grad clipping and grad scaling. We'll share the updated code in a bit, so you can compare :)

from dkm.

TruongKhang avatar TruongKhang commented on May 30, 2024

I got it, thank you!!!

from dkm.

Parskatt avatar Parskatt commented on May 30, 2024

Congrats on the accept to AAAI23 btw :) I think making feature-matching methods more efficient is a really important topic (pun intended).

from dkm.

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.