Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.6%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: NASA-IMPACT
  • License: other
  • Language: Jupyter Notebook
  • Default Branch: master
  • Size: 420 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 2 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License Citation

README.md

HLS Foundation model in Google Cloud Platform Vertex AI

This repo deploys the recently published finetuned models based on Harmonized Landsat and Sentinel-2 (HLS) into Google Cloud Platform (GCP)'s Vertex AI. We host the models in Vertex AI's endpoint.

Steps to deploy:

Note: These steps are also presented in the notebook

  1. Clone this repository git clone https://github.com/nasa-impact/hls-foundation-vertexai.git
  2. Change directory into the cloned repository cd hls-foundation-vertexai
  3. Initialize gcloud
  4. Install required packages: ``` # Required in Docker serving container ! pip3 install -U -r requirements.txt -q --user

For local FastAPI development and running

! pip3 install -U "uvicorn[standard]>=0.12.0,<0.14.0" fastapi~=0.63 -q --user

Vertex SDK for Python

! pip3 install --upgrade --quiet google-cloud-aiplatform --user 5. Check to see if gcloud configuration is done properly.

List configuration

! gcloud config list

List projects

! gcloud projects list 6. Use GCP code build to create and push new artifact to be used in vertex AI

Replace with one of the project ids from above.

! gcloud builds submit --region=us-central1 --tag=us-central1-docker.pkg.dev//hls-foundation-vertexai/inference 7. Register artifact as model in vertex AI (Please use notebooks/colab from here on) from google.cloud import aiplatform

model = aiplatform.Model.upload( displayname='hls-inference', servingcontainerimageuri="us-central1-docker.pkg.dev//hls-foundation-vertexai/inference", ) 8. Create new vertex AI endpoint endpoint = model.deploy(machinetype="n1-standard-4", acceleratortype='NVIDIATESLAV100', acceleratorcount=1) endpoint.todict()['deployedModels'][0]['id'] 9. Create test data %%writefile test.json { "instances":{"date":"2023-08-13","boundingbox":[-156.81605703476012,20.69675592885614,-156.41605703476014,21.096755928856137], "modelid": "burn_scars"}, }

``` 10. Test endpoint

Note: Replace all with your project id, and with the output from step 8.

```

Get inference from the deployed endpoint. Copy over the endpoint id from above and replace , and project id from about to replace

! export ENDPOINTID=<ENDPOINTID>; export PROJECTID=<PROJECTID>; export INPUTDATAFILE="test.json"; curl \ -X POST \ -H "Authorization: Bearer $(gcloud auth print-access-token)" \ -H "Content-Type: application/json" \ https://us-central1-aiplatform.googleapis.com/v1/projects/${PROJECTID}/locations/us-central1/endpoints/${ENDPOINTID}:predict \ -d "@${INPUTDATAFILE}" ```

Owner

  • Name: Inter Agency Implementation and Advanced Concepts
  • Login: NASA-IMPACT
  • Kind: organization
  • Email: esds.dsig@gmail.com

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Gurung"
  given-names: "Iksha"
  orcid: "https://orcid.org/0000-0001-5124-8856"
- family-names: "Ramasubramanian"
  given-names: "Muthukumaran"
  orcid: "https://orcid.org/0000-0001-5293-8349"
- family-names: "Ramasubramanian"
  given-names: "Muthukumaran"
  orcid: "https://orcid.org/0000-0001-5293-8349"
- family-names: "Bhandari"
  given-names: "Biplov"
  orcid: "https://orcid.org/0000-0001-6169-8236"
- family-names: "Mayer"
  given-names: "Timothy"
- family-names: "Maskey"
  given-names: "Manil"
  orcid: "https://orcid.org/0000-0002-5087-6903"
- family-names: "Ramachandran"
  given-names: "Rahul"
  orcid: "https://orcid.org/0000-0002-0647-1941"
title: "hls-foundation-vertexai"
version: 0.0.1
date-released: 2023-10-05
url: "https://github.com/NASA-IMPACT/hls-foundation-vertexai"

GitHub Events

Total
Last Year

Dependencies

.github/workflows/lint.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
  • wearerequired/lint-action v1 composite
Dockerfile docker
  • nvidia/cuda 11.5.2-base-ubuntu20.04 build
code/setup.py pypi
  • einops *
  • imagecodecs *
  • mmsegmentation ==0.30.0
  • rasterio *
  • tensorboard *
  • tifffile *
  • timm ==0.4.12
  • urllib3 ==1.26.12
pyproject.toml pypi
requirements.txt pypi
  • Pillow ==9.4.0
  • boto3 *
  • fastapi *
  • geojson *
  • geopandas *
  • google-cloud-aiplatform *
  • huggingface_hub *
  • joblib *
  • langchain *
  • morecantile *
  • numpy *
  • openai *
  • opencage *
  • opencv-python *
  • pydantic ==1.10.11
  • pygeos *
  • rio-cogeo *
  • scikit-image *
  • scipy *
  • shapely *
  • starlette *
  • uvicorn *