GithubHelp home page GithubHelp logo

raug's Introduction

Raug

Raug is a simple pipeline to train deep neural models using Pytorch. Those are the main steps you should take to use this pipeline:

  1. Loading the dataset To load your dataset you must call get_data_loader() function, which will create the dataloader.

  2. Create/Define a model You must create/define a model. The easiest way is to load a model from torchvision, for example:

from torchvision import models
my_model = models.resnet50(pretrained=_pretrained)
  1. Define the loss function and the optimizer The third step is to define the loss function and the optimizer. Again, you can call them from Pytorch. Example:
import torch.optim as optim
import torch.nn as nn
loss_fn = nn.CrossEntropyLoss()
optimizer = optim.Adam(my_model.parameters(), lr=0.001)
  1. Training the model Now, to train the model, you must call the function fit_model().

  2. Testing the model Finally, to test the model in a test/validation partition, you just call the function test_model()


For all functions/methods it is included the documentation to described each parameter. Please, refer to them to understand the parameters properly. Also, in Utils folder you find some codes to compute metrics, to load, or to use a telegram bot to follow the training phase.

Dependencies

To install the dependecies you just need to run pip install -r requirements.txt.

What is Raug?

Well, I'm a fan of J. R. R. Tolkien (the author of The Lord of the rings and The Hobbit) who creates some Elf languages. Raug means a powerful creature in Sindarin. As I'm not that creative to create names to my codes, I just choose some elf names.

raug's People

Contributors

paaatcha avatar giulianolacerda avatar

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.