Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary class training in Pytorch #5 #6

Merged
merged 3 commits into from
Jan 19, 2021

Conversation

murthy95
Copy link
Contributor

@murthy95 murthy95 commented Jan 2, 2021

Summary

This PR adds support for declaring number of clasees for Image Classification Pytorch models.

Details

  • Adds a parameter in the sidebar below the "Use pre-trained model" checkbox
  • Default value is 1000 (what torchvision uses)
  • If pre-trained is True, imagenet weights are loaded and last fc layer is redefined

Checklist

  • all tests are passing (see README.md on how to run tests)
  • if you created a new template: it contains a file test-inputs.yml, which specifies a few input values to test the code template (the test is then automatically run by pytest)
  • you formatted all code with black
  • you checked all new functionality live, i.e. in the running web app
  • any generated code is formatted nicely, both in .py and in .ipynb ("nicely" = comparable to the existing templates)
  • you added comments in your code that explain what it does
  • the PR explains in detail what's new

@jrieke jrieke marked this pull request as ready for review January 19, 2021 20:55
@jrieke jrieke merged commit 7e70f06 into jrieke:main Jan 19, 2021
@jrieke
Copy link
Owner

jrieke commented Jan 19, 2021

Looks good! Merging for now, will do a few minor changes and let you know in the issue when it's deployed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants