samannot 0.6.0__py3-none-any.whl
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 samannot might be problematic. Click here for more details.
- samannot/__init__.py +20 -0
- samannot/__main__.py +4 -0
- samannot/annotator.py +1019 -0
- samannot/functional_widget_utils.py +63 -0
- samannot/keycodes_linux.json +55 -0
- samannot/keycodes_windows.json +55 -0
- samannot/label.py +83 -0
- samannot/main.py +12 -0
- samannot/main_window.py +1809 -0
- samannot/model_downloader.py +378 -0
- samannot/sam2_configs/__init__.py +5 -0
- samannot/sam2_configs/sam2.1_hiera_l.yaml +120 -0
- samannot/sam2_configs/sam2_hiera_b+.yaml +113 -0
- samannot/sam2_configs/sam2_hiera_b+_old.yaml +113 -0
- samannot/sam2_configs/sam2_hiera_l.yaml +117 -0
- samannot/sam2_configs/sam2_hiera_l_old.yaml +117 -0
- samannot/sam2_configs/sam2_hiera_s.yaml +116 -0
- samannot/sam2_configs/sam2_hiera_s_old.yaml +116 -0
- samannot/sam2_configs/sam2_hiera_t.yaml +118 -0
- samannot/sam2_configs/sam2_hiera_t_old.yaml +118 -0
- samannot/sam_annotator.py +246 -0
- samannot/system_monitor.py +71 -0
- samannot/user_guide.py +216 -0
- samannot/visual_widget_utils.py +61 -0
- samannot-0.6.0.dist-info/METADATA +111 -0
- samannot-0.6.0.dist-info/RECORD +30 -0
- samannot-0.6.0.dist-info/WHEEL +5 -0
- samannot-0.6.0.dist-info/entry_points.txt +2 -0
- samannot-0.6.0.dist-info/licenses/LICENSE +21 -0
- samannot-0.6.0.dist-info/top_level.txt +1 -0
samannot/__init__.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""SAMannot: Interactive video instance segmentation annotation tool based on SAM 2."""
|
|
2
|
+
|
|
3
|
+
try:
|
|
4
|
+
from hydra.core.global_hydra import GlobalHydra
|
|
5
|
+
from hydra import initialize_config_module
|
|
6
|
+
|
|
7
|
+
if not GlobalHydra.instance().is_initialized():
|
|
8
|
+
initialize_config_module("samannot.sam2_configs", version_base="1.2")
|
|
9
|
+
except Exception:
|
|
10
|
+
pass
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def main():
|
|
14
|
+
"""Launch the SAMannot GUI application."""
|
|
15
|
+
from .main import main as _main
|
|
16
|
+
return _main()
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
__version__ = "0.6.0"
|
|
20
|
+
__all__ = ["main"]
|
samannot/__main__.py
ADDED