diff --git a/.gitignore b/.gitignore index b1e32ad2..d114daf4 100644 --- a/.gitignore +++ b/.gitignore @@ -120,3 +120,5 @@ dmypy.json # Project-specific sandbox.ipynb +solaris/nets/weights +model_weights diff --git a/.travis.yml b/.travis.yml index a70f4df1..56a0499f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: python sudo: required dist: xenial +cache: false python: - "3.6" - "3.7" @@ -19,20 +20,22 @@ install: - export PATH="$HOME/miniconda/bin:$PATH" - hash -r - conda config --set always_yes yes --set changeps1 no - - conda update -q conda # Useful for debugging any issues with conda + - conda update conda -c conda-forge - conda info -a # switch python version spec in environment.yml to match TRAVIS_PYTHON_VERSION # annoying workaround to `conda env create python=$TRAVIS_PYTHON_VERSION` not working - sed -i -E 's/(python=)(.*)/\1'$TRAVIS_PYTHON_VERSION'/' ./environment.yml - conda env create -n solaris -f environment.yml + - conda list -n solaris - source activate solaris - python --version - pip install -q -e .[test] - - pip install codecov pytest pytest-cov + - conda install pytest=4.6.2 -c conda-forge + - pip install codecov pytest-cov # command to run tests script: - - pytest --cov=./ + - python -m pytest --cov=./ after_success: - codecov diff --git a/docs/_templates/custom_sidebar.html b/docs/_templates/custom_sidebar.html new file mode 100644 index 00000000..8ff3907c --- /dev/null +++ b/docs/_templates/custom_sidebar.html @@ -0,0 +1 @@ +
\n", + " | geometry | \n", + "value | \n", + "
---|---|---|
0 | \n", + "POLYGON ((542 0, 542 1, 545 1, 545 2, 546 2, 5... | \n", + "255.0 | \n", + "
1 | \n", + "POLYGON ((202 52, 202 53, 201 53, 190 53, 190 ... | \n", + "255.0 | \n", + "
2 | \n", + "POLYGON ((339 54, 339 72, 340 72, 340 78, 352 ... | \n", + "255.0 | \n", + "
3 | \n", + "POLYGON ((548 55, 548 56, 547 56, 542 56, 542 ... | \n", + "255.0 | \n", + "
4 | \n", + "POLYGON ((261 59, 261 60, 260 60, 248 60, 248 ... | \n", + "255.0 | \n", + "
\n", + " | ImageId | \n", + "BuildingId | \n", + "PolygonWKT_Pix | \n", + "Confidence | \n", + "
---|---|---|---|---|
0 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "0 | \n", + "POLYGON ((0.00 712.83, 158.37 710.28, 160.59 6... | \n", + "1 | \n", + "
1 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "1 | \n", + "POLYGON ((665.82 0.00, 676.56 1.50, 591.36 603... | \n", + "1 | \n", + "
2 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "0 | \n", + "POLYGON ((182.62 324.15, 194.25 323.52, 197.97... | \n", + "1 | \n", + "
3 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "1 | \n", + "POLYGON ((92.99 96.94, 117.20 99.64, 114.72 12... | \n", + "1 | \n", + "
4 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "2 | \n", + "POLYGON ((0.82 29.96, 3.48 40.71, 2.80 51.00, ... | \n", + "1 | \n", + "
\n", + " | ImageId | \n", + "BuildingId | \n", + "PolygonWKT_Pix | \n", + "PolygonWKT_Geo | \n", + "
---|---|---|---|---|
0 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "0 | \n", + "POLYGON ((476.88 884.61, 485.59 877.64, 490.50... | \n", + "1 | \n", + "
1 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "1 | \n", + "POLYGON ((459.45 858.97, 467.41 853.09, 463.37... | \n", + "1 | \n", + "
2 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "2 | \n", + "POLYGON ((407.34 754.17, 434.90 780.55, 420.27... | \n", + "1 | \n", + "
3 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "3 | \n", + "POLYGON ((311.00 760.22, 318.38 746.78, 341.02... | \n", + "1 | \n", + "
4 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "4 | \n", + "POLYGON ((490.49 742.67, 509.81 731.14, 534.12... | \n", + "1 | \n", + "
\n", + " | F1Score | \n", + "FalseNeg | \n", + "FalsePos | \n", + "Precision | \n", + "Recall | \n", + "TruePos | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "1.0 | \n", + "0 | \n", + "0 | \n", + "1.0 | \n", + "1.0 | \n", + "2319 | \n", + "
\n", + " | F1Score | \n", + "FalseNeg | \n", + "FalsePos | \n", + "Precision | \n", + "Recall | \n", + "TruePos | \n", + "imageID | \n", + "iou_field | \n", + "nadir-category | \n", + "
---|---|---|---|---|---|---|---|---|---|
0 | \n", + "1.0 | \n", + "0 | \n", + "0 | \n", + "1.0 | \n", + "1.0 | \n", + "80 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "iou_score | \n", + "Nadir | \n", + "
1 | \n", + "1.0 | \n", + "0 | \n", + "0 | \n", + "1.0 | \n", + "1.0 | \n", + "112 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "iou_score | \n", + "Nadir | \n", + "
2 | \n", + "1.0 | \n", + "0 | \n", + "0 | \n", + "1.0 | \n", + "1.0 | \n", + "72 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "iou_score | \n", + "Nadir | \n", + "
3 | \n", + "1.0 | \n", + "0 | \n", + "0 | \n", + "1.0 | \n", + "1.0 | \n", + "1 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "iou_score | \n", + "Nadir | \n", + "
4 | \n", + "1.0 | \n", + "0 | \n", + "0 | \n", + "1.0 | \n", + "1.0 | \n", + "52 | \n", + "Atlanta_nadir8_catid_10300100023BC100_743501_3... | \n", + "iou_score | \n", + "Nadir | \n", + "