Magic wand and Segment Anything Model (SAM2) annotation tool for machine learning training data.
This application consumes a service API from samgeo-service.
The steps below will walk you through setting up your own instance of the project.
To set up the development environment for this website, you'll need to install the following on your system:
If you use nvm
, activate the desired Node version: v16.14.2
nvm install
Install Node modules:
yarn install
Ds-Anotate tool can be used the online version with you custom values:
- classes: List of classes for labeling.
- name: Project name
- imagery_type: Type of aerial Imagery:
tms
orwms
. - imagery_url: Url for imagery service.
- project_bbox: Location where you need to focus on.
Example:
classes=farm,00FFFF|tree,FF00FF
project=Farms_mapping
imagery_type=tms
imagery_url=https://gis.apfo.usda.gov/arcgis/rest/services/NAIP/USDA_CONUS_PRIME/ImageServer/tile/{z}/{y}/{x}?blankTile=false
project_bbox=-90.319317,38.482965,-90.247220,38.507418
yarn serve
Compiles the sass files, javascript, and launches the server making the site available at http://localhost:9000/
The system will watch files and execute tasks whenever one of them changes.
The site will automatically refresh since it is bundled with livereload.
To prepare the app for deployment run:
yarn install
yarn start