https://github.com/azavea/raster-vision-genetic-programming-plugin
A plugin to generate map algebra formulas using genetic programming and Raster Vision
https://github.com/azavea/raster-vision-genetic-programming-plugin
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.5%) to scientific vocabulary
Repository
A plugin to generate map algebra formulas using genetic programming and Raster Vision
Basic Info
- Host: GitHub
- Owner: azavea
- License: other
- Language: Python
- Default Branch: master
- Size: 90.8 KB
Statistics
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Raster Vision DEAP Genetic Programming Plugin
This plugin uses DEAP to implement a semantic segmentation backend plugin for Raster Vision. The plugin operates by using Genetic Programming to evolve raster algebra formulas to perform specific detection tasks.
Setup and Requirements
Docker
You'll need docker (preferably version 18 or above) installed. After cloning this repo, to build the Docker images, run the following command:
```shell
docker/build ```
Before running the container, set an environment variable to a local directory in which to store data. ```shell
export RASTERVISIONDATADIR="/path/to/data"
To run a Bash console in the Docker container, invoke:shell docker/run ``This will mount the following local directories to directories inside the container: *$RASTERVISIONDATADIR -> /opt/data/*genetic/ -> /opt/src/genetic/*examples/ -> /opt/src/examples/`
Debug Mode
For debugging, it can be helpful to use a local copy of the Raster Vision source code rather than the version baked into the Docker image. To do this, you can set the RASTER_VISION_REPO environment variable to the location of the main repo on your local filesystem. If this is set, docker/run will mount $RASTER_VISION_REPO/rastervision to /opt/src/rastervision inside the container. You can then modify your local copy of Raster Vision in order to debug experiments running inside the container.
Setup profile
Using the plugin requires making a Raster Vision profile which points to the location of the plugin module. You can make such a profile by creating a file at ~/.rastervision/plugin containing something like the following.
[PLUGINS]
files=[]
modules=["genetic.semantic_segmentation_backend_config"]
Running an experiment
To test the plugin, you can run an experiment using the SpaceNet Vegas Buildings dataset. A test run can be executed locally using something like the following. The -p plugin flag says to use the plugin profile created above.
export RASTER_VISION_REPO=/path/to/raster-vision
export RASTER_VISION_DATA_DIR=/path/to/SpaceNet_Buildings_Competition_Round2_Sample
export RAW_URI="/opt/data/AOI_2_Vegas_Train"
export PROCESSED_URI="/opt/data/genetic/vegas/processed-data"
export ROOT_URI="/opt/data/genetic/vegas/local-output"
rastervision -p plugin run local -e examples.semantic_segmentation.vegas_buildings -a raw_uri $RAW_URI -a processed_uri $PROCESSED_URI -a root_uri $ROOT_URI -a test True --splits 2
The train output folder will then contain a text file with the best-performing formula for calculating the segmentation task.
Owner
- Name: Azavea
- Login: azavea
- Kind: organization
- Location: Philadelphia, PA
- Website: https://www.azavea.com
- Repositories: 383
- Profile: https://github.com/azavea
Geospatial software engineering for good
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- ubuntu 18.04 build