Code Monkey home page Code Monkey logo

Comments (4)

sfzhang15 avatar sfzhang15 commented on July 24, 2024

@lz20061213 , Hi
By default, we use four GPUs (12G) with 32 batch size, so every GPU have 8 images. If you change the gpus for a single one, you should change the 'batch_size=32' correspondingly. Maybe 'batch_size=16' or 'batch_size=8' will run successfully. Because 32 images are too many for one 11G GPU.

from refinedet.

lz20061213 avatar lz20061213 commented on July 24, 2024

@sfzhang15 Hi, thanks for your reply! I wonder if i change the batch_size to solve the GPU memory problem, should i change the max_iter and stepvalue at the same time?

from refinedet.

sfzhang15 avatar sfzhang15 commented on July 24, 2024

@lz20061213 Hi, you do not need to change other parameters. Since the 'accum_batch_size' is unchanged. If you change the 'batch_size' form 32 to 8, the 'iter_size' of four GPUs is 1, while the 'iter_size' of one GPU will become 4. But the accum_batch_size is the same, i.e., accum_batch_size=32.

from refinedet.

lz20061213 avatar lz20061213 commented on July 24, 2024

@sfzhang15 Got it! Truly thanks!

from refinedet.

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.