MapGenerator / README.md
PabloVD's picture
Include app and source code
bf74b80

A newer version of the Gradio SDK is available: 5.21.0

Upgrade
metadata
title: MapGenerator
emoji: πŸŒ–
colorFrom: purple
colorTo: green
sdk: gradio
sdk_version: 5.5.0
app_file: app.py
pinned: false
license: mit
short_description: Generate procedural geographic maps from random fields

MapGenerator

Generate procedural geographic maps from random fields.

Map generation

The process of map generation is as follows:

  1. Generate a random field, choosing from the list of available random fields
  2. Normalize the field between 0 and 1
  3. Smooth the field with a gaussian filter
  4. Retain only the mainland above a certain threshold

Random fields

The available random fields are:

  • gauss: Random gaussian field, with a given power spectrum, computed using the package powerbox
  • perlin: Perlin noise, computed using the package noise
  • warped_perlin: Perlin noise with domain warping, computed using the package noise
  • cos: Sinusoidal noise (to be improved)
  • fbm: Fractional Brownian Field

See complete source code here

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference