Skip to content

Commit 9c13374

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents ea9a6dd + 896df63 commit 9c13374

27 files changed

+335
-205
lines changed

ISAT/segment_any/model_zoo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
'https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth',
5959
'https://www.modelscope.cn/api/v1/models/yatengLG/ISAT_with_segment_anything_checkpoints/repo?Revision=master&FilePath=checkpoints/sam_vit_h_4b8939.pth'
6060
],
61-
'memory':'6462M',
62-
'bf16_memory':'3378M',
63-
'params':'2.6G'
61+
'memory': '6462M',
62+
'bf16_memory': '3378M',
63+
'params': '2.6G'
6464
},
6565
'sam_vit_l_0b3195.pth':
6666
{
27.6 KB
Binary file not shown.
-117 Bytes
Binary file not shown.

docs/build/doctrees/index.doctree

742 Bytes
Binary file not shown.

docs/build/doctrees/usage.doctree

6.16 KB
Binary file not shown.

docs/build/html/_sources/features.rst.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Language switching
4040
------------------------------------------------------------------------
4141
The software provides two interfaces, Chinese and English, which can be switched at any time.
4242

43-
.. image:: ../../../display/双语界面.gif
43+
.. image:: ../../display/双语界面.gif
4444
:alt: Bilingual Interface
4545

4646
------------------------------------------------------------------------
@@ -49,7 +49,7 @@ Model switching
4949
------------------------------------------------------------------------
5050
Switch model among your downloaded models.
5151

52-
.. image:: ../../../display/模型切换.gif
52+
.. image:: ../../display/模型切换.gif
5353
:alt: Model switching
5454

5555
------------------------------------------------------------------------
@@ -62,7 +62,7 @@ When using SAM for semi-automatic annotation, convert SAM mask to contours using
6262
2. **External**: Saves external contours; internal holes in masks will be filled.
6363
3. **All**: Saves all contours; will add polygons with category __background__ for holes.
6464

65-
.. image:: ../../../display/轮廓保存模式.gif
65+
.. image:: ../../display/轮廓保存模式.gif
6666
:alt: Contour saving modes
6767

6868
------------------------------------------------------------------------
@@ -71,7 +71,7 @@ Occlusion adjustment
7171
------------------------------------------------------------------------
7272
Adjust occlusion for polygons with overlapping parts, choosing either **to top** or **to bottom** adjustment.
7373

74-
.. image:: ../../../display/图层调整遮挡关系.gif
74+
.. image:: ../../display/图层调整遮挡关系.gif
7575
:alt: Adjusting layer occlusion
7676

7777
------------------------------------------------------------------------
@@ -80,7 +80,7 @@ Quick jump to image
8080
------------------------------------------------------------------------
8181
Input an image name or index to quickly navigate to it.
8282

83-
.. image:: ../../../display/图片快速跳转.gif
83+
.. image:: ../../display/图片快速跳转.gif
8484
:alt: Quick image jump
8585

8686
------------------------------------------------------------------------
@@ -89,7 +89,7 @@ Statusbar information
8989
------------------------------------------------------------------------
9090
Obtain position and pixel value information. If using SAM, CUDA memory usage is also displayed on the status bar.
9191

92-
.. image:: ../../../display/状态栏信息.gif
92+
.. image:: ../../display/状态栏信息.gif
9393
:alt: Statusbar Information
9494

9595
------------------------------------------------------------------------
@@ -98,7 +98,7 @@ Preview annotation result
9898
------------------------------------------------------------------------
9999
Click the **Bit map** button to preview semantic and instance annotation results.
100100

101-
.. image:: ../../../display/实时预览.gif
101+
.. image:: ../../display/实时预览.gif
102102
:alt: Real-time preview
103103

104104
------------------------------------------------------------------------
@@ -107,7 +107,7 @@ Import/export config file
107107
------------------------------------------------------------------------
108108
Save categories and other parameters using a configuration file.
109109

110-
.. image:: ../../../display/配置文件导入导出.gif
110+
.. image:: ../../display/配置文件导入导出.gif
111111
:alt: Config file import/export
112112

113113
------------------------------------------------------------------------
@@ -116,7 +116,7 @@ Drag to draw
116116
------------------------------------------------------------------------
117117
Create polygons by keeping the mouse left button pressed and dragging. Use a click for straight lines and dragging for curves.
118118

119-
.. image:: ../../../display/拖动绘制.gif
119+
.. image:: ../../display/拖动绘制.gif
120120
:alt: Drag to draw
121121

122122
------------------------------------------------------------------------
@@ -125,7 +125,7 @@ Quick browsing
125125
------------------------------------------------------------------------
126126
Select a group ID from a dropdown to view the target, supporting quick switching between different groups via the scroll wheel.
127127

128-
.. image:: ../../../display/快速浏览.gif
128+
.. image:: ../../display/快速浏览.gif
129129
:alt: Quick browsing
130130

131131
------------------------------------------------------------------------
@@ -134,7 +134,7 @@ Detail inspection
134134
------------------------------------------------------------------------
135135
Switch annotations one by one using group IDs, adapting the view to the size of the annotation for detailed inspection.
136136

137-
.. image:: ../../../display/细节检查.gif
137+
.. image:: ../../display/细节检查.gif
138138
:alt: Detail inspection
139139

140140
------------------------------------------------------------------------
@@ -143,7 +143,7 @@ Move and delete vertices
143143
------------------------------------------------------------------------
144144
Select vertices using CTRL and move or delete them.
145145

146-
.. image:: ../../../display/顶点批量移动与删除.gif
146+
.. image:: ../../display/顶点批量移动与删除.gif
147147
:alt: Move and delete vertices
148148

149149
------------------------------------------------------------------------
@@ -152,7 +152,7 @@ SAM features cache
152152
------------------------------------------------------------------------
153153
Features are encoded using QThread to speed up image switching when using large models. Automatically encodes features for the current, previous, and next images.
154154

155-
.. image:: ../../../display/sam缓存.gif
155+
.. image:: ../../display/sam缓存.gif
156156
:alt: SAM features cache
157157

158158
------------------------------------------------------------------------
@@ -161,7 +161,7 @@ Model manager
161161
------------------------------------------------------------------------
162162
Supports multithreaded downloading with options to pause and resume transfers.
163163

164-
.. image:: ../../../display/模型下载.gif
164+
.. image:: ../../display/模型下载.gif
165165
:alt: Model manager
166166

167167
------------------------------------------------------------------------
@@ -170,7 +170,7 @@ Repaint
170170
------------------------------------------------------------------------
171171
Use the shortcut 'R' to switch to repaint mode. Start by selecting one vertex and end by selecting another vertex.
172172

173-
.. image:: ../../../display/重绘.gif
173+
.. image:: ../../display/重绘.gif
174174
:alt: Repaint
175175

176176
------------------------------------------------------------------------
@@ -184,7 +184,7 @@ Intersection
184184
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
185185
Calculate and display the intersection of two polygons.
186186

187-
.. image:: ../../../display/交集.gif
187+
.. image:: ../../display/交集.gif
188188
:alt: Intersection
189189

190190
------------------------------------------------------------------------
@@ -193,7 +193,7 @@ Union
193193
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
194194
Calculate and display the union of two polygons.
195195

196-
.. image:: ../../../display/并集.gif
196+
.. image:: ../../display/并集.gif
197197
:alt: Union
198198

199199
------------------------------------------------------------------------
@@ -202,7 +202,7 @@ Difference
202202
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
203203
Calculate and display the difference between two polygons.
204204

205-
.. image:: ../../../display/差集.gif
205+
.. image:: ../../display/差集.gif
206206
:alt: Difference
207207

208208
------------------------------------------------------------------------
@@ -211,7 +211,7 @@ XOR (Symmetric Difference)
211211
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
212212
Calculate and display the symmetric difference (XOR) between two polygons.
213213

214-
.. image:: ../../../display/异或.gif
214+
.. image:: ../../display/异或.gif
215215
:alt: XOR
216216

217217

docs/build/html/_sources/index.rst.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ Welcome to ISAT-SAM's documentation!
33

44
**ISAT-SAM** stands for Interactive Semi-Automatic Annotation Tool with `Segment Anything Model <https://github.com/facebookresearch/segment-anything>`_
55

6-
.. image:: ../../../display/标注.gif
6+
.. image:: ../../display/标注.gif
77
:alt: Software demo
88

99
| The annotations are stored in ISAT json format, similar to MSCOCO:
1010
1111

1212
* **info**:
13-
* **description**: Always 'ISAT'
13+
* **description**: Always 'ISAT' for the software to recoginize
1414
* **folder**: The directory where the images are stored
15-
* **name**: The name of the image file
15+
* **name**: The name (path) of the image file
1616
* **width**, **height**, **depth**: The dimensions of the image; depth is 3 for RGB images
1717
* **note**: An optional field for any additional notes related to the image
1818

@@ -24,6 +24,7 @@ Welcome to ISAT-SAM's documentation!
2424
* **layer**: A float indicating the sequence of the object. It increments within the same group, starting at 1.0
2525
* **bbox**: The bounding box coordinates in the format [x_min, y_min, x_max, y_max]
2626
* **iscrowd**: A boolean value indicating if the object is part of a crowd
27+
* **note**: An optional field for any additional notes related to the annotation mask
2728

2829

2930
Check :doc:`features` for full features demonstration. Or click :doc:`usage` to **get started!**

docs/build/html/_sources/usage.rst.txt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Option 1: From Source Code
3434

3535
After version 0.0.3, you can manage checkpoints within the GUI, click [menubar]-[SAM]-[Model manage] to open the GUI.
3636

37-
Now support `SAM <https://github.com/facebookresearch/segment-anything>`_, `Sam-HQ <https://github.com/SysCV/sam-hq>`_, `MobileSAM <https://github.com/ChaoningZhang/MobileSAM>`_, and `EdgeSAM <https://github.com/chongzhou96/EdgeSAM>`_ etc.
37+
Now support `SAM2 <https://github.com/facebookresearch/segment-anything-2>`_, `SAM <https://github.com/facebookresearch/segment-anything>`_, `Sam-HQ <https://github.com/SysCV/sam-hq>`_, `MobileSAM <https://github.com/ChaoningZhang/MobileSAM>`_, and `EdgeSAM <https://github.com/chongzhou96/EdgeSAM>`_ etc.
3838

3939
.. list-table:: Pretrained Checkpoints
4040
:header-rows: 1
@@ -87,6 +87,22 @@ Option 1: From Source Code
8787
- `sam-med2d_b.pth <https://drive.google.com/file/d/1ARiB5RkSsWmAB_8mqWnwDF8ZKTtFwsjl/view?usp=drive_link>`_
8888
- 1500M
8989
- 2.4G
90+
* - SAM2
91+
- `sam2_hiera_large.pt <https://huggingface.co/yatengLG/ISAT_with_segment_anything_checkpoints/resolve/main/sam2_hiera_large.pt>`_
92+
- 4000M
93+
- 900M
94+
* -
95+
- `sam2_hiera_base_plus.pt <https://huggingface.co/yatengLG/ISAT_with_segment_anything_checkpoints/resolve/main/sam2_hiera_base_plus.pt>`_
96+
- 4000M
97+
- 324M
98+
* -
99+
- `sam2_hiera_small.pt <https://huggingface.co/yatengLG/ISAT_with_segment_anything_checkpoints/resolve/main/sam2_hiera_small.pt>`_
100+
- 3000M
101+
- 185M
102+
* -
103+
- `sam2_hiera_tiny.pt <https://huggingface.co/yatengLG/ISAT_with_segment_anything_checkpoints/resolve/main/sam2_hiera_tiny.pt>`_
104+
- 2400M
105+
- 156M
90106

91107
4. **Run**
92108
Execute the main application:

docs/build/html/_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const DOCUMENTATION_OPTIONS = {
22
VERSION: '',
3-
LANGUAGE: 'en',
3+
LANGUAGE: 'EN',
44
COLLAPSE_INDEX: false,
55
BUILDER: 'html',
66
FILE_SUFFIX: '.html',

docs/build/html/features.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html class="writer-html5" lang="en" data-content_root="./">
2+
<html class="writer-html5" lang="EN" data-content_root="./">
33
<head>
44
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
55

@@ -15,13 +15,13 @@
1515

1616
<script src="_static/jquery.js?v=5d32c60e"></script>
1717
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
18-
<script src="_static/documentation_options.js?v=5929fcd5"></script>
18+
<script src="_static/documentation_options.js?v=8f91ca17"></script>
1919
<script src="_static/doctools.js?v=9a2dae69"></script>
2020
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
2121
<script src="_static/js/theme.js"></script>
2222
<link rel="index" title="Index" href="genindex.html" />
2323
<link rel="search" title="Search" href="search.html" />
24-
<link rel="next" title="Usage" href="usage.html" />
24+
<link rel="next" title="Installation" href="usage.html" />
2525
<link rel="prev" title="Welcome to ISAT-SAM’s documentation!" href="index.html" />
2626
</head>
2727

@@ -84,7 +84,7 @@
8484
</li>
8585
</ul>
8686
</li>
87-
<li class="toctree-l1"><a class="reference internal" href="usage.html">Usage</a></li>
87+
<li class="toctree-l1"><a class="reference internal" href="usage.html">Installation</a></li>
8888
</ul>
8989

9090
</div>
@@ -275,7 +275,7 @@ <h3>XOR (Symmetric Difference)<a class="headerlink" href="#xor-symmetric-differe
275275
</div>
276276
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
277277
<a href="index.html" class="btn btn-neutral float-left" title="Welcome to ISAT-SAM’s documentation!" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
278-
<a href="usage.html" class="btn btn-neutral float-right" title="Usage" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
278+
<a href="usage.html" class="btn btn-neutral float-right" title="Installation" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
279279
</div>
280280

281281
<hr/>

0 commit comments

Comments
 (0)