This pull request introduces enhancements across three major areas: testing, logging, and interactive inference functionality in our application.
Changes Included
Testing
Implemented local and remote testing
Local testing uses the GPU for inference and may be run with pytest
Remote testing skips the GPU inference which is not available without a paid plan and goes straight from generate to polygonization
Remote testing is handled by GitHub actions and is run whenever a pull request or push is made to main
Remote testing is currently dependent on 9 MB of .npy files located under tile2net/raster/resources/segmentation/small/256_19_1. This is the simplest solution but because it is 9 MB we may need to work out a different solution such as a test branch that exclusively contains the arrays.
We may want to expand our GitHub actions. For simplicity the testing in this pull is just on ubuntu-latest and python 3.11.
- **Interactive Inference Improvements**
- Raster.inference passes args to commandline:
` raster.inference('--remote', '--debug')`
### Testing and Validation
- Both tests passed: the local test with `pytest -s` and the remote test with `act push -j test` (act is for running github actions locally, not needed once it is on the remote repo.)
Requesting review from: @Mary-h86
Add Testing, Improve Logging, Improve Interactive Inference
Overview
This pull request introduces enhancements across three major areas: testing, logging, and interactive inference functionality in our application.
Changes Included
pytest
.npy
files located undertile2net/raster/resources/segmentation/small/256_19_1
. This is the simplest solution but because it is 9 MB we may need to work out a different solution such as atest
branch that exclusively contains the arrays.Logging
--debug
as an argument to get lower-level logginglogx
lines with tile2net.logger: