Code Monkey home page Code Monkey logo

Comments (4)

jrieke avatar jrieke commented on August 29, 2024 1

@murthy95 Sorry for the long delay, I was busy with another projects the last 2 weeks. Anyway, I merged your PR and it's now live on the website! 🥳

Just adapted the fields in the sidebar a bit. Closing this for now but let me know if you have more thoughts. Thanks again for contributing! ❤️

from traingenerator.

jrieke avatar jrieke commented on August 29, 2024

Hey @murthy95, yes that would be great! I actually had this on my list but seems like I forgot to add it in the first version. For the pytorch template, that's fairly easy, you can just pass the number to the torchvision model, e.g. torchvision.models.alexnet(num_classes=10). For sklearn, I think it's impossible to set it manually, unfortunately (because it just infers the number of classes from the data), but if you find an option, let me know!

Some more thoughts:

  • probably best to add a parameter in the sidebar below the "Use pre-trained model" checkbox:
  • default value should be 1000 (as that's what torchvision uses)
  • if pre-trained is True, this needs to be fixed at 1000
  • in the code, this should be added as a hyperparameter below here:

image

Long-term it would also be great to infer this value automatically from the input data but for now manually setting it should be enough.

from traingenerator.

murthy95 avatar murthy95 commented on August 29, 2024

@jrieke True for pytorch models its fairly easy but if we want to support pretrained imagenet weights for transfer learning we need to load weights and then change the final fc layer. At least this what I did in my PR if there is some better way please point it out.

from traingenerator.

jrieke avatar jrieke commented on August 29, 2024

@murthy95 Good point, didn't think about that. Just had a brief look through your PR (#6), looks good so far. I'll try it out during the next days (bit busy right now) and get back.

from traingenerator.

Related Issues (10)

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.