Giter Club home page Giter Club logo

Comments (7)

yunjey avatar yunjey commented on July 28, 2024 1

@ahkarami No, it does not support. However, you can solve the problem by using the DataParallel module, or you can spread modules over multiple GPUs by passing an additional argument to .cuda(). For example, .cuda(1) will place the tensors and modules on 2nd GPU. For this, you should edit here and here.

from pytorch-tutorial.

yunjey avatar yunjey commented on July 28, 2024

@ahkarami Sorry for late reply. You can prepare a JSON file in the same form as MSCOCO dataset and use the code in the tutorial. Another way is to implement your own DataSet class. See here for how to implement custom dataset in PyTorch.

from pytorch-tutorial.

ahkarami avatar ahkarami commented on July 28, 2024

Dear @yunjey,
Thank you very much for your response. Just as another question, would you please tell me that your nice Image Captioning code supports Multi-GPU training or not?

from pytorch-tutorial.

ahkarami avatar ahkarami commented on July 28, 2024

Dear @yunjey, Thank you very much for your time and useful response.

from pytorch-tutorial.

abhigoku10 avatar abhigoku10 commented on July 28, 2024

@ahkarami @yunjey hi guys i am new to this topic i need to train for a custom dataset can you pls elaborate the steps for training with custom datasets . These are the things i am having currently with me

1.10k img database of various objects and tags for each image

Thanks in advance

from pytorch-tutorial.

ahkarami avatar ahkarami commented on July 28, 2024

Dear @abhigoku10,
You can use image captioning codebase in pytorch instead of above code. Actually, as I remember, I haven't use above code for training on another data sets, but by using the mentioned code I have done that. However, as I have remembered, that was a semi-sophisticated work to create a json file like the used one for MS-COCO.

from pytorch-tutorial.

Kyfafyd avatar Kyfafyd commented on July 28, 2024

Dear @yunjey
I want to train the model on my dataset, but it seems that my json file works wrong, could you tell me how to preprocess a json file?
Thanks very much

from pytorch-tutorial.

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.