-
Notifications
You must be signed in to change notification settings - Fork 0
feat: early stopping & folder in configs #13
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
7eb4372
Added png support. Added folder in configs. Added
fc31d4e
finished Early Stopping
7d9aed6
forgot to stage one file. Early Stopping finished.
e29bb57
added copilot readme
13db21a
black. mypy.
62dfee5
get_transform is now without seed because transform itself is too
9d6d7dd
made everything ready for CI/CD
82def70
rerun CI/CD
c568b2f
Added different target metrics and save_top_k parameter to early stop…
44e38f9
Update src/deepforest_finetuning/training/_finetuning.py
L17L 615cb41
Update src/deepforest_finetuning/training/_finetuning.py
L17L 3e5ec93
Update README.md
L17L f04b37d
Update README.md
L17L ddb6cc9
Update README.md
L17L 4f84281
Update README.md
L17L bb5a68c
eveyrthing fixed from PR review
0f115a5
unused import fix
0bb30ec
Merge branch 'main' into Early-Stopping-&-Folder-in-configs
josafatburmeister 462f3f9
update Readme
josafatburmeister f1358be
clean up code
josafatburmeister 9ded357
update code formatting
josafatburmeister 6fe14aa
update code to latest deepforest changes
josafatburmeister 08f2b17
update Readme
josafatburmeister f6db2fc
update Readme
josafatburmeister 01d0d38
Merge branch 'main' into Early-Stopping-&-Folder-in-configs
josafatburmeister e853e34
fix pylint error
josafatburmeister File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| base_dir = "/mnt/daten/TreeAI/finetuning/for_finetuning/5cm" | ||
| tmp_dir = "./tmp" | ||
| patch_size = 640 | ||
| patch_overlap = 0.1 | ||
| image_folder = "images" | ||
| train_annotation_files = [ | ||
| "annotations", | ||
| ] | ||
| test_annotation_files = [ | ||
| "test_annotations", | ||
| ] | ||
| epochs = 20 | ||
| seeds = [0, 1, 2, 3, 4] | ||
| learning_rate = 0.0001 | ||
| checkpoint_dir = "checkpoints" | ||
| early_stopping_patience = 2 # Set to the number of epochs to wait before stopping, or remove to disable early stopping | ||
| save_top_k = 1 # Save the top k best models based on target_metric | ||
| target_metric = "test_f1" # Metric to monitor for early stopping and model checkpointing. | ||
| # Mode min/max is inferred from the metric name. | ||
|
|
||
| [prediction_export] | ||
| output_folder = "predictions" |
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.