samannot 0.6.1__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.
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
@@ -0,0 +1,4 @@
1
+ from samannot.main import main
2
+
3
+ if __name__ == "__main__":
4
+ main()