Skip to content

tmcclintock/LandscapeGenerator

Repository files navigation

LandscapeGenerator Build Status License: MIT Coverage Status

Generate synthetic landscape images at low resolution. For use in diagnosing ML systems.

Installation

To install use

pip install -r requirements.txt
python setup.py install

The requirements are:

  • numpy
  • scipy
  • pytest (for testing)
  • notebook (for notebooks)
  • matplotlib (for notebooks)

Usage

See the example notebook in notebooks/Example.ipynb. Landscapes are constructed by adding features to the scene and then calling the generate() function. This function uses an RNG to assign pixel colors following the rules of the features in the landscape. The result are things like:

alt text

This example landscape contains some sky features, a gradient in the sky to invoke a sunset, the sun, and a few dozen trees. The objects in the scene follow heuristics, but the pixel values themselves are the result of an RNG. Hence, landscape scenes like this can be used to double check that an ML algorithm is learning the image correctly.

About

Generate synthetic landscape images at super low resolution. For use in diagnosing ML systems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published