fieldsoftheworld / ftw-baselines

Code for running baseline models/experiments with the Fields of The World dataset
https://fieldsofthe.world/
MIT License
58 stars 4 forks source link

Cli updates #24

Closed cholmes closed 1 month ago

cholmes commented 1 month ago

Refactoring CLI commands a bit as proposed in #21

% ftw                                               

Usage: ftw [OPTIONS] COMMAND [ARGS]...

  Fields of The World (FTW) - Command Line Interface

Options:
  --help  Show this message and exit.

Commands:
  data       Downloading, unpacking, and preparing the FTW dataset.
  inference  Running inference on satellite images plus data prep.
  model      Training and testing FTW models.
% ftw data
Usage: ftw data [OPTIONS] COMMAND [ARGS]...

  Downloading, unpacking, and preparing the FTW dataset.

Options:
  --help  Show this message and exit.

Commands:
  download  Download the FTW dataset.
  unpack    Unpack the downloaded FTW dataset.
% ftw inference
Usage: ftw inference [OPTIONS] COMMAND [ARGS]...

  Running inference on satellite images plus data prep.

Options:
  --help  Show this message and exit.

Commands:
  download  Download 2 Sentinel-2 scenes & stack them in a single file...
  run       Run inference on the stacked satellite images

Note I accidentally based this off of polygonize branch from #19. But my next step is to refactor that to its own command and I need to run now, so I'm just going to leave it that way.