Skip to content

Commit

Permalink
Merge pull request #384 from dphogan/docs_preprocessing
Browse files Browse the repository at this point in the history
Solaris Multimodal Preprocessing Library tutorial
  • Loading branch information
dphogan committed Jul 16, 2020
2 parents 2d7260a + 68fc3dd commit 4df1cbc
Show file tree
Hide file tree
Showing 21 changed files with 1,102 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ When a new version of `solaris` is released, all of the changes in the Unrelease

### Added
- 20200701, dphogan: Added multimodal preprocessing subpackage (#360)
- 20200716, dphogan: Added three-part tutorial for preprocessing subpackage
### Removed
### Changed
### Fixed
Expand Down
3 changes: 3 additions & 0 deletions docs/tutorials/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ the tutorials below.
* `Converting pixel masks to vector labels <notebooks/api_mask_to_vector.ipynb>`_
* `Scoring your model's performance with the solaris Python API <notebooks/api_evaluation_tutorial.ipynb>`_
* `Creating COCO-formatted datasets <notebooks/api_coco_tutorial.ipynb>`_
* `Preprocessing Part 1: Pipelines <notebooks/preprocessing_pipelines.ipynb>`_
* `Preprocessing Part 2: Branching <notebooks/preprocessing_branching.ipynb>`_
* `Preprocessing Part 3: SAR <notebooks/preprocessing_sar.ipynb>`_

Reference
=========
Expand Down
266 changes: 266 additions & 0 deletions docs/tutorials/notebooks/preprocessing_branching.ipynb

Large diffs are not rendered by default.

340 changes: 340 additions & 0 deletions docs/tutorials/notebooks/preprocessing_pipelines.ipynb

Large diffs are not rendered by default.

479 changes: 479 additions & 0 deletions docs/tutorials/notebooks/preprocessing_sar.ipynb

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added solaris/data/preproc_tutorial/ms1.tif
Binary file not shown.
Binary file added solaris/data/preproc_tutorial/ms2.tif
Binary file not shown.
Binary file added solaris/data/preproc_tutorial/ms3.tif
Binary file not shown.
Binary file added solaris/data/preproc_tutorial/pan1.tif
Binary file not shown.
Binary file added solaris/data/preproc_tutorial/pan2.tif
Binary file not shown.
Binary file added solaris/data/preproc_tutorial/pan3.tif
Binary file not shown.
Binary file added solaris/data/preproc_tutorial/rgb_unmasked.tif
Binary file not shown.
Binary file added solaris/data/preproc_tutorial/sar_hh.tif
Binary file not shown.
Binary file added solaris/data/preproc_tutorial/sar_hv.tif
Binary file not shown.
Binary file added solaris/data/preproc_tutorial/sar_masked.tif
Binary file not shown.
Binary file added solaris/data/preproc_tutorial/sar_vh.tif
Binary file not shown.
Binary file added solaris/data/preproc_tutorial/sar_vv.tif
Binary file not shown.
26 changes: 13 additions & 13 deletions solaris/preproc/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,19 +127,19 @@ def transform(self, pin):
return result


class DataFrameToMask(PipeSegment):
"""
Given a GeoPandas GeoDataFrame and an Image-class image,
convert the DataFrame to the corresponding Boolean mask
"""
pass


class MaskToDataFrame(PipeSegment):
"""
Given a boolean mask, convert it to a GeoPandas GeoDataFrame of polygons.
"""
pass
#class DataFrameToMask(PipeSegment):
# """
# Given a GeoPandas GeoDataFrame and an Image-class image,
# convert the DataFrame to the corresponding Boolean mask
# """
# pass
#
#
#class MaskToDataFrame(PipeSegment):
# """
# Given a boolean mask, convert it to a GeoPandas GeoDataFrame of polygons.
# """
# pass


class DataFramePixelCoords(PipeSegment):
Expand Down

0 comments on commit 4df1cbc

Please sign in to comment.