Spaces:
Sleeping
Sleeping
add Poster references
Browse files- app.py +8 -1
- messis/messis.py +0 -1
- pages/2_Perform_Crop_Classification.py +2 -3
app.py
CHANGED
@@ -5,11 +5,18 @@ def main():
|
|
5 |
|
6 |
st.title("Messis πΎ - Crop Classification π")
|
7 |
|
8 |
-
st.write("Welcome to the Messis Crop Classification
|
9 |
|
10 |
st.page_link("app.py", label="Home", icon="π ")
|
11 |
st.page_link("pages/1_Select_Location.py", label="Select Location", icon="π")
|
12 |
st.page_link("pages/2_Perform_Crop_Classification.py", label="Perform Crop Classification", icon="π")
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
if __name__ == "__main__":
|
15 |
main()
|
|
|
5 |
|
6 |
st.title("Messis πΎ - Crop Classification π")
|
7 |
|
8 |
+
st.write("Welcome to the Messis Crop Classification demo. Use the sidebar to navigate between selecting the location you are interested in and performing crop classification.")
|
9 |
|
10 |
st.page_link("app.py", label="Home", icon="π ")
|
11 |
st.page_link("pages/1_Select_Location.py", label="Select Location", icon="π")
|
12 |
st.page_link("pages/2_Perform_Crop_Classification.py", label="Perform Crop Classification", icon="π")
|
13 |
|
14 |
+
st.markdown("""
|
15 |
+
---
|
16 |
+
### Ausstellung Bachelor-Diplomarbeiten
|
17 |
+
""")
|
18 |
+
|
19 |
+
st.page_link("https://docs.google.com/document/d/1pd_rAwvHLSp1ba_JUFa6wfdbPoU93l41u1OZl_40Noo/edit?usp=sharing", label="Referenzen Poster", icon="π")
|
20 |
+
|
21 |
if __name__ == "__main__":
|
22 |
main()
|
messis/messis.py
CHANGED
@@ -14,7 +14,6 @@ import json
|
|
14 |
|
15 |
from messis.prithvi import TemporalViTEncoder, ConvTransformerTokensToEmbeddingNeck, ConvTransformerTokensToEmbeddingBottleneckNeck
|
16 |
|
17 |
-
|
18 |
def safe_shape(x):
|
19 |
if isinstance(x, tuple):
|
20 |
# loop through tuple
|
|
|
14 |
|
15 |
from messis.prithvi import TemporalViTEncoder, ConvTransformerTokensToEmbeddingNeck, ConvTransformerTokensToEmbeddingBottleneckNeck
|
16 |
|
|
|
17 |
def safe_shape(x):
|
18 |
if isinstance(x, tuple):
|
19 |
# loop through tuple
|
pages/2_Perform_Crop_Classification.py
CHANGED
@@ -69,7 +69,7 @@ def perform_inference_step():
|
|
69 |
m = leafmap.Map(center=(lat, lon), zoom=10, draw_control=False)
|
70 |
|
71 |
# Perform inference
|
72 |
-
if st.
|
73 |
predictions = perform_inference(lon, lat, model, config, debug=True)
|
74 |
|
75 |
m.add_data(predictions,
|
@@ -86,8 +86,7 @@ def perform_inference_step():
|
|
86 |
url=presigned_url,
|
87 |
name="Sentinel-2 Satellite Imagery",
|
88 |
bands=selected_bands,
|
89 |
-
rescale=f"{vmin_vmax[selected_band][0]},{vmin_vmax[selected_band][1]}"
|
90 |
-
zoom_to_layer=True
|
91 |
)
|
92 |
|
93 |
# Show the POI on the map
|
|
|
69 |
m = leafmap.Map(center=(lat, lon), zoom=10, draw_control=False)
|
70 |
|
71 |
# Perform inference
|
72 |
+
if st.button("Perform Crop Classification", type="primary"):
|
73 |
predictions = perform_inference(lon, lat, model, config, debug=True)
|
74 |
|
75 |
m.add_data(predictions,
|
|
|
86 |
url=presigned_url,
|
87 |
name="Sentinel-2 Satellite Imagery",
|
88 |
bands=selected_bands,
|
89 |
+
rescale=f"{vmin_vmax[selected_band][0]},{vmin_vmax[selected_band][1]}"
|
|
|
90 |
)
|
91 |
|
92 |
# Show the POI on the map
|