Spaces:
Runtime error
Runtime error
bills
commited on
Commit
•
51911d0
1
Parent(s):
5dfcd99
Added some changes
Browse files- __pycache__/multiapp.cpython-37.pyc +0 -0
- apps/__pycache__/home.cpython-37.pyc +0 -0
- apps/home.py +16 -7
- apps/image/result.png +0 -0
- multiapp.py +4 -13
__pycache__/multiapp.cpython-37.pyc
CHANGED
Binary files a/__pycache__/multiapp.cpython-37.pyc and b/__pycache__/multiapp.cpython-37.pyc differ
|
|
apps/__pycache__/home.cpython-37.pyc
CHANGED
Binary files a/apps/__pycache__/home.cpython-37.pyc and b/apps/__pycache__/home.cpython-37.pyc differ
|
|
apps/home.py
CHANGED
@@ -11,18 +11,20 @@ from streamlit_folium import folium_static
|
|
11 |
def app():
|
12 |
st.write("# Welcome to Ship Detection Application! :satellite:")
|
13 |
st.markdown(
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
|
19 |
-
|
20 |
|
21 |
-
|
22 |
-
|
23 |
|
24 |
"""
|
25 |
)
|
|
|
|
|
26 |
ais = pd.read_csv("https://raw.githubusercontent.com/bills1912/marin-vessels-detection/main/data/MarineTraffic_VesselExport_2022-11-25.csv")
|
27 |
ais_jakarta = ais[ais['Destination Port'] == 'JAKARTA']
|
28 |
ais_list = ais_jakarta.values.tolist()
|
@@ -38,3 +40,10 @@ def app():
|
|
38 |
ais_data.add_child(mCluster.add_child(folium.Marker(location=[i[10], i[11]], popup=popup, icon=folium.Icon(color="black", icon="ship", prefix="fa"))))
|
39 |
jakarta_vessels.add_child(ais_data)
|
40 |
folium_static(jakarta_vessels, width=1100, height=700)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
def app():
|
12 |
st.write("# Welcome to Ship Detection Application! :satellite:")
|
13 |
st.markdown(
|
14 |
+
"""
|
15 |
+
This application is build based on YOLOv5 with extral large model. User just
|
16 |
+
upload an image, and press the 'Predict' button to make a prediction base on
|
17 |
+
a training model before.
|
18 |
|
19 |
+
### For more information, please visit:
|
20 |
|
21 |
+
- Check out [my github](https://github.com/bills1912)
|
22 |
+
- Jump into YOLOv5 [documentation](https://docs.ultralytics.com/)
|
23 |
|
24 |
"""
|
25 |
)
|
26 |
+
|
27 |
+
st.write("## Location of Ship in Tanjung Priok Port 2022")
|
28 |
ais = pd.read_csv("https://raw.githubusercontent.com/bills1912/marin-vessels-detection/main/data/MarineTraffic_VesselExport_2022-11-25.csv")
|
29 |
ais_jakarta = ais[ais['Destination Port'] == 'JAKARTA']
|
30 |
ais_list = ais_jakarta.values.tolist()
|
|
|
40 |
ais_data.add_child(mCluster.add_child(folium.Marker(location=[i[10], i[11]], popup=popup, icon=folium.Icon(color="black", icon="ship", prefix="fa"))))
|
41 |
jakarta_vessels.add_child(ais_data)
|
42 |
folium_static(jakarta_vessels, width=1100, height=700)
|
43 |
+
|
44 |
+
st.markdown(
|
45 |
+
"""
|
46 |
+
## Results Explanation from Detection
|
47 |
+
![Results of detction](apps/image/result.png "test")
|
48 |
+
"""
|
49 |
+
)
|
apps/image/result.png
ADDED
![]() |
multiapp.py
CHANGED
@@ -52,7 +52,7 @@ class MultiApp:
|
|
52 |
functions = [a["function"] for a in self.apps]
|
53 |
default_radio = titles.index(app_state["page"]) if "page" in app_state else 0
|
54 |
|
55 |
-
st.sidebar.title("
|
56 |
|
57 |
title = st.sidebar.radio("Go To", titles, index=default_radio, key="radio")
|
58 |
|
@@ -62,19 +62,10 @@ class MultiApp:
|
|
62 |
st.experimental_set_query_params(**app_state)
|
63 |
functions[titles.index(title)]()
|
64 |
|
65 |
-
st.sidebar.title("Contribute")
|
66 |
-
st.sidebar.info(
|
67 |
-
"This is an open source project and you are very welcome to contribute your "
|
68 |
-
"comments, questions, resources and apps as "
|
69 |
-
"[issues](https://github.com/giswqs/streamlit-geospatial/issues) or "
|
70 |
-
"[pull requests](https://github.com/giswqs/streamlit-geospatial/pulls) "
|
71 |
-
"to the [source code](https://github.com/giswqs/streamlit-geospatial). "
|
72 |
-
)
|
73 |
st.sidebar.title("About")
|
74 |
st.sidebar.info(
|
75 |
"""
|
76 |
-
This
|
77 |
-
|
78 |
-
|
79 |
-
"""
|
80 |
)
|
|
|
52 |
functions = [a["function"] for a in self.apps]
|
53 |
default_radio = titles.index(app_state["page"]) if "page" in app_state else 0
|
54 |
|
55 |
+
st.sidebar.title("List of Menu")
|
56 |
|
57 |
title = st.sidebar.radio("Go To", titles, index=default_radio, key="radio")
|
58 |
|
|
|
62 |
st.experimental_set_query_params(**app_state)
|
63 |
functions[titles.index(title)]()
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
st.sidebar.title("About")
|
66 |
st.sidebar.info(
|
67 |
"""
|
68 |
+
This [dashboard](https://huggingface.co/spaces/billsar1912/YOLOv5x6-marine-vessels-detection?__theme=dark&page=Home) is maintain by Bill Van Ricardo Zalukhu.
|
69 |
+
And this dashboard is connected to [Big Data STIS](https://bigdata.stis.ac.id/ship-detection/), so check another project from Big Data STIS [here](https://bigdata.stis.ac.id).
|
70 |
+
"""
|
|
|
71 |
)
|