Paolo-Fraccaro commited on
Commit
2b979cd
1 Parent(s): 5af1287
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -192,7 +192,7 @@ with gr.Blocks() as demo:
192
 
193
  gr.Markdown(value='# Prithvi burn scars detection')
194
  gr.Markdown(value='''Prithvi is a first-of-its-kind temporal Vision transformer pretrained by the IBM and NASA team on continental US Harmonised Landsat Sentinel 2 (HLS) data. This demo showcases how the model was finetuned to detect water at a higher resolution than it was trained on (i.e. 10m versus 30m) using Sentinel 2 imagery from on the [sen1floods11 dataset](https://github.com/cloudtostreet/Sen1Floods11). More detailes can be found [here](https://huggingface.co/ibm-nasa-geospatial/Prithvi-100M-sen1floods11).\n
195
- The user needs to provide an HLS geotiff image, including the following channels in reflectance units multiplied by 10,000 (e.g. to save on space): Blue, Green, Red, Narrow NIR, SWIR, SWIR 2.
196
  ''')
197
  with gr.Row():
198
  with gr.Column():
@@ -210,9 +210,9 @@ with gr.Blocks() as demo:
210
  btn.click(fn=func, inputs=inp, outputs=[out1, out2])
211
 
212
  with gr.Row():
213
- gr.Examples(examples=["subsetted_512x512_HLS.S30.T10TGS.2020245.v1.4_merged.tif",
214
- "subsetted_512x512_HLS.S30.T10TGS.2018285.v1.4_merged.tif",
215
- "subsetted_512x512_HLS.S30.T10UGV.2020218.v1.4_merged.tif"],
216
  inputs=inp,
217
  outputs=[out1, out2],
218
  preprocess=preprocess_example,
 
192
 
193
  gr.Markdown(value='# Prithvi burn scars detection')
194
  gr.Markdown(value='''Prithvi is a first-of-its-kind temporal Vision transformer pretrained by the IBM and NASA team on continental US Harmonised Landsat Sentinel 2 (HLS) data. This demo showcases how the model was finetuned to detect water at a higher resolution than it was trained on (i.e. 10m versus 30m) using Sentinel 2 imagery from on the [sen1floods11 dataset](https://github.com/cloudtostreet/Sen1Floods11). More detailes can be found [here](https://huggingface.co/ibm-nasa-geospatial/Prithvi-100M-sen1floods11).\n
195
+ The user needs to provide a Sentinel 2 image with all the 12 bands (in the usual Sentinel 2) order in reflectance units multiplied by 10,000 (e.g. to save on space), with the code that is going to pull up Blue, Green, Red, Narrow NIR, SWIR, SWIR 2.
196
  ''')
197
  with gr.Row():
198
  with gr.Column():
 
210
  btn.click(fn=func, inputs=inp, outputs=[out1, out2])
211
 
212
  with gr.Row():
213
+ gr.Examples(examples=["Bolivia_432776_S2Hand.tif",
214
+ "Spain_7370579_S2Hand.tif",
215
+ "USA_430764_S2Hand.tif"],
216
  inputs=inp,
217
  outputs=[out1, out2],
218
  preprocess=preprocess_example,