inie2003 commited on
Commit
89f1741
·
verified ·
1 Parent(s): 5c310ce

added netherlands and UK

Browse files
Files changed (1) hide show
  1. app.py +17 -11
app.py CHANGED
@@ -13,19 +13,22 @@ AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID")
13
  AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
14
 
15
  # Predefined list of datasets
16
- datasets = ["WayveScenes", "MajorTom-Germany"]
17
  description = {
18
  "WayveScenes": "A large-scale dataset featuring diverse urban driving scenes, captured from vehicles to advance AI perception and navigation in complex environments.",
19
- "MajorTom-Germany": "A geospatial dataset containing satellite imagery from across Germany, designed for tasks like land-use classification, environmental monitoring, and earth observation analytics."
 
 
20
  }
21
  selection = {
22
  'WayveScenes': [1, 8],
23
- "MajorTom-Germany": [1, 1]
 
 
24
  }
25
- folder_path_dict = {
26
- "WayveScenes" : 'WayveScenes/',
27
- "MajorTom-Germany": "MajorTom-Europe/"
28
- }
29
  # AWS S3 bucket name
30
  bucket_name = "datasets-quasara-io"
31
 
@@ -47,8 +50,11 @@ def main():
47
 
48
  # Select dataset from dropdown
49
  dataset_name = st.selectbox("Select Dataset", datasets)
50
-
51
- folder_path = folder_path_dict[dataset_name]
 
 
 
52
 
53
  st.caption(description[dataset_name])
54
 
@@ -62,12 +68,12 @@ def main():
62
  st.text("Small Object Search Disabled")
63
  st.session_state.dataset_number = st.selectbox("Select Subset of Data", list(range(1, selection[dataset_name][0] + 1)))
64
  st.text(f"You have selected Main Dataset {st.session_state.dataset_number}")
65
- if 'MajorTom' in dataset_name:
66
  df, total_rows = load_dataset_with_limit(dataset_name, st.session_state.dataset_number, st.session_state.search_in_small_objects, limit=1)
67
  dataset_limit = st.slider("Size of Dataset to be searched from", min_value=1000, max_value=total_rows, value=1500)
68
  st.text(f'The smaller the dataset the faster the search will work.')
69
  else:
70
- dataset_limit = st.slider("Size of Dataset to be searched from", min_value=1000, max_value=30000, value=10000)
71
  st.text(f'The smaller the dataset the faster the search will work.')
72
 
73
  # Load dataset with limit only if not already loaded
 
13
  AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
14
 
15
  # Predefined list of datasets
16
+ datasets = ["WayveScenes", "MajorTom-Germany", "MajorTom-Netherlands"]
17
  description = {
18
  "WayveScenes": "A large-scale dataset featuring diverse urban driving scenes, captured from vehicles to advance AI perception and navigation in complex environments.",
19
+ "MajorTom-Germany": "A geospatial dataset containing satellite imagery from across Germany, designed for tasks like land-use classification, environmental monitoring, and earth observation analytics.",
20
+ "MajorTom-Netherlands": "A geospatial dataset containing satellite imagery from across Netherlands, designed for tasks like land-use classification, environmental monitoring, and earth observation analytics.",
21
+ "MajorTom-UK" :"A geospatial dataset containing satellite imagery from across the United Kingdom, designed for tasks like land-use classification, environmental monitoring, and earth observation analytics."
22
  }
23
  selection = {
24
  'WayveScenes': [1, 8],
25
+ "MajorTom-Germany": [1, 1],
26
+ "MajorTom-Netherlands": [1,1],
27
+ "MajorTom-UK": [1,1]
28
  }
29
+
30
+
31
+
 
32
  # AWS S3 bucket name
33
  bucket_name = "datasets-quasara-io"
34
 
 
50
 
51
  # Select dataset from dropdown
52
  dataset_name = st.selectbox("Select Dataset", datasets)
53
+ #For Loading from Box
54
+ if 'MajorTom' in dataset_name:
55
+ folder_path = MajorTom-Europe/
56
+ else:
57
+ folder_path = f'{dataset_name}/'
58
 
59
  st.caption(description[dataset_name])
60
 
 
68
  st.text("Small Object Search Disabled")
69
  st.session_state.dataset_number = st.selectbox("Select Subset of Data", list(range(1, selection[dataset_name][0] + 1)))
70
  st.text(f"You have selected Main Dataset {st.session_state.dataset_number}")
71
+ if 'MajorTom' in dataset_name and st.session_state.search_in_small_objects == False:
72
  df, total_rows = load_dataset_with_limit(dataset_name, st.session_state.dataset_number, st.session_state.search_in_small_objects, limit=1)
73
  dataset_limit = st.slider("Size of Dataset to be searched from", min_value=1000, max_value=total_rows, value=1500)
74
  st.text(f'The smaller the dataset the faster the search will work.')
75
  else:
76
+ dataset_limit = st.slider("Size of Dataset to be searched from", min_value=1000, max_value=100000, value=30000)
77
  st.text(f'The smaller the dataset the faster the search will work.')
78
 
79
  # Load dataset with limit only if not already loaded