Skip to content

gdslab/leaf-on-generator

Repository files navigation

leaf-on-generator

Running locally with Docker Compose

  1. Copy test_oct2_.h5 to the backend/app/ml directory.

  2. Copy best_naip_unet_model.h5 to the backend/app/ml directory.

  3. Rename .backend.env.example to .backend.env. Environment settings:

  • AOI_AREA_LIMIT (integer): Specifies the maximum allowable user-drawn area in square meters.
  • SECRET_KEY (string): Change to your own unique, strong secret key.
  1. Rename .env.development.example to .env.development. Environment settings:
  • VITE_AOI_AREA_LIMIT (integer): Specifies the maximum allowable user-drawn area in square meters. Should match limit set on backend.
  • VITE_MAPBOX_ACCESS_TOKEN (string): Mapbox access token for displaying basemap.

Run the following commands from the root repo directory.

  1. Build the frontend and backend images by running:
docker compose build
  1. Start the containers in the background by running:
docker compose up -d
  1. Access the application in your browser at http://localhost:8001.

  2. Stop the containers by running:

docker compose down

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors