Paolo-Fraccaro
commited on
Commit
•
2b979cd
1
Parent(s):
5af1287
fix bug
Browse files
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
|
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=["
|
214 |
-
|
215 |
-
|
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,
|