Giter Site home page Giter Site logo

Comments (11)

JiahuiYu avatar JiahuiYu commented on May 18, 2024 1

To enable multi-GPU training, you will need to change this line to MultiGPUTrainer.
Expect some adventures when using multi-GPU for this project. I am not sure about the behavior.

from generative_inpainting.

lipanpeng avatar lipanpeng commented on May 18, 2024 1

@RyanHTR I changed this line to MultiGPUTrainer. But I got an error "TypeError: 'NoneType' object is not callable" which I can't figure it out. Do you have this problem?

from generative_inpainting.

zhiweige avatar zhiweige commented on May 18, 2024

@RyanHTR Hello, RyanHTR, can you train the network successfully on multi-GPU?

from generative_inpainting.

zengyh1900 avatar zengyh1900 commented on May 18, 2024

@JiahuiYu There is a bug for 'NoneType object is not callable' None()

from generative_inpainting.

JiahuiYu avatar JiahuiYu commented on May 18, 2024

@1900zyh This is not bug. Loss should be None for multi-GPU training.

from generative_inpainting.

zengyh1900 avatar zengyh1900 commented on May 18, 2024

@JiahuiYu I think it should be
assert loss is None, 'For multigpu training, graph_def should be provided, instead of loss.'
Or it will report TypeError

from generative_inpainting.

JiahuiYu avatar JiahuiYu commented on May 18, 2024

@1900zyh Ohhhh I see. Thank you!

from generative_inpainting.

bis-carbon avatar bis-carbon commented on May 18, 2024

I have 4 GTX 1080Ti GPUs and each gpu can handle batch size of 16 that means if I use all the gpus I can change batch size to 64. But when I do that my GPUs ran out of memory.
Am assuming here that ng.train.MultiGPUTrainer uses data parallelism to split input data (64 batch size) in to 4 gpus where each gpu gets 16 batch of images.

Because of that Issue I can only train on batch size of 16, whether I use 4 gpus or 1 gpu.
What are your thoughts about this?

from generative_inpainting.

JiahuiYu avatar JiahuiYu commented on May 18, 2024

@bis-carbon The batch size here is the per-gpu batch size.

from generative_inpainting.

bis-carbon avatar bis-carbon commented on May 18, 2024

Thank you for your quick response and great work.

from generative_inpainting.

Adhiyaman-Manickam avatar Adhiyaman-Manickam commented on May 18, 2024

@1900zyh @bis-carbon @lipanpeng Hi. Have you figured out the issues that how to use multi gpu for training. If so, kinldy let me know, I am struggling. Thanks in advance

from generative_inpainting.

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.