Giter Site home page Giter Site logo

Comments (5)

Erlemar avatar Erlemar commented on July 23, 2024

I'm using Pytorch Lightning, so I don't have to write all of the training code with backward() and other things. In the following article you can see how can Pytorch code be transformed into Pytorch Lightning code.

https://towardsdatascience.com/from-pytorch-to-pytorch-lightning-a-gentle-introduction-b371b7caaf09

Here is the part about training loop:
https://miro.medium.com/max/700/1*sary1TInxeXMLW-44-_RDg.jpeg

from wheat.

sarmientoj24 avatar sarmientoj24 commented on July 23, 2024

I see. Thank you for that. I am currently using it for multi-class detection. Is it correct that if i have 19 classes, it has to be labelled 1-19 but num_classes to the predictor should be 20?

from wheat.

Erlemar avatar Erlemar commented on July 23, 2024

Yes, you are correct!

from wheat.

sarmientoj24 avatar sarmientoj24 commented on July 23, 2024

I also noticed that you did not have something like

{'class_name': 'albumentations.augmentations.transforms.Normalize', 'params': {'p': 1.0}},

From PyTorch docs in training FasterRCNN, they seem to get images normalized by those values on transforms.Normalize. Any particular reason why there isnt such on yours? Is it because you already performed this:

image /= 255

from wheat.

Erlemar avatar Erlemar commented on July 23, 2024

Yes, in this repository I did this basic preprocessing as a baseline. Indeed, it would be better to remove this line from the Dataset and add Normalize from albumentations to config.

from wheat.

Related Issues (2)

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.