flashstudio 0.2.1__tar.gz → 0.2.2__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.
- flashstudio-0.2.2/LICENSE +201 -0
- flashstudio-0.2.2/PKG-INFO +145 -0
- flashstudio-0.2.2/README.md +170 -0
- flashstudio-0.2.2/README_PYPI.md +98 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/__init__.py +1 -1
- flashstudio-0.2.2/flashstudio/app.py +259 -0
- flashstudio-0.2.2/flashstudio/components/dependencies.py +117 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/components/project_manager.py +261 -106
- flashstudio-0.2.2/flashstudio/components/sidebar.py +174 -0
- flashstudio-0.2.2/flashstudio/components/styles.py +550 -0
- flashstudio-0.2.2/flashstudio/components/wizard.py +66 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/components/zone_drawer/__init__.py +6 -4
- flashstudio-0.2.2/flashstudio/components/zone_drawer/index.html +250 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/constants.py +47 -11
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/launcher.py +34 -19
- flashstudio-0.2.2/flashstudio/pages/dashboard/_common.py +25 -0
- flashstudio-0.2.2/flashstudio/pages/dashboard/overview/metrics.py +41 -0
- flashstudio-0.2.2/flashstudio/pages/dashboard/overview/pipeline_status.py +44 -0
- flashstudio-0.2.2/flashstudio/pages/dashboard/overview/project_banner.py +39 -0
- flashstudio-0.2.2/flashstudio/pages/dashboard/overview/quick_actions.py +63 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/dashboard/overview/recent_runs.py +52 -23
- flashstudio-0.2.2/flashstudio/pages/dashboard/overview/tab.py +88 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/dashboard/page.py +1 -1
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/data/_common.py +22 -2
- flashstudio-0.2.2/flashstudio/pages/data/edit/__init__.py +3 -0
- flashstudio-0.2.2/flashstudio/pages/data/edit/tab.py +186 -0
- flashstudio-0.2.2/flashstudio/pages/data/fix/__init__.py +3 -0
- flashstudio-0.2.2/flashstudio/pages/data/fix/annotations.py +346 -0
- flashstudio-0.2.2/flashstudio/pages/data/fix/tab.py +202 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/data/helpers.py +257 -41
- flashstudio-0.2.2/flashstudio/pages/data/page.py +107 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/data/preview/tab.py +6 -1
- flashstudio-0.2.2/flashstudio/pages/data/quality/__init__.py +3 -0
- flashstudio-0.2.2/flashstudio/pages/data/quality/tab.py +197 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/data/upload/tab.py +20 -9
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/data/verify/tab.py +4 -2
- flashstudio-0.2.2/flashstudio/pages/export/_common.py +116 -0
- flashstudio-0.2.2/flashstudio/pages/export/optimization/__init__.py +3 -0
- flashstudio-0.2.2/flashstudio/pages/export/optimization/tab.py +594 -0
- flashstudio-0.2.2/flashstudio/pages/export/page.py +125 -0
- flashstudio-0.2.2/flashstudio/pages/export/weights/exporter.py +237 -0
- flashstudio-0.2.2/flashstudio/pages/export/weights/settings.py +221 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/inference/_common.py +53 -0
- flashstudio-0.2.2/flashstudio/pages/inference/data/tab.py +161 -0
- flashstudio-0.2.2/flashstudio/pages/inference/model/tab.py +211 -0
- flashstudio-0.2.2/flashstudio/pages/inference/page.py +82 -0
- flashstudio-0.2.2/flashstudio/pages/inference/run/detection.py +225 -0
- flashstudio-0.2.2/flashstudio/pages/inference/run/live.py +347 -0
- flashstudio-0.2.2/flashstudio/pages/inference/run/tab.py +278 -0
- flashstudio-0.2.2/flashstudio/pages/inference/run/video.py +272 -0
- flashstudio-0.2.2/flashstudio/pages/inference/solution/tab.py +200 -0
- flashstudio-0.2.2/flashstudio/pages/model/advanced/tab.py +68 -0
- flashstudio-0.2.2/flashstudio/pages/model/architecture/tab.py +347 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/model/augment/tab.py +1 -0
- flashstudio-0.2.2/flashstudio/pages/model/hyperparams/tab.py +201 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/model/page.py +4 -2
- flashstudio-0.2.2/flashstudio/pages/training/compare/__init__.py +3 -0
- flashstudio-0.2.2/flashstudio/pages/training/compare/tab.py +125 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/launch/controls.py +54 -13
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/launch/dialogs.py +7 -4
- flashstudio-0.2.2/flashstudio/pages/training/launch/preflight.py +130 -0
- flashstudio-0.2.2/flashstudio/pages/training/launch/runner.py +521 -0
- flashstudio-0.2.2/flashstudio/pages/training/launch/tab.py +301 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/monitor/curves.py +13 -8
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/monitor/dashboard.py +32 -21
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/monitor/parsers.py +20 -10
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/monitor/run_meta.py +16 -5
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/monitor/tab.py +2 -2
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/page.py +68 -31
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/utils/__init__.py +19 -14
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/utils/config.py +37 -4
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/utils/filesystem.py +53 -0
- flashstudio-0.2.2/flashstudio/utils/model_loader.py +381 -0
- flashstudio-0.2.2/flashstudio/utils/trainer_launcher.py +765 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/utils/training_hooks.py +41 -13
- flashstudio-0.2.2/flashstudio/utils/weight_hub.py +126 -0
- flashstudio-0.2.2/flashstudio.egg-info/PKG-INFO +145 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio.egg-info/SOURCES.txt +19 -0
- flashstudio-0.2.2/flashstudio.egg-info/requires.txt +33 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/pyproject.toml +20 -5
- {flashstudio-0.2.1 → flashstudio-0.2.2}/setup.cfg +4 -4
- {flashstudio-0.2.1 → flashstudio-0.2.2}/tests/test_pipeline_flow.py +3 -3
- {flashstudio-0.2.1 → flashstudio-0.2.2}/tests/test_save_dir_compat.py +1 -1
- flashstudio-0.2.1/PKG-INFO +0 -107
- flashstudio-0.2.1/README.md +0 -330
- flashstudio-0.2.1/README_PYPI.md +0 -72
- flashstudio-0.2.1/flashstudio/app.py +0 -194
- flashstudio-0.2.1/flashstudio/components/sidebar.py +0 -87
- flashstudio-0.2.1/flashstudio/components/styles.py +0 -346
- flashstudio-0.2.1/flashstudio/components/wizard.py +0 -45
- flashstudio-0.2.1/flashstudio/pages/dashboard/_common.py +0 -10
- flashstudio-0.2.1/flashstudio/pages/dashboard/overview/metrics.py +0 -33
- flashstudio-0.2.1/flashstudio/pages/dashboard/overview/pipeline_status.py +0 -35
- flashstudio-0.2.1/flashstudio/pages/dashboard/overview/project_banner.py +0 -23
- flashstudio-0.2.1/flashstudio/pages/dashboard/overview/quick_actions.py +0 -28
- flashstudio-0.2.1/flashstudio/pages/dashboard/overview/tab.py +0 -35
- flashstudio-0.2.1/flashstudio/pages/data/page.py +0 -50
- flashstudio-0.2.1/flashstudio/pages/export/page.py +0 -54
- flashstudio-0.2.1/flashstudio/pages/export/weights/exporter.py +0 -60
- flashstudio-0.2.1/flashstudio/pages/export/weights/settings.py +0 -86
- flashstudio-0.2.1/flashstudio/pages/inference/data/tab.py +0 -121
- flashstudio-0.2.1/flashstudio/pages/inference/model/tab.py +0 -62
- flashstudio-0.2.1/flashstudio/pages/inference/page.py +0 -42
- flashstudio-0.2.1/flashstudio/pages/inference/run/detection.py +0 -133
- flashstudio-0.2.1/flashstudio/pages/inference/run/tab.py +0 -161
- flashstudio-0.2.1/flashstudio/pages/inference/run/video.py +0 -195
- flashstudio-0.2.1/flashstudio/pages/inference/solution/tab.py +0 -121
- flashstudio-0.2.1/flashstudio/pages/model/advanced/tab.py +0 -54
- flashstudio-0.2.1/flashstudio/pages/model/architecture/tab.py +0 -90
- flashstudio-0.2.1/flashstudio/pages/model/hyperparams/tab.py +0 -89
- flashstudio-0.2.1/flashstudio/pages/training/launch/preflight.py +0 -77
- flashstudio-0.2.1/flashstudio/pages/training/launch/runner.py +0 -440
- flashstudio-0.2.1/flashstudio/pages/training/launch/tab.py +0 -134
- flashstudio-0.2.1/flashstudio.egg-info/PKG-INFO +0 -107
- flashstudio-0.2.1/flashstudio.egg-info/requires.txt +0 -21
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/cli.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/components/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/core/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/core/constants.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/dashboard/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/dashboard/overview/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/data/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/data/download/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/data/download/tab.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/data/preview/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/data/upload/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/data/verify/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/export/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/export/weights/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/inference/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/inference/data/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/inference/model/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/inference/run/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/inference/solution/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/model/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/model/_common.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/model/advanced/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/model/architecture/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/model/augment/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/model/hyperparams/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/model/utils/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/model/utils/config.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/_common.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/launch/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/monitor/__init__.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/monitor/checkpoints.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/monitor/gt_verification.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/monitor/log_viewer.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/pages/training/monitor/visualizations.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/utils/device.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio/utils/jobs.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio.egg-info/dependency_links.txt +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio.egg-info/entry_points.txt +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/flashstudio.egg-info/top_level.txt +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/tests/test_app.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/tests/test_cli.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/tests/test_constants.py +0 -0
- {flashstudio-0.2.1 → flashstudio-0.2.2}/tests/test_launcher.py +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2024-2026 FlashVision
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: flashstudio
|
|
3
|
+
Version: 0.2.2
|
|
4
|
+
Summary: Interactive Training & Inference UI for FlashDet — runs on Google Colab
|
|
5
|
+
Author: FlashVision
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/FlashVision/FlashStudio
|
|
8
|
+
Project-URL: Repository, https://github.com/FlashVision/FlashStudio
|
|
9
|
+
Keywords: object-detection,flashdet,training,inference,ui,colab
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
14
|
+
Requires-Python: >=3.10
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: streamlit>=1.28.0
|
|
18
|
+
Requires-Dist: streamlit-drawable-canvas>=0.9.3
|
|
19
|
+
Requires-Dist: streamlit-autorefresh>=1.0.1
|
|
20
|
+
Requires-Dist: plotly>=5.0
|
|
21
|
+
Requires-Dist: pandas>=1.5
|
|
22
|
+
Requires-Dist: pillow>=9.0
|
|
23
|
+
Requires-Dist: numpy>=1.21
|
|
24
|
+
Requires-Dist: opencv-python>=4.5
|
|
25
|
+
Requires-Dist: pyyaml>=6.0
|
|
26
|
+
Requires-Dist: flashdet>=1.3.0
|
|
27
|
+
Provides-Extra: full
|
|
28
|
+
Requires-Dist: torch>=2.0; extra == "full"
|
|
29
|
+
Requires-Dist: flashdet[export]; extra == "full"
|
|
30
|
+
Requires-Dist: pyngrok>=6.0; extra == "full"
|
|
31
|
+
Requires-Dist: ultralytics>=8.0; extra == "full"
|
|
32
|
+
Requires-Dist: onnxruntime>=1.15; extra == "full"
|
|
33
|
+
Requires-Dist: onnx>=1.14; extra == "full"
|
|
34
|
+
Requires-Dist: onnxslim>=0.1; extra == "full"
|
|
35
|
+
Provides-Extra: inference
|
|
36
|
+
Requires-Dist: ultralytics>=8.0; extra == "inference"
|
|
37
|
+
Requires-Dist: onnxruntime>=1.15; extra == "inference"
|
|
38
|
+
Requires-Dist: onnx>=1.14; extra == "inference"
|
|
39
|
+
Requires-Dist: onnxslim>=0.1; extra == "inference"
|
|
40
|
+
Provides-Extra: ngrok
|
|
41
|
+
Requires-Dist: pyngrok>=6.0; extra == "ngrok"
|
|
42
|
+
Provides-Extra: dev
|
|
43
|
+
Requires-Dist: ruff; extra == "dev"
|
|
44
|
+
Requires-Dist: pytest; extra == "dev"
|
|
45
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
46
|
+
Dynamic: license-file
|
|
47
|
+
|
|
48
|
+
# FlashStudio
|
|
49
|
+
|
|
50
|
+
**A visual studio for training, fine-tuning, and deploying detection models — without the script spaghetti.**
|
|
51
|
+
|
|
52
|
+
FlashStudio is an interactive Streamlit workspace built on top of [FlashDet](https://github.com/FlashVision/FlashDet). It gives you one place to manage datasets, configure models, run training with live feedback, optimize and export weights, and try out inference on images, video, or live streams.
|
|
53
|
+
|
|
54
|
+
## Install
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pip install flashstudio
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
That's it — FlashDet and the core dependencies come along automatically, so there's no repository checkout or manual setup required.
|
|
61
|
+
|
|
62
|
+
## Quick Start
|
|
63
|
+
|
|
64
|
+
Launch the app from your terminal:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
flashstudio
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Or from Python:
|
|
71
|
+
|
|
72
|
+
```python
|
|
73
|
+
from flashstudio import launch
|
|
74
|
+
launch()
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Then open **http://localhost:8501** in your browser.
|
|
78
|
+
|
|
79
|
+
## Google Colab
|
|
80
|
+
|
|
81
|
+
FlashStudio works in Colab with no tokens, tunnels, or signups:
|
|
82
|
+
|
|
83
|
+
```python
|
|
84
|
+
!pip install -q flashstudio
|
|
85
|
+
|
|
86
|
+
from flashstudio import launch
|
|
87
|
+
launch()
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Colab is detected automatically and the built-in proxy gives you a clickable, working URL. If you'd rather use a stable public address, pass an ngrok token instead:
|
|
91
|
+
|
|
92
|
+
```python
|
|
93
|
+
launch(ngrok_token="YOUR_TOKEN")
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Grab a free token from the [ngrok dashboard](https://dashboard.ngrok.com/get-started/your-authtoken).
|
|
97
|
+
|
|
98
|
+
## What You Get
|
|
99
|
+
|
|
100
|
+
- **Guided workflow** — move from Dashboard → Data → Model → Training → Export → Inference, with pipeline readiness checks and hints about what to do next.
|
|
101
|
+
- **Project workspaces** — each project keeps its own datasets, runs, checkpoints, and saved UI state. Switch projects without losing your place.
|
|
102
|
+
- **Data tools** — upload ZIP/TAR archives or pull datasets from the FlashDet registry, preview annotations, verify splits, repair broken COCO/YOLO labels, edit boxes by hand, and run a quality report.
|
|
103
|
+
- **Framework-first model setup** — FlashDet (Pico through X, including the Pico-Zoo backbones), Ultralytics YOLOv8/v9/v10/v11, and YOLOX for inference and export.
|
|
104
|
+
- **Training cockpit** — preflight checks, launch/pause/resume/stop, live loss curves, epoch visualizations, ground-truth verification, logs, checkpoints, and cross-run comparison.
|
|
105
|
+
- **Weight Hub** — download FlashDet registry and Ultralytics checkpoints directly from the training or inference pages.
|
|
106
|
+
- **Export & optimize** — ONNX and TorchScript export, TensorRT when available, layer/kernel fusion, ONNX parity checks, INT8 quantization, and FPS/latency benchmarks.
|
|
107
|
+
- **Inference** — FlashDet, Ultralytics, ONNX Runtime, TorchScript, and TensorRT engines on images, video, or RTSP/webcam streams.
|
|
108
|
+
- **Live inference** — real-time FPS and detections, MP4 capture, and a multi-camera grid.
|
|
109
|
+
- **Zones & solutions** — polygon, rectangle, and line zones with 16 built-in solutions.
|
|
110
|
+
- **Active learning** — export low-confidence detections for review and retraining.
|
|
111
|
+
- **Dependency hints** — in-app guidance (and one-click installs) for optional runtimes and frameworks.
|
|
112
|
+
|
|
113
|
+
## Supported Models
|
|
114
|
+
|
|
115
|
+
| Model | Params | Best For |
|
|
116
|
+
|-------|--------|----------|
|
|
117
|
+
| FlashDet-Pico | ~298K | Edge / MCU |
|
|
118
|
+
| FlashDet-Nano | ~790K | Embedded / IoT |
|
|
119
|
+
| FlashDet-Small | ~1.8M | General purpose |
|
|
120
|
+
| FlashDet-Medium | ~3.6M | High accuracy |
|
|
121
|
+
| FlashDet-Large | ~5.8M | High accuracy |
|
|
122
|
+
| FlashDet-X | ~9.0M | Server / max accuracy |
|
|
123
|
+
|
|
124
|
+
**Training backends:** FlashDet Trainer (default) or Ultralytics (YOLOv8/v9/v10/v11).
|
|
125
|
+
|
|
126
|
+
**Inference backends:** FlashDet `.pth`, Ultralytics `.pt`, ONNX Runtime, TorchScript, and TensorRT `.engine`.
|
|
127
|
+
|
|
128
|
+
## Requirements
|
|
129
|
+
|
|
130
|
+
- Python 3.10 or newer
|
|
131
|
+
- FlashDet (installed automatically)
|
|
132
|
+
- Ultralytics + ONNX Runtime for external YOLO/ONNX models
|
|
133
|
+
- TensorRT for `.engine` inference (optional)
|
|
134
|
+
- An ngrok account only if you want a stable public Colab URL (optional)
|
|
135
|
+
- A GPU is strongly recommended for training
|
|
136
|
+
|
|
137
|
+
## Links
|
|
138
|
+
|
|
139
|
+
- GitHub: https://github.com/FlashVision/FlashStudio
|
|
140
|
+
- FlashDet: https://github.com/FlashVision/FlashDet
|
|
141
|
+
- Organization: https://flashvision.github.io
|
|
142
|
+
|
|
143
|
+
## License
|
|
144
|
+
|
|
145
|
+
Apache 2.0 — see [LICENSE](https://github.com/FlashVision/FlashStudio/blob/main/LICENSE).
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/FlashVision/FlashStudio/main/assets/logo.png" width="180" alt="FlashStudio Logo">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">FlashStudio</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://pypi.org/project/flashstudio/"><img src="https://badge.fury.io/py/flashstudio.svg" alt="PyPI version"></a>
|
|
9
|
+
<img src="https://img.shields.io/badge/python-3.10+-blue.svg?logo=python&logoColor=white" alt="Python 3.10+">
|
|
10
|
+
<img src="https://img.shields.io/badge/Streamlit-UI-FF4B4B?logo=streamlit&logoColor=white" alt="Streamlit">
|
|
11
|
+
<img src="https://img.shields.io/badge/FlashDet-Powered-00CCFF?logo=lightning&logoColor=white" alt="FlashDet">
|
|
12
|
+
<img src="https://img.shields.io/badge/License-Apache%202.0-green.svg" alt="License">
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<b>The modern, lightning-fast visual studio for training, fine-tuning, and deploying computer vision models. Built for developers, researchers, and engineers who want power without the configuration headache.</b>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
<p align="center">
|
|
20
|
+
<img src="docs/mockups/flashstudio_streamlit_mockup.png" width="850" alt="FlashStudio UI"/>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## What is FlashStudio? 🤔
|
|
26
|
+
|
|
27
|
+
Whether you're training a detector for a tiny edge device, fine-tuning a model for a specific industry, or wiring up a multi-camera live stream, getting a vision pipeline off the ground usually means gluing together dozens of one-off scripts, TensorBoard windows, and half-finished inference notebooks.
|
|
28
|
+
|
|
29
|
+
**FlashStudio** puts everything into a clean, interactive Streamlit workspace. It wraps **FlashDet** and Ultralytics YOLO models into a unified control center where you can manage data, configure architectures, train with real-time feedback, optimize weights, and deploy inference with zero boilerplate.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## ✨ Key Features
|
|
34
|
+
|
|
35
|
+
- **🗂️ Isolated Project Workspaces** — Switch between different vision projects effortlessly. Every project keeps its own datasets, checkpoints, runs, and settings cleanly separated.
|
|
36
|
+
- **🧭 Step-by-Step Guided Workflow** — Never lose track of where you are in the pipeline. Move smoothly from **Dashboard ➔ Data ➔ Model ➔ Training ➔ Export ➔ Inference** with smart preflight checks.
|
|
37
|
+
- **🔍 Intelligent Data Quality & Repair** — Instantly spot class imbalances, corrupted images, missing files, duplicate bounding boxes, and automatically fix broken COCO or YOLO labels.
|
|
38
|
+
- **🧠 Framework-First Architectures** — Choose your weapon: FlashDet (Pico through X, optimized for edge and servers) or Ultralytics (YOLOv8, v9, v10, v11, YOLOX).
|
|
39
|
+
- **🏋️ Live Training Cockpit** — Launch runs, watch live loss curves and epoch visualizations in real time, inspect ground-truth bounding box verifications, and compare multiple runs side-by-side.
|
|
40
|
+
- **⚡ Advanced Optimization & Export** — Export clean ONNX, TorchScript, or TensorRT weights, apply kernel fusion and INT8 quantization, and benchmark exact FPS/latency out of the box.
|
|
41
|
+
- **🎯 Zones & Solutions** — Define custom polygons, rectangles, or tripwire lines with 16 built-in smart solutions (counting, intrusion detection, etc.) for live video streams.
|
|
42
|
+
- **🚀 Run Anywhere** — Run smoothly on your local machine via CLI or right inside Google Colab with zero configuration tokens or tunnel setups required.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## 🚀 Quick Start
|
|
47
|
+
|
|
48
|
+
### 1. Installation
|
|
49
|
+
Install the package straight from PyPI:
|
|
50
|
+
```bash
|
|
51
|
+
pip install flashstudio
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### 2. Launch
|
|
55
|
+
Fire up the studio instantly:
|
|
56
|
+
```bash
|
|
57
|
+
flashstudio
|
|
58
|
+
```
|
|
59
|
+
Or run it directly through Streamlit:
|
|
60
|
+
```bash
|
|
61
|
+
streamlit run flashstudio/app.py
|
|
62
|
+
```
|
|
63
|
+
Open **http://localhost:8501** in your browser and start building!
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## ☁️ Running in Google Colab
|
|
68
|
+
|
|
69
|
+
Want free GPU power without local setup? FlashStudio works out-of-the-box in Google Colab with zero tokens or signups needed.
|
|
70
|
+
|
|
71
|
+
Open your notebook and run:
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
!pip install -q flashstudio
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
```python
|
|
78
|
+
from flashstudio import launch
|
|
79
|
+
launch()
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Click the generated **"Open FlashStudio"** link in your cell output and you're good to go!
|
|
83
|
+
|
|
84
|
+
| Ready-to-Use Notebooks | Link |
|
|
85
|
+
|------------------------|------|
|
|
86
|
+
| **Train FlashDet** | [](https://colab.research.google.com/github/FlashVision/FlashStudio/blob/main/notebooks/FlashStudio_Train.ipynb) |
|
|
87
|
+
| **Run Inference** | [](https://colab.research.google.com/github/FlashVision/FlashStudio/blob/main/notebooks/FlashStudio_Inference.ipynb) |
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## 📸 A Quick Look Around the UI
|
|
92
|
+
|
|
93
|
+
### 📊 Dashboard
|
|
94
|
+
Your command center. Check pipeline readiness, system compute status, current dataset stats, best mAP scores, and jump straight into recent runs.
|
|
95
|
+
<p align="center"><img src="demos/01_dashboard.gif" width="850" alt="Dashboard"/></p>
|
|
96
|
+
|
|
97
|
+
### 🗂️ Data Management
|
|
98
|
+
Upload your dataset archives, verify splits, browse images with live bounding box overlays, inspect class balance charts, and repair bad annotations in seconds.
|
|
99
|
+
<p align="center"><img src="demos/02_data.gif" width="850" alt="Data Management"/></p>
|
|
100
|
+
|
|
101
|
+
### ⚙️ Model Setup
|
|
102
|
+
Select your framework and architecture, fine-tune hyperparameters, configure robust data augmentations, and save your setup as clean YAML configs.
|
|
103
|
+
<p align="center"><img src="demos/03_model.gif" width="850" alt="Model Configuration"/></p>
|
|
104
|
+
|
|
105
|
+
### 📈 Training & Monitoring
|
|
106
|
+
Run preflight checks, launch training with a single click, monitor live loss curves, verify ground-truth alignments, and check saved model checkpoints.
|
|
107
|
+
<p align="center"><img src="demos/04_training.gif" width="850" alt="Training"/></p>
|
|
108
|
+
|
|
109
|
+
### ⚡ Export & Optimization
|
|
110
|
+
Export your trained weights to ONNX, TorchScript, or TensorRT, apply INT8 quantization, and benchmark model speed on your hardware.
|
|
111
|
+
<p align="center"><img src="demos/05_export.gif" width="850" alt="Export"/></p>
|
|
112
|
+
|
|
113
|
+
### 🎯 Live Inference & Solutions
|
|
114
|
+
Test models on images, video files, or live RTSP streams. Draw custom zones and count objects or trigger alerts instantly.
|
|
115
|
+
<p align="center"><img src="demos/06_inference.gif" width="850" alt="Inference"/></p>
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## 💡 Supported Models
|
|
120
|
+
|
|
121
|
+
| Family | Variants | Recommended Use Case |
|
|
122
|
+
|--------|----------|----------------------|
|
|
123
|
+
| **FlashDet** | Pico, Nano, Small, Medium, Large, X | Edge microcontrollers to high-throughput servers (~298K to 9M params) |
|
|
124
|
+
| **Ultralytics YOLO** | YOLOv8, YOLOv9, YOLOv10, YOLOv11, YOLOX | Standardized deployment and transfer learning |
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## 🛠️ Development Setup
|
|
129
|
+
|
|
130
|
+
If you want to run the app from source or contribute to the project:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
git clone https://github.com/FlashVision/FlashStudio.git
|
|
134
|
+
cd FlashStudio
|
|
135
|
+
pip install -e .
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Need every optional backend (Ultralytics, ONNX Runtime, TensorRT export, ngrok, …)? Grab the full extra:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
pip install -e ".[full]"
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Optional extras
|
|
145
|
+
|
|
146
|
+
| Extra | What it adds |
|
|
147
|
+
|-------|--------------|
|
|
148
|
+
| `full` | Torch, FlashDet export tools, Ultralytics, ONNX Runtime, ONNX Slim, ngrok |
|
|
149
|
+
| `inference` | Ultralytics + ONNX Runtime for the inference page |
|
|
150
|
+
| `ngrok` | Public tunnel support as a Colab fallback |
|
|
151
|
+
| `dev` | Ruff, pytest, and pytest-cov |
|
|
152
|
+
|
|
153
|
+
### Tests
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
pytest
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## 🤝 Contributing
|
|
162
|
+
|
|
163
|
+
Found a bug, have a feature idea, or want to add support for another framework? Issues and pull requests are very welcome. If you're planning something bigger, feel free to open an issue first so we can talk it through before you sink time into it.
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## 📜 License
|
|
168
|
+
|
|
169
|
+
Released under the **Apache 2.0 License**. See [LICENSE](LICENSE) for the full text.
|
|
170
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# FlashStudio
|
|
2
|
+
|
|
3
|
+
**A visual studio for training, fine-tuning, and deploying detection models — without the script spaghetti.**
|
|
4
|
+
|
|
5
|
+
FlashStudio is an interactive Streamlit workspace built on top of [FlashDet](https://github.com/FlashVision/FlashDet). It gives you one place to manage datasets, configure models, run training with live feedback, optimize and export weights, and try out inference on images, video, or live streams.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install flashstudio
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
That's it — FlashDet and the core dependencies come along automatically, so there's no repository checkout or manual setup required.
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
|
|
17
|
+
Launch the app from your terminal:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
flashstudio
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Or from Python:
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
from flashstudio import launch
|
|
27
|
+
launch()
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Then open **http://localhost:8501** in your browser.
|
|
31
|
+
|
|
32
|
+
## Google Colab
|
|
33
|
+
|
|
34
|
+
FlashStudio works in Colab with no tokens, tunnels, or signups:
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
!pip install -q flashstudio
|
|
38
|
+
|
|
39
|
+
from flashstudio import launch
|
|
40
|
+
launch()
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Colab is detected automatically and the built-in proxy gives you a clickable, working URL. If you'd rather use a stable public address, pass an ngrok token instead:
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
launch(ngrok_token="YOUR_TOKEN")
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Grab a free token from the [ngrok dashboard](https://dashboard.ngrok.com/get-started/your-authtoken).
|
|
50
|
+
|
|
51
|
+
## What You Get
|
|
52
|
+
|
|
53
|
+
- **Guided workflow** — move from Dashboard → Data → Model → Training → Export → Inference, with pipeline readiness checks and hints about what to do next.
|
|
54
|
+
- **Project workspaces** — each project keeps its own datasets, runs, checkpoints, and saved UI state. Switch projects without losing your place.
|
|
55
|
+
- **Data tools** — upload ZIP/TAR archives or pull datasets from the FlashDet registry, preview annotations, verify splits, repair broken COCO/YOLO labels, edit boxes by hand, and run a quality report.
|
|
56
|
+
- **Framework-first model setup** — FlashDet (Pico through X, including the Pico-Zoo backbones), Ultralytics YOLOv8/v9/v10/v11, and YOLOX for inference and export.
|
|
57
|
+
- **Training cockpit** — preflight checks, launch/pause/resume/stop, live loss curves, epoch visualizations, ground-truth verification, logs, checkpoints, and cross-run comparison.
|
|
58
|
+
- **Weight Hub** — download FlashDet registry and Ultralytics checkpoints directly from the training or inference pages.
|
|
59
|
+
- **Export & optimize** — ONNX and TorchScript export, TensorRT when available, layer/kernel fusion, ONNX parity checks, INT8 quantization, and FPS/latency benchmarks.
|
|
60
|
+
- **Inference** — FlashDet, Ultralytics, ONNX Runtime, TorchScript, and TensorRT engines on images, video, or RTSP/webcam streams.
|
|
61
|
+
- **Live inference** — real-time FPS and detections, MP4 capture, and a multi-camera grid.
|
|
62
|
+
- **Zones & solutions** — polygon, rectangle, and line zones with 16 built-in solutions.
|
|
63
|
+
- **Active learning** — export low-confidence detections for review and retraining.
|
|
64
|
+
- **Dependency hints** — in-app guidance (and one-click installs) for optional runtimes and frameworks.
|
|
65
|
+
|
|
66
|
+
## Supported Models
|
|
67
|
+
|
|
68
|
+
| Model | Params | Best For |
|
|
69
|
+
|-------|--------|----------|
|
|
70
|
+
| FlashDet-Pico | ~298K | Edge / MCU |
|
|
71
|
+
| FlashDet-Nano | ~790K | Embedded / IoT |
|
|
72
|
+
| FlashDet-Small | ~1.8M | General purpose |
|
|
73
|
+
| FlashDet-Medium | ~3.6M | High accuracy |
|
|
74
|
+
| FlashDet-Large | ~5.8M | High accuracy |
|
|
75
|
+
| FlashDet-X | ~9.0M | Server / max accuracy |
|
|
76
|
+
|
|
77
|
+
**Training backends:** FlashDet Trainer (default) or Ultralytics (YOLOv8/v9/v10/v11).
|
|
78
|
+
|
|
79
|
+
**Inference backends:** FlashDet `.pth`, Ultralytics `.pt`, ONNX Runtime, TorchScript, and TensorRT `.engine`.
|
|
80
|
+
|
|
81
|
+
## Requirements
|
|
82
|
+
|
|
83
|
+
- Python 3.10 or newer
|
|
84
|
+
- FlashDet (installed automatically)
|
|
85
|
+
- Ultralytics + ONNX Runtime for external YOLO/ONNX models
|
|
86
|
+
- TensorRT for `.engine` inference (optional)
|
|
87
|
+
- An ngrok account only if you want a stable public Colab URL (optional)
|
|
88
|
+
- A GPU is strongly recommended for training
|
|
89
|
+
|
|
90
|
+
## Links
|
|
91
|
+
|
|
92
|
+
- GitHub: https://github.com/FlashVision/FlashStudio
|
|
93
|
+
- FlashDet: https://github.com/FlashVision/FlashDet
|
|
94
|
+
- Organization: https://flashvision.github.io
|
|
95
|
+
|
|
96
|
+
## License
|
|
97
|
+
|
|
98
|
+
Apache 2.0 — see [LICENSE](https://github.com/FlashVision/FlashStudio/blob/main/LICENSE).
|