earthpulse / eotdl

Earth Observation Training Datasets
https://eotdl.com
MIT License
18 stars 6 forks source link

Premium Offer #194

Open achtsnits opened 5 months ago

achtsnits commented 5 months ago
achtsnits commented 5 months ago

we did the setup for Juan as our "first premium user" now (note: we needed username, email as well as eotdl-token for the setup upfront!)

example call:

curl -X POST https://hub.api.eotdl.com/services/eoxhub-gateway/eotdl/pygeoapi/processes/execute-notebook/execution \
     --header 'Content-Type: application/json' \
     -H "Authorization: Token <JupyterHub API Token>" \
     --data-raw '{"inputs": {
  "notebook": "team-extra/EOTDLDataset_Training.ipynb",
  "parameters_json": {"max_epochs": 2, "dataset_name": "EuroSAT-Q1-small"}
}}'

note the variants like max_epochs and dataset_name which are rendered in the notebook

image

(see papermill documentation https://papermill.readthedocs.io/en/latest/usage-parameterize.html)

now the specified notebook is executed on a GPU node -> this execution is fully tracked and all necessary info like the executed rendered notebook, logs and downloaded data are collected

image

the current example notebook still must be extended to create and store e.g. a model in case of training!

note: based on the JupyterHub API token from Juan the call is automatically routed to the correct endpoint dedicated to Juan!

juansensio commented 5 months ago

That looks great, thanks. I'll play with it and let you know how it goes. I'll update the notebook to include the final step to ingest the model to the EOTDL.