flashstudio 0.1.6__tar.gz → 0.1.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of flashstudio might be problematic. Click here for more details.
- {flashstudio-0.1.6 → flashstudio-0.1.8}/PKG-INFO +2 -2
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/app.py +1 -1
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/components/sidebar.py +1 -1
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/components/styles.py +35 -30
- flashstudio-0.1.8/flashstudio/pages/dashboard/overview/metrics.py +33 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/data/download/tab.py +2 -2
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/data/helpers.py +110 -62
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/data/upload/tab.py +8 -12
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/data/verify/tab.py +3 -2
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/export/page.py +1 -1
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/export/weights/settings.py +12 -1
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/inference/model/tab.py +3 -1
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/inference/run/tab.py +3 -1
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/model/advanced/tab.py +2 -2
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/model/architecture/tab.py +1 -1
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/model/augment/tab.py +1 -1
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/model/hyperparams/tab.py +1 -1
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/launch/preflight.py +18 -7
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/launch/runner.py +18 -7
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/launch/tab.py +9 -5
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/page.py +7 -1
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio.egg-info/PKG-INFO +2 -2
- {flashstudio-0.1.6 → flashstudio-0.1.8}/pyproject.toml +2 -2
- flashstudio-0.1.6/flashstudio/pages/dashboard/overview/metrics.py +0 -66
- {flashstudio-0.1.6 → flashstudio-0.1.8}/README.md +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/README_PYPI.md +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/cli.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/components/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/components/project_manager.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/components/wizard.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/components/zone_drawer/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/constants.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/core/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/core/constants.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/launcher.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/dashboard/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/dashboard/_common.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/dashboard/overview/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/dashboard/overview/pipeline_status.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/dashboard/overview/project_banner.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/dashboard/overview/quick_actions.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/dashboard/overview/recent_runs.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/dashboard/overview/tab.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/dashboard/page.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/data/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/data/_common.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/data/download/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/data/page.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/data/preview/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/data/preview/tab.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/data/upload/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/data/verify/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/export/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/export/weights/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/export/weights/exporter.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/inference/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/inference/_common.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/inference/data/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/inference/data/tab.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/inference/model/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/inference/page.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/inference/run/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/inference/run/detection.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/inference/run/video.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/inference/solution/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/inference/solution/tab.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/model/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/model/_common.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/model/advanced/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/model/architecture/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/model/augment/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/model/hyperparams/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/model/page.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/model/utils/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/model/utils/config.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/_common.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/launch/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/launch/controls.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/launch/dialogs.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/monitor/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/monitor/checkpoints.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/monitor/curves.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/monitor/dashboard.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/monitor/gt_verification.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/monitor/log_viewer.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/monitor/parsers.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/monitor/run_meta.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/monitor/tab.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/pages/training/monitor/visualizations.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/utils/__init__.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/utils/config.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/utils/device.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/utils/filesystem.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/utils/jobs.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio/utils/training_hooks.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio.egg-info/SOURCES.txt +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio.egg-info/dependency_links.txt +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio.egg-info/entry_points.txt +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio.egg-info/requires.txt +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/flashstudio.egg-info/top_level.txt +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/setup.cfg +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/tests/test_app.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/tests/test_cli.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/tests/test_constants.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/tests/test_launcher.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/tests/test_pipeline_flow.py +0 -0
- {flashstudio-0.1.6 → flashstudio-0.1.8}/tests/test_save_dir_compat.py +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flashstudio
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.8
|
|
4
4
|
Summary: Interactive Training & Inference UI for FlashDet — runs on Google Colab
|
|
5
|
-
Author:
|
|
5
|
+
Author: FlashVision
|
|
6
6
|
License: Apache-2.0
|
|
7
7
|
Project-URL: Homepage, https://github.com/FlashVision/FlashStudio
|
|
8
8
|
Project-URL: Repository, https://github.com/FlashVision/FlashStudio
|
|
@@ -187,7 +187,7 @@ def _render_first_time_setup():
|
|
|
187
187
|
with col_info:
|
|
188
188
|
st.markdown("#### What's a Project?")
|
|
189
189
|
for item in ["Dataset management", "Model configuration", "Training runs", "Model exports", "Inference pipeline"]:
|
|
190
|
-
st.markdown(f'<span style="font-size:0.
|
|
190
|
+
st.markdown(f'<span style="font-size:0.88rem;color:#4B5563;">• {item}</span>', unsafe_allow_html=True)
|
|
191
191
|
|
|
192
192
|
|
|
193
193
|
if __name__ == "__main__":
|
|
@@ -77,7 +77,7 @@ def render_sidebar():
|
|
|
77
77
|
COLOR_WARNING if train_status == "Running" else (
|
|
78
78
|
COLOR_ERROR if train_status == "Failed" else COLOR_TEXT_SECONDARY))
|
|
79
79
|
st.markdown(
|
|
80
|
-
f'<div style="font-size:0.
|
|
80
|
+
f'<div style="font-size:0.82rem;color:{COLOR_TEXT_BODY};padding:0.1rem 0.5rem;line-height:1.9;">'
|
|
81
81
|
f'GPU: {gpu["name"][:GPU_NAME_TRUNCATE] if gpu["available"] else "CPU"}<br>'
|
|
82
82
|
f'Data: {(st.session_state.get("dataset_name") or "—")[:DATASET_NAME_TRUNCATE]}<br>'
|
|
83
83
|
f'Model: {st.session_state.get("model_arch", "Pico").replace("FlashDet-", "")}<br>'
|
|
@@ -25,8 +25,13 @@ def inject_custom_css():
|
|
|
25
25
|
padding: 0.8rem 1.5rem 0.5rem !important;
|
|
26
26
|
max-width: 1500px;
|
|
27
27
|
height: calc(100vh - 2rem) !important;
|
|
28
|
-
overflow:
|
|
28
|
+
overflow-y: auto !important;
|
|
29
|
+
overflow-x: hidden !important;
|
|
30
|
+
scrollbar-width: thin;
|
|
31
|
+
scrollbar-color: #D1D5DB transparent;
|
|
29
32
|
}
|
|
33
|
+
.main .block-container::-webkit-scrollbar { width: 4px; }
|
|
34
|
+
.main .block-container::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 2px; }
|
|
30
35
|
|
|
31
36
|
/* Allow internal scroll on specific containers */
|
|
32
37
|
.scrollable-panel {
|
|
@@ -60,8 +65,8 @@ def inject_custom_css():
|
|
|
60
65
|
}
|
|
61
66
|
|
|
62
67
|
section[data-testid="stSidebar"] .stButton > button {
|
|
63
|
-
font-size: 0.
|
|
64
|
-
padding: 0.
|
|
68
|
+
font-size: 0.92rem !important;
|
|
69
|
+
padding: 0.42rem 0.7rem !important;
|
|
65
70
|
border-radius: 6px !important;
|
|
66
71
|
text-align: left !important;
|
|
67
72
|
justify-content: flex-start !important;
|
|
@@ -101,7 +106,7 @@ def inject_custom_css():
|
|
|
101
106
|
}
|
|
102
107
|
|
|
103
108
|
div[data-testid="stMetric"] label {
|
|
104
|
-
font-size: 0.
|
|
109
|
+
font-size: 0.82rem !important;
|
|
105
110
|
text-transform: uppercase;
|
|
106
111
|
letter-spacing: 0.04em;
|
|
107
112
|
color: #6B7280 !important;
|
|
@@ -110,7 +115,7 @@ def inject_custom_css():
|
|
|
110
115
|
}
|
|
111
116
|
|
|
112
117
|
div[data-testid="stMetric"] div[data-testid="stMetricValue"] {
|
|
113
|
-
font-size: 1.
|
|
118
|
+
font-size: 1.25rem !important;
|
|
114
119
|
font-weight: 700;
|
|
115
120
|
color: #1A1A2E !important;
|
|
116
121
|
line-height: 1.3;
|
|
@@ -118,8 +123,8 @@ def inject_custom_css():
|
|
|
118
123
|
|
|
119
124
|
/* ═══════ BUTTONS ═══════ */
|
|
120
125
|
.main .stButton > button {
|
|
121
|
-
font-size: 0.
|
|
122
|
-
padding: 0.
|
|
126
|
+
font-size: 0.92rem !important;
|
|
127
|
+
padding: 0.35rem 0.7rem !important;
|
|
123
128
|
min-height: 0 !important;
|
|
124
129
|
border-radius: 6px;
|
|
125
130
|
transition: all 0.15s ease;
|
|
@@ -161,9 +166,9 @@ def inject_custom_css():
|
|
|
161
166
|
|
|
162
167
|
.stTabs [data-baseweb="tab"] {
|
|
163
168
|
font-weight: 500;
|
|
164
|
-
font-size: 0.
|
|
169
|
+
font-size: 0.95rem;
|
|
165
170
|
color: #6B7280;
|
|
166
|
-
padding: 0.
|
|
171
|
+
padding: 0.45rem 0.8rem;
|
|
167
172
|
}
|
|
168
173
|
|
|
169
174
|
.stTabs [aria-selected="true"] {
|
|
@@ -187,8 +192,8 @@ def inject_custom_css():
|
|
|
187
192
|
.main .stSelectbox > div > div,
|
|
188
193
|
.main .stTextInput > div > div > input,
|
|
189
194
|
.main .stNumberInput > div > div > input {
|
|
190
|
-
font-size: 0.
|
|
191
|
-
padding: 0.
|
|
195
|
+
font-size: 0.92rem !important;
|
|
196
|
+
padding: 0.32rem 0.5rem !important;
|
|
192
197
|
border-radius: 6px;
|
|
193
198
|
}
|
|
194
199
|
|
|
@@ -200,7 +205,7 @@ def inject_custom_css():
|
|
|
200
205
|
.main .stRadio label,
|
|
201
206
|
.main .stFileUploader label,
|
|
202
207
|
.main .stTextArea label {
|
|
203
|
-
font-size: 0.
|
|
208
|
+
font-size: 0.92rem !important;
|
|
204
209
|
margin-bottom: 0 !important;
|
|
205
210
|
}
|
|
206
211
|
|
|
@@ -209,15 +214,15 @@ def inject_custom_css():
|
|
|
209
214
|
.stSlider > div > div > div > div { background: #7C3AED !important; }
|
|
210
215
|
|
|
211
216
|
/* ═══════ HEADINGS ═══════ */
|
|
212
|
-
.main h1 { font-size: 1.
|
|
213
|
-
.main h2 { font-size: 1.
|
|
214
|
-
.main h3 { font-size:
|
|
215
|
-
.main h4 { font-size:
|
|
217
|
+
.main h1 { font-size: 1.5rem !important; margin: 0.15rem 0 !important; font-weight: 700; }
|
|
218
|
+
.main h2 { font-size: 1.25rem !important; margin: 0.15rem 0 !important; font-weight: 600; }
|
|
219
|
+
.main h3 { font-size: 1.1rem !important; margin: 0.1rem 0 !important; font-weight: 600; color: #1A1A2E; }
|
|
220
|
+
.main h4 { font-size: 1.0rem !important; margin: 0.1rem 0 !important; font-weight: 600; color: #374151; }
|
|
216
221
|
|
|
217
222
|
/* ═══════ EXPANDER ═══════ */
|
|
218
223
|
.streamlit-expanderHeader {
|
|
219
224
|
font-weight: 600;
|
|
220
|
-
font-size: 0.
|
|
225
|
+
font-size: 0.92rem;
|
|
221
226
|
padding: 0.3rem 0.5rem !important;
|
|
222
227
|
}
|
|
223
228
|
|
|
@@ -231,14 +236,14 @@ def inject_custom_css():
|
|
|
231
236
|
}
|
|
232
237
|
|
|
233
238
|
.step-item { text-align: center; flex: 1; }
|
|
234
|
-
.step-icon { font-size:
|
|
235
|
-
.step-label { font-size: 0.
|
|
239
|
+
.step-icon { font-size: 1.15rem; display: block; }
|
|
240
|
+
.step-label { font-size: 0.85rem; font-weight: 500; color: #6B7280; }
|
|
236
241
|
.step-bar { height: 2px; border-radius: 1px; margin-top: 0.15rem; }
|
|
237
242
|
.step-active .step-label { color: #7C3AED; font-weight: 700; }
|
|
238
243
|
.step-active .step-bar { background: #7C3AED; }
|
|
239
244
|
.step-done .step-bar { background: #10B981; }
|
|
240
245
|
.step-pending .step-bar { background: #E5E7EB; }
|
|
241
|
-
.step-pending .step-label { opacity: 0.
|
|
246
|
+
.step-pending .step-label { opacity: 0.65; }
|
|
242
247
|
|
|
243
248
|
/* ═══════ PIPELINE ═══════ */
|
|
244
249
|
.pipeline-steps {
|
|
@@ -256,11 +261,11 @@ def inject_custom_css():
|
|
|
256
261
|
gap: 0.2rem;
|
|
257
262
|
padding: 0.15rem 0.5rem;
|
|
258
263
|
border-radius: 4px;
|
|
259
|
-
font-size: 0.
|
|
264
|
+
font-size: 0.85rem;
|
|
260
265
|
font-weight: 500;
|
|
261
266
|
}
|
|
262
267
|
|
|
263
|
-
.pipeline-arrow { color: #D1D5DB; font-size: 0.
|
|
268
|
+
.pipeline-arrow { color: #D1D5DB; font-size: 0.75rem; }
|
|
264
269
|
.ps-done { background: #ECFDF5; color: #065F46; }
|
|
265
270
|
.ps-active { background: #FEF3C7; color: #92400E; }
|
|
266
271
|
.ps-pending { background: #F9FAFB; color: #9CA3AF; }
|
|
@@ -272,7 +277,7 @@ def inject_custom_css():
|
|
|
272
277
|
border-radius: 6px;
|
|
273
278
|
padding: 0.35rem 0.8rem;
|
|
274
279
|
text-align: center;
|
|
275
|
-
font-size: 0.
|
|
280
|
+
font-size: 0.88rem;
|
|
276
281
|
color: #6B21A8;
|
|
277
282
|
}
|
|
278
283
|
.info-bar b { color: #1A1A2E; }
|
|
@@ -281,7 +286,7 @@ def inject_custom_css():
|
|
|
281
286
|
.ds-card-stats {
|
|
282
287
|
display: flex;
|
|
283
288
|
gap: 0.6rem;
|
|
284
|
-
font-size: 0.
|
|
289
|
+
font-size: 0.88rem;
|
|
285
290
|
color: #6B7280;
|
|
286
291
|
flex-wrap: wrap;
|
|
287
292
|
line-height: 1.4;
|
|
@@ -289,10 +294,10 @@ def inject_custom_css():
|
|
|
289
294
|
.ds-card-stats span { white-space: nowrap; }
|
|
290
295
|
|
|
291
296
|
/* ═══════ ALERTS ═══════ */
|
|
292
|
-
.stAlert { padding: 0.35rem 0.6rem !important; font-size: 0.
|
|
297
|
+
.stAlert { padding: 0.35rem 0.6rem !important; font-size: 0.92rem !important; }
|
|
293
298
|
|
|
294
299
|
/* ═══════ CAPTION ═══════ */
|
|
295
|
-
.main .stCaption, .main small { font-size: 0.
|
|
300
|
+
.main .stCaption, .main small { font-size: 0.82rem !important; }
|
|
296
301
|
|
|
297
302
|
/* ═══════ PROGRESS ═══════ */
|
|
298
303
|
.stProgress > div > div {
|
|
@@ -314,8 +319,8 @@ def inject_custom_css():
|
|
|
314
319
|
/* ═══════ DOWNLOAD ═══════ */
|
|
315
320
|
.stDownloadButton > button {
|
|
316
321
|
border-radius: 6px;
|
|
317
|
-
font-size: 0.
|
|
318
|
-
padding: 0.
|
|
322
|
+
font-size: 0.92rem !important;
|
|
323
|
+
padding: 0.35rem 0.7rem !important;
|
|
319
324
|
}
|
|
320
325
|
</style>
|
|
321
326
|
""", unsafe_allow_html=True)
|
|
@@ -329,12 +334,12 @@ def render_info_bar(items: dict):
|
|
|
329
334
|
def render_page_header(icon: str, title: str, subtitle: str = ""):
|
|
330
335
|
icon_html = f'<span style="margin-right:0.4rem;">{icon}</span>' if icon else ""
|
|
331
336
|
subtitle_html = (
|
|
332
|
-
f'<div style="font-size:0.
|
|
337
|
+
f'<div style="font-size:0.88rem;color:#6B7280;margin-top:0.1rem;">{subtitle}</div>'
|
|
333
338
|
if subtitle else ""
|
|
334
339
|
)
|
|
335
340
|
st.markdown(
|
|
336
341
|
f'<div style="margin-bottom:0.4rem;">'
|
|
337
|
-
f'<
|
|
342
|
+
f'<h1 style="display:inline;color:#1A1A2E;">{icon_html}{title}</h1>'
|
|
338
343
|
f'{subtitle_html}'
|
|
339
344
|
f'</div>',
|
|
340
345
|
unsafe_allow_html=True,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""Dashboard — key metrics section (GPU, dataset, model, best mAP)."""
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import streamlit as st
|
|
5
|
+
from flashstudio.pages.dashboard._common import (
|
|
6
|
+
IMG_EXTENSIONS,
|
|
7
|
+
GPU_NAME_TRUNCATE, DATASET_NAME_TRUNCATE,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def render_metrics(gpu, stats):
|
|
12
|
+
m1, m2, m3, m4 = st.columns(4)
|
|
13
|
+
with m1:
|
|
14
|
+
gpu_name = gpu["name"][:GPU_NAME_TRUNCATE] if gpu["available"] else "CPU only"
|
|
15
|
+
vram = f"{gpu['memory_total']:.0f} GB" if gpu["available"] else "\u2014"
|
|
16
|
+
st.metric("GPU", gpu_name, delta=f"VRAM: {vram}", delta_color="off")
|
|
17
|
+
with m2:
|
|
18
|
+
ds_name = (st.session_state.get("dataset_name") or "Not loaded")[:DATASET_NAME_TRUNCATE]
|
|
19
|
+
train_path = st.session_state.get("train_img_path", "")
|
|
20
|
+
img_count = 0
|
|
21
|
+
if train_path and os.path.isdir(train_path):
|
|
22
|
+
img_count = len([f for f in os.listdir(train_path) if f.lower().endswith(IMG_EXTENSIONS)])
|
|
23
|
+
st.metric("Dataset", ds_name, delta=f"{img_count} images", delta_color="off")
|
|
24
|
+
with m3:
|
|
25
|
+
from flashstudio.utils import get_state
|
|
26
|
+
model = get_state("model_arch")
|
|
27
|
+
model_short = model.replace("FlashDet-", "")
|
|
28
|
+
epochs = get_state("epochs")
|
|
29
|
+
st.metric("Model", model_short, delta=f"{epochs} epochs", delta_color="off")
|
|
30
|
+
with m4:
|
|
31
|
+
best_map = f"{stats['best_map']:.3f}" if stats and stats["best_map"] is not None else "\u2014"
|
|
32
|
+
runs_count = stats["runs"] if stats else 0
|
|
33
|
+
st.metric("Best mAP", best_map, delta=f"{runs_count} runs", delta_color="off")
|
|
@@ -21,7 +21,7 @@ def _render_download():
|
|
|
21
21
|
c1, c2 = st.columns([5, 1])
|
|
22
22
|
with c1:
|
|
23
23
|
st.markdown(
|
|
24
|
-
f'<div style="font-size:0.
|
|
24
|
+
f'<div style="font-size:0.88rem;"><b>{ds["name"]}</b> · '
|
|
25
25
|
f'{ds["imgs"]} imgs · {ds["cls"]} cls · {ds["sz"]}</div>',
|
|
26
26
|
unsafe_allow_html=True,
|
|
27
27
|
)
|
|
@@ -60,7 +60,7 @@ def _render_download():
|
|
|
60
60
|
c1, c2 = st.columns([5, 1])
|
|
61
61
|
with c1:
|
|
62
62
|
st.markdown(
|
|
63
|
-
f'<div style="font-size:0.
|
|
63
|
+
f'<div style="font-size:0.88rem;"><b>{ds["name"]}</b> · '
|
|
64
64
|
f'{ds["imgs"]} · {ds["cls"]} cls · {ds["sz"]} · {ds["fmt"]}</div>',
|
|
65
65
|
unsafe_allow_html=True,
|
|
66
66
|
)
|
|
@@ -20,81 +20,120 @@ def _extract_upload(uploaded_file, split):
|
|
|
20
20
|
import zipfile
|
|
21
21
|
import tarfile
|
|
22
22
|
import tempfile
|
|
23
|
+
import shutil
|
|
23
24
|
name = uploaded_file.name
|
|
24
25
|
out = os.path.join(DEFAULT_DATA_DIR, "uploaded", split)
|
|
25
26
|
os.makedirs(out, exist_ok=True)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
with zipfile.ZipFile(tmp.name, "r") as zf:
|
|
33
|
-
zf.extractall(out)
|
|
27
|
+
try:
|
|
28
|
+
if name.endswith(".zip"):
|
|
29
|
+
tmp = tempfile.NamedTemporaryFile(suffix=".zip", delete=False)
|
|
30
|
+
tmp.write(uploaded_file.read()); tmp.flush(); tmp.close()
|
|
31
|
+
uploaded_file.seek(0)
|
|
32
|
+
if not zipfile.is_zipfile(tmp.name):
|
|
34
33
|
os.unlink(tmp.name)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
st.error(f"❌ **Invalid ZIP file:** `{name}` is not a valid zip archive. Please upload a correct file.")
|
|
35
|
+
return
|
|
36
|
+
with zipfile.ZipFile(tmp.name, "r") as zf:
|
|
37
|
+
members = zf.namelist()
|
|
38
|
+
total = len(members)
|
|
39
|
+
if total == 0:
|
|
40
|
+
os.unlink(tmp.name)
|
|
41
|
+
st.error(f"❌ **Empty archive:** `{name}` contains no files.")
|
|
42
|
+
return
|
|
43
|
+
progress = st.progress(0, text=f"Extracting {name} — 0 / {total} files")
|
|
44
|
+
img_count = 0
|
|
45
|
+
for i, member in enumerate(members, 1):
|
|
46
|
+
zf.extract(member, out)
|
|
47
|
+
if member.lower().endswith(IMG_EXTENSIONS):
|
|
48
|
+
img_count += 1
|
|
49
|
+
progress.progress(i / total, text=f"Extracting {name} — {i} / {total} files · {img_count} images")
|
|
50
|
+
progress.progress(1.0, text=f"✓ Extracted {total} files · {img_count} images")
|
|
51
|
+
os.unlink(tmp.name)
|
|
52
|
+
elif name.endswith((".tar", ".tar.gz", ".tgz")) or (name.endswith(".gz") and ".tar." in name):
|
|
53
|
+
tmp = tempfile.NamedTemporaryFile(suffix=".tar.gz", delete=False)
|
|
54
|
+
tmp.write(uploaded_file.read()); tmp.flush(); tmp.close()
|
|
55
|
+
uploaded_file.seek(0)
|
|
56
|
+
try:
|
|
39
57
|
with tarfile.open(tmp.name, "r:*") as tf:
|
|
40
|
-
tf.
|
|
58
|
+
members = tf.getmembers()
|
|
59
|
+
total = len(members)
|
|
60
|
+
if total == 0:
|
|
61
|
+
os.unlink(tmp.name)
|
|
62
|
+
st.error(f"❌ **Empty archive:** `{name}` contains no files.")
|
|
63
|
+
return
|
|
64
|
+
progress = st.progress(0, text=f"Extracting {name} — 0 / {total} files")
|
|
65
|
+
img_count = 0
|
|
66
|
+
for i, member in enumerate(members, 1):
|
|
67
|
+
tf.extract(member, out)
|
|
68
|
+
if member.name.lower().endswith(IMG_EXTENSIONS):
|
|
69
|
+
img_count += 1
|
|
70
|
+
progress.progress(i / total, text=f"Extracting {name} — {i} / {total} files · {img_count} images")
|
|
71
|
+
progress.progress(1.0, text=f"✓ Extracted {total} files · {img_count} images")
|
|
72
|
+
except tarfile.TarError:
|
|
41
73
|
os.unlink(tmp.name)
|
|
42
|
-
|
|
43
|
-
st.error(f"Unsupported: {name}")
|
|
74
|
+
st.error(f"❌ **Invalid TAR file:** `{name}` is not a valid tar archive. Please upload a correct file.")
|
|
44
75
|
return
|
|
76
|
+
os.unlink(tmp.name)
|
|
77
|
+
else:
|
|
78
|
+
st.error(f"Unsupported: {name}")
|
|
79
|
+
return
|
|
45
80
|
|
|
46
|
-
|
|
47
|
-
|
|
81
|
+
# --- Post-extraction: validate, detect format, find images ---
|
|
82
|
+
if not os.listdir(out):
|
|
83
|
+
shutil.rmtree(out, ignore_errors=True)
|
|
84
|
+
st.error(f"❌ **Empty archive:** `{name}` contains no files. Please upload a valid dataset zip.")
|
|
85
|
+
return
|
|
48
86
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
fmt = detect_dataset_format(root)
|
|
52
|
-
st.session_state["detected_format"] = fmt
|
|
87
|
+
root = _find_root(out)
|
|
88
|
+
st.session_state["dataset_output_path"] = root
|
|
53
89
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
90
|
+
fmt = "unknown"
|
|
91
|
+
if _HAS_FLASHDET:
|
|
92
|
+
fmt = detect_dataset_format(root)
|
|
93
|
+
st.session_state["detected_format"] = fmt
|
|
57
94
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
ann = _find_ann(root)
|
|
62
|
-
if ann:
|
|
63
|
-
st.session_state[f"{split}_ann_path"] = ann
|
|
64
|
-
label_dir = _find_labels(root)
|
|
65
|
-
if label_dir:
|
|
66
|
-
st.session_state[f"{split}_label_path"] = label_dir
|
|
67
|
-
st.session_state["dataset_name"] = name.rsplit(".", 1)[0]
|
|
95
|
+
if fmt in ("txt", "voc"):
|
|
96
|
+
_convert_to_coco(root, split, fmt)
|
|
97
|
+
return
|
|
68
98
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
99
|
+
img_dir = _find_images(root)
|
|
100
|
+
if img_dir:
|
|
101
|
+
st.session_state[f"{split}_img_path"] = img_dir
|
|
102
|
+
ann = _find_ann(root)
|
|
103
|
+
if ann:
|
|
104
|
+
st.session_state[f"{split}_ann_path"] = ann
|
|
105
|
+
label_dir = _find_labels(root)
|
|
106
|
+
if label_dir:
|
|
107
|
+
st.session_state[f"{split}_label_path"] = label_dir
|
|
108
|
+
st.session_state["dataset_name"] = name.rsplit(".", 1)[0]
|
|
77
109
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
if
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
st.session_state["num_classes"] = len(detected_cls)
|
|
110
|
+
parent = os.path.dirname(img_dir)
|
|
111
|
+
for sibling, key in [("valid", "val"), ("val", "val"), ("test", "test"), ("train", "train")]:
|
|
112
|
+
sib_path = os.path.join(parent, sibling)
|
|
113
|
+
if os.path.isdir(sib_path) and key != split:
|
|
114
|
+
sk = "val_img_path" if key in ("val",) else f"{key}_img_path"
|
|
115
|
+
if not st.session_state.get(sk):
|
|
116
|
+
st.session_state[sk] = sib_path
|
|
86
117
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
st.session_state["
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
st.
|
|
118
|
+
detected_cls = _auto_detect_classes()
|
|
119
|
+
_existing_cls = st.session_state.get("class_names", "")
|
|
120
|
+
if isinstance(_existing_cls, list):
|
|
121
|
+
_existing_cls = "\n".join(_existing_cls)
|
|
122
|
+
if detected_cls and not _existing_cls.strip():
|
|
123
|
+
st.session_state["class_names"] = "\n".join(detected_cls)
|
|
124
|
+
st.session_state["num_classes"] = len(detected_cls)
|
|
125
|
+
|
|
126
|
+
from flashstudio.utils import flash
|
|
127
|
+
flash(f"Extracted `{name}` to {img_dir}", "success")
|
|
128
|
+
st.rerun()
|
|
129
|
+
else:
|
|
130
|
+
st.session_state[f"{split}_img_path"] = root
|
|
131
|
+
st.session_state["dataset_name"] = name.rsplit(".", 1)[0]
|
|
132
|
+
from flashstudio.utils import flash
|
|
133
|
+
flash(f"Extracted `{name}` (no images dir found, using root)", "warning")
|
|
134
|
+
st.rerun()
|
|
135
|
+
except Exception as e:
|
|
136
|
+
st.error(f"Extract failed: {e}")
|
|
98
137
|
|
|
99
138
|
|
|
100
139
|
def _find_root(base):
|
|
@@ -273,7 +312,16 @@ def _run_external_download(ds):
|
|
|
273
312
|
return
|
|
274
313
|
os.makedirs(out, exist_ok=True)
|
|
275
314
|
with zipfile.ZipFile(tmp_path, "r") as zf:
|
|
276
|
-
zf.
|
|
315
|
+
members = zf.namelist()
|
|
316
|
+
total = len(members)
|
|
317
|
+
progress = st.progress(0, text=f"Extracting {name} — 0 / {total}")
|
|
318
|
+
img_count = 0
|
|
319
|
+
for i, member in enumerate(members, 1):
|
|
320
|
+
zf.extract(member, out)
|
|
321
|
+
if member.lower().endswith(IMG_EXTENSIONS):
|
|
322
|
+
img_count += 1
|
|
323
|
+
progress.progress(i / total, text=f"Extracting {name} — {i} / {total} files · {img_count} images")
|
|
324
|
+
progress.progress(1.0, text=f"Extracted {total} files · {img_count} images")
|
|
277
325
|
st.session_state.update({"dataset_output_path": out, "dataset_name": name})
|
|
278
326
|
for d, k in [("train", "train_img_path"), ("valid", "val_img_path")]:
|
|
279
327
|
p = os.path.join(out, d)
|
|
@@ -20,6 +20,10 @@ def _render_upload():
|
|
|
20
20
|
with st.container(border=True):
|
|
21
21
|
st.markdown("#### Train")
|
|
22
22
|
train_upload = st.file_uploader("ZIP/TAR", type=["zip", "tar", "gz"], key="train_data_upload")
|
|
23
|
+
if train_upload:
|
|
24
|
+
st.session_state["dataset_name"] = train_upload.name
|
|
25
|
+
if st.button("Extract", key="extract_train", use_container_width=True, type="primary"):
|
|
26
|
+
_extract_upload(train_upload, "train")
|
|
23
27
|
manual_train = st.text_input(
|
|
24
28
|
"Images dir", placeholder="/path/to/train/",
|
|
25
29
|
value=st.session_state.get("train_img_path", ""),
|
|
@@ -32,6 +36,9 @@ def _render_upload():
|
|
|
32
36
|
with st.container(border=True):
|
|
33
37
|
st.markdown("#### Val")
|
|
34
38
|
val_upload = st.file_uploader("ZIP/TAR", type=["zip", "tar", "gz"], key="val_data_upload")
|
|
39
|
+
if val_upload:
|
|
40
|
+
if st.button("Extract", key="extract_val", use_container_width=True, type="primary"):
|
|
41
|
+
_extract_upload(val_upload, "val")
|
|
35
42
|
manual_val = st.text_input(
|
|
36
43
|
"Images dir", placeholder="/path/to/valid/",
|
|
37
44
|
value=st.session_state.get("val_img_path", ""),
|
|
@@ -40,18 +47,7 @@ def _render_upload():
|
|
|
40
47
|
if manual_val:
|
|
41
48
|
st.session_state["val_img_path"] = manual_val
|
|
42
49
|
|
|
43
|
-
|
|
44
|
-
with fc1:
|
|
45
|
-
st.selectbox("Format", ["COCO JSON", "Pascal VOC", "YOLO TXT"], key="ann_format")
|
|
46
|
-
with fc2:
|
|
47
|
-
if train_upload:
|
|
48
|
-
st.session_state["dataset_name"] = train_upload.name
|
|
49
|
-
if not st.session_state.get("train_img_path"):
|
|
50
|
-
if st.button("Extract", key="extract_train", use_container_width=True, type="primary"):
|
|
51
|
-
_extract_upload(train_upload, "train")
|
|
52
|
-
if val_upload and not st.session_state.get("val_img_path"):
|
|
53
|
-
if st.button("Extract Val", key="extract_val", use_container_width=True):
|
|
54
|
-
_extract_upload(val_upload, "val")
|
|
50
|
+
st.selectbox("Format", ["COCO JSON", "Pascal VOC", "YOLO TXT"], key="ann_format")
|
|
55
51
|
|
|
56
52
|
# ── Classes section ──
|
|
57
53
|
_render_class_config()
|
|
@@ -42,7 +42,8 @@ def _render_verify():
|
|
|
42
42
|
|
|
43
43
|
try:
|
|
44
44
|
s = summarize_coco_root(dataset_root)
|
|
45
|
-
|
|
45
|
+
has_summary = s and (s.get("train_images", 0) > 0 or s.get("val_images", 0) > 0)
|
|
46
|
+
if has_summary:
|
|
46
47
|
m1, m2, m3, m4 = st.columns(4)
|
|
47
48
|
with m1:
|
|
48
49
|
st.metric("Train", s.get("train_images", 0))
|
|
@@ -56,9 +57,9 @@ def _render_verify():
|
|
|
56
57
|
with st.expander("Class Distribution"):
|
|
57
58
|
top = sorted(s["class_distribution"].items(), key=lambda x: x[1], reverse=True)[:15]
|
|
58
59
|
st.bar_chart({n: c for n, c in top})
|
|
60
|
+
return
|
|
59
61
|
except Exception:
|
|
60
62
|
pass
|
|
61
|
-
return
|
|
62
63
|
|
|
63
64
|
if not _HAS_FLASHDET and dataset_root and os.path.isdir(dataset_root):
|
|
64
65
|
st.info(_FLASHDET_INSTALL_MSG)
|
|
@@ -37,7 +37,7 @@ def render_export_page():
|
|
|
37
37
|
(CKPT_BEST, "Best, full checkpoint"),
|
|
38
38
|
(CKPT_LAST_INFERENCE, "Final, inference-ready"),
|
|
39
39
|
(CKPT_LAST, "Final, full checkpoint")]:
|
|
40
|
-
st.markdown(f'<span style="font-size:0.
|
|
40
|
+
st.markdown(f'<span style="font-size:0.88rem;color:#4B5563;">• `{n}` — {d}</span>', unsafe_allow_html=True)
|
|
41
41
|
st.caption("Manual:")
|
|
42
42
|
st.code("flashdet export --model model.pth --output model.onnx", language="bash")
|
|
43
43
|
else:
|
|
@@ -31,7 +31,18 @@ def render_export_settings():
|
|
|
31
31
|
for i, wp_disp in enumerate(sorted(wts)[:MAX_WEIGHTS_DISPLAY]):
|
|
32
32
|
sz = os.path.getsize(wp_disp) / (1024 * 1024)
|
|
33
33
|
bn = os.path.basename(wp_disp)
|
|
34
|
-
|
|
34
|
+
if "best" in bn and "inference" in bn:
|
|
35
|
+
lbl = "Best Inf"
|
|
36
|
+
elif "best" in bn and "fp16" in bn:
|
|
37
|
+
lbl = "Best FP16"
|
|
38
|
+
elif "best" in bn:
|
|
39
|
+
lbl = "Best"
|
|
40
|
+
elif "last" in bn and "inference" in bn:
|
|
41
|
+
lbl = "Last Inf"
|
|
42
|
+
elif "last" in bn:
|
|
43
|
+
lbl = "Last"
|
|
44
|
+
else:
|
|
45
|
+
lbl = bn[:8]
|
|
35
46
|
with cols[i]:
|
|
36
47
|
st.metric(lbl, f"{sz:.1f}MB")
|
|
37
48
|
else:
|
|
@@ -24,7 +24,9 @@ def _tab_model():
|
|
|
24
24
|
with pc2:
|
|
25
25
|
st.slider("NMS IoU", 0.0, 1.0, INFER_NMS_THRESHOLD, 0.05, key="infer_nms")
|
|
26
26
|
st.selectbox("Device", _get_device_options(), key="infer_device")
|
|
27
|
-
st.
|
|
27
|
+
dataset_nc = st.session_state.get("num_classes", 0)
|
|
28
|
+
default_nc = dataset_nc if dataset_nc > 0 else INFER_NUM_CLASSES
|
|
29
|
+
st.number_input("Classes", 1, 1000, default_nc, key="infer_num_classes")
|
|
28
30
|
filter_classes = _get_class_names()
|
|
29
31
|
st.multiselect("Filter (empty=all)", filter_classes, default=[], key="infer_class_filter")
|
|
30
32
|
|
|
@@ -19,7 +19,9 @@ def _tab_run():
|
|
|
19
19
|
with m2:
|
|
20
20
|
st.metric("Input", st.session_state.get("infer_input_type", "Images"))
|
|
21
21
|
with m3:
|
|
22
|
-
|
|
22
|
+
sol_name = st.session_state.get("selected_solution", "Detection")
|
|
23
|
+
sol_display = "Detect" if "Detection Only" in sol_name else sol_name[:12]
|
|
24
|
+
st.metric("Solution", sol_display)
|
|
23
25
|
with m4:
|
|
24
26
|
st.metric("Device", st.session_state.get("infer_device", "cpu").split(" ")[0])
|
|
25
27
|
|
|
@@ -42,9 +42,9 @@ def _tab_adv():
|
|
|
42
42
|
key="class_file", help="Leave empty to auto-generate from dataset classes")
|
|
43
43
|
|
|
44
44
|
from flashstudio.utils import DEFAULTS
|
|
45
|
-
if "save_dir" not in st.session_state:
|
|
45
|
+
if "save_dir" not in st.session_state or not st.session_state.get("save_dir", "").strip():
|
|
46
46
|
st.session_state["save_dir"] = DEFAULTS["save_dir"]
|
|
47
|
-
st.text_input("Save Dir", key="save_dir")
|
|
47
|
+
st.text_input("Save Dir", key="save_dir", placeholder=DEFAULTS["save_dir"])
|
|
48
48
|
rc1, rc2 = st.columns(2)
|
|
49
49
|
with rc1:
|
|
50
50
|
st.checkbox("Save Best Only", True, key="save_best")
|
|
@@ -24,7 +24,7 @@ def _tab_arch():
|
|
|
24
24
|
model = st.radio("Size", list(FLASHDET_MODELS.keys()), index=0, key="model_arch")
|
|
25
25
|
info = FLASHDET_MODELS[model]
|
|
26
26
|
if model == "FlashDet-Pico":
|
|
27
|
-
st.selectbox("Backbone", ["LiteBackbone
|
|
27
|
+
st.selectbox("Backbone", ["LiteBackbone", "PicoBackbone"], key="pico_backbone")
|
|
28
28
|
else:
|
|
29
29
|
st.caption(f"Backbone: {info['backbone']}")
|
|
30
30
|
st.caption(f"{info['neck']} → {info['head']} · CIoU+BCE+L1 · STAL · ProgLoss")
|
|
@@ -15,4 +15,4 @@ def _tab_aug():
|
|
|
15
15
|
with st.container(border=True):
|
|
16
16
|
st.markdown("#### Built-in (always on)")
|
|
17
17
|
for a in ["Scale jitter 0.5–1.5×", "Horizontal flip", "Color jitter", "Letterbox resize", "ImageNet norm"]:
|
|
18
|
-
st.markdown(f'<span style="font-size:0.
|
|
18
|
+
st.markdown(f'<span style="font-size:0.88rem;color:#4B5563;">• {a}</span>', unsafe_allow_html=True)
|
|
@@ -63,7 +63,7 @@ def _summary_bar():
|
|
|
63
63
|
f'BS: <b>{st.session_state.get("batch_size", TRAIN_BATCH_SIZE)}</b> · '
|
|
64
64
|
f'LR: <b>{st.session_state.get("lr", TRAIN_LR):.1e}</b> · '
|
|
65
65
|
f'Img: <b>{st.session_state.get("img_size", TRAIN_IMG_SIZE)}</b> · '
|
|
66
|
-
f'AMP: <b>{"On" if st.session_state.get("amp") else "Off"}</b>'
|
|
66
|
+
f'AMP: <b>{"On" if st.session_state.get("amp", True) else "Off"}</b>'
|
|
67
67
|
f'</div>',
|
|
68
68
|
unsafe_allow_html=True,
|
|
69
69
|
)
|