Coder Social home page Coder Social logo

LR Finder about pytorch_cnn_trainer HOT 6 OPEN

oke-aditya avatar oke-aditya commented on June 16, 2024
LR Finder

from pytorch_cnn_trainer.

Comments (6)

oke-aditya avatar oke-aditya commented on June 16, 2024 1

You can take this up surely. It's up for grabs !

LR finder is a standard technique whose implementation I have pointed out. Most code is going to be edit of that.

Seems simple, make sure you write the implementation and tests for it as well. Use pytest for tests.

This goes in a separate file called lr_finder.py since it is not role of trainer exactly.

Have a go. I will review it. You can discuss your solution and implementation before hacktober.

from pytorch_cnn_trainer.

oke-aditya avatar oke-aditya commented on June 16, 2024 1

I would stick to PyTorch. This library has to work with torch. 😀 Give a try lets see if we get bugs.

from pytorch_cnn_trainer.

artorias111 avatar artorias111 commented on June 16, 2024

Hey! I'd like to take this up. I've just familiarized myself with Deep Learning concepts, this seems like a good way to learn. Any suggestions?

from pytorch_cnn_trainer.

artorias111 avatar artorias111 commented on June 16, 2024

Hey, so this: https://github.com/davidtvs/pytorch-lr-finder shows two methods of how LR finder is used.

We take the model from /pytorch_cnn_trainer/model_factory.py and make it work on our implementation of LR finder in this repository. That should work, right?

from pytorch_cnn_trainer.

oke-aditya avatar oke-aditya commented on June 16, 2024

Yes, I guess you get the point. But let me clarify what exactly can be done.

It has a class for LR finder on this line.
I want that to be working with models in this repository, I think the LinearLR and ExponentialLR can be used directly from PyTorch itself. Here is source code from PyTorch

It can be used as from torch.optim.lr_schedular import EponentialLR so we can avoid that code.

Make sure that implementation works with PyTorch 1.6 + as this repository is built for 1.6 + only.

from pytorch_cnn_trainer.

artorias111 avatar artorias111 commented on June 16, 2024

Alright got it. However, the Arguments for both linearLR and ExponentialLR are different, as shown in https://github.com/davidtvs/pytorch-lr-finder/blob/master/torch_lr_finder/lr_finder.py#L578
and here:
https://github.com/pytorch/pytorch/blob/master/torch/optim/lr_scheduler.py#L434

from pytorch_cnn_trainer.

Related Issues (18)

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.