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

num_classes shouldn't be an optional arg for CropModel #894

Merged
merged 5 commits into from
Jan 21, 2025

Conversation

bw4sz
Copy link
Collaborator

@bw4sz bw4sz commented Jan 18, 2025

This is more of a style change than a bug. CropModel had num_classes = 2 as a default. But there is no reason besides the example we gave that this should be the case. Having it be an optional argument in reloading from checkpoint, since I forgot to specify num_classes=5 and it silently failed. I added a test for better coverage.

@bw4sz bw4sz requested a review from henrykironde January 20, 2025 18:13
Copy link
Member

@ethanwhite ethanwhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style tests are failing. Otherwise looks good

Copy link
Member

@ethanwhite ethanwhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bw4sz

@ethanwhite ethanwhite merged commit 20f337a into main Jan 21, 2025
7 checks passed
@henrykironde henrykironde deleted the load_from_checkpoint_cropmodel_new_size branch February 1, 2025 02:28
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