-
Notifications
You must be signed in to change notification settings - Fork 388
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
Add Inria datamodule #498
Add Inria datamodule #498
Conversation
ignore_zeros: True # class 0 not used for scoring | ||
datamodule: | ||
root_dir: "data/inria" | ||
batch_size: 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty small... Note that conf/inria.yaml
should contain the optimal hyperparameters while tests/conf/inria.yaml
should contain the bare minimum to get the tests to run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added tests/conf/inria.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that the small values required to make the tests run fast are in tests/conf/inria.yaml
, should these values be increased? I guess it requires a hyperparam tuning to determine what the best hyperparams are.
Nevermind, I see that this was discussed earlier. |
Docs are failing due to the recent deprecation of Edit: Docs issue solved. |
Requires kornia/kornia#1558 to be merged
@adamjstewart @calebrob6 @isaaccorley Anything left to address in this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I think this is really close, just a few minor comments!
Also, I want to apologize for taking so long to review this. I just finished all of my final projects and exams for the semester and started an internship, so it's been a really busy month. I'm hoping to spend more of my weekends on TorchGeo over the summer so hopefully I'll be more responsive from now on!
No worries. You're doing plenty as is. Thanks. Got back to this PR because a colleague wanted to try out a building detector on their own data. Honestly my original motivation was the same. Train a model on this dataset and add utilities for running inference on geotiffs of arbitrary size by leveraging kornia. Got sidetracked by other projects but I'm hoping to get this done soon. |
* Add Inria Datamodule * Fix up * Add predict.py * Integrate kornia fns for extracting & combining Requires kornia/kornia#1558 to be merged * transform creates problem when calculating metrics * Update * Use dict.get * Add tests & update test data * Add Inria datamodule to docs * Reduce test data size * Datamodules always have predict_dataloader * Remove comments * Update predict.py * Add PredictDataset * Fix tests * Update inria.yaml * Clarify predict_on doc * Refactor * Update min kornia * Update inria.yaml * Remove predict utilities * Trainer fix * Use kornia's compute_padding * kornia docfix * Use stable docs * Fixes
* Add Inria Datamodule * Fix up * Add predict.py * Integrate kornia fns for extracting & combining Requires kornia/kornia#1558 to be merged * transform creates problem when calculating metrics * Update * Use dict.get * Add tests & update test data * Add Inria datamodule to docs * Reduce test data size * Datamodules always have predict_dataloader * Remove comments * Update predict.py * Add PredictDataset * Fix tests * Update inria.yaml * Clarify predict_on doc * Refactor * Update min kornia * Update inria.yaml * Remove predict utilities * Trainer fix * Use kornia's compute_padding * kornia docfix * Use stable docs * Fixes
Prediction utilitiesAdded
predict.py
. Allows running inference on test sets / directory of images. Requires kornia>0.6.4 for fixedCombineTensorPatches
.