point model training support#1396
Open
jveitchmichaelis wants to merge 1 commit into
Open
Conversation
8f7359f to
17bff61
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1396 +/- ##
==========================================
+ Coverage 86.61% 87.05% +0.43%
==========================================
Files 26 27 +1
Lines 3736 3977 +241
==========================================
+ Hits 3236 3462 +226
- Misses 500 515 +15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Collaborator
Author
|
This looks good enough for review. I’ll run some more extensive tests to see if there’s any other features that need to be pulled in, but the core losses are all here. |
17bff61 to
e538222
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds training functionality for the default
pointmodel. Most of the code has been distilled from my experimental branch. It should replicate the existing checkpoint, and I'm running a quick test to make sure.Changes are relatively small in scope - added the optimal transport loss code, fleshed out
compute_lossesfor the model and fixed a small bug in point visualization where the VertexAnnotator wouldn't accept a palette (we instead convert points to "detections" with a radius and plot them as circles).I've included a
point_pretrainconfig which was used to train the current default point model on NEON data, replication should be possible with:uv deepforest --config-name point_pretrain trainRelated Issue(s)
Closes #809 as we now support training, visualization of predictions, simple unit tests + should also include multi-class support in theory but we've not tested it.
AI-Assisted Development
Claude code for assistance with merging the changes from the other branch.