NRCan / geo-deep-learning

Deep learning applied to georeferenced datasets
https://geo-deep-learning.readthedocs.io/en/latest/
MIT License
150 stars 49 forks source link

Inference module: build first unit tests #257

Closed remtav closed 1 year ago

remtav commented 2 years ago

The inference module needs prioritization to create unit tests. Among the tests, one will have to check the "reading from STAC item" feature from #222

remtav commented 2 years ago

Useful for this issue: https://github.com/facebookresearch/hydra/blob/1.0_branch/examples/advanced/hydra_app_example/tests/test_example.py

remtav commented 2 years ago

List of tests (draft in French...) to develop based on code in inference_segmentation.py (branch 222):

gdl2pl_checkpoint: tester différents modèles comme input:

inference/InferenceDataset.py (branch 222):

inference/InferenceDataModule.py (branch 222):

postprocess_segmentation.py (branch 222):

remtav commented 1 year ago

Unit tests are added for newer PRs. Adding tests for current code is not a priority.