Skip to content

Commit e3cc829

Browse files
authored
Added a Close Button for MacOS (Issue #263) (#264)
* Added a Close Button for MacOS (Issue #263) * Updated docs
1 parent eb912fb commit e3cc829

File tree

12 files changed

+46
-14
lines changed

12 files changed

+46
-14
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
*.pyc
33
ISAT/checkpoints/sam_hq_vit_h.pth
44
ISAT/checkpoints/mobile_sam.pt
5+
ISAT/isat.yaml
6+
*.yaml
7+
ISAT/software.yaml
8+
ISAT/isat.yaml

ISAT/widgets/model_manager_dialog.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ def __init__(self, parent, mainwindow):
115115
self.download_thread_dict = {}
116116
self.init_ui()
117117
self.pushButton_clear_tmp.clicked.connect(self.clear_tmp)
118+
119+
# Add close button
120+
self.pushButton_close = QtWidgets.QPushButton(self)
121+
self.pushButton_close.setText("Close")
122+
self.pushButton_close.clicked.connect(self.close)
123+
self.horizontalLayout.addWidget(self.pushButton_close)
118124

119125
def init_ui(self):
120126
for i in range(self.gridLayout.count()):

README-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
url={https://github.com/yatengLG/ISAT_with_segment_anything},
5454
note={Updated on 2025-02-07},
5555
year={2024},
56-
version={1.29}
56+
version={1.33}
5757
}
5858
```

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ Please refers to our latest [Documentation in English](https://isat-with-segment
5454
url={https://github.com/yatengLG/ISAT_with_segment_anything},
5555
note={Updated on 2025-02-07},
5656
year={2024},
57-
version={1.29}
57+
version={1.33}
5858
}
5959
```
-32.9 KB
Binary file not shown.
37 Bytes
Binary file not shown.

docs/build/doctrees/index.doctree

27.2 KB
Binary file not shown.

docs/build/doctrees/usage.doctree

-12.9 KB
Binary file not shown.

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ Option 1: From Source Code
4040
pip install -r requirements.txt
4141
4242
43+
**For macOS users**:
44+
45+
It is important to follow the installation order to ensure SAM can be load on CPU
46+
47+
.. code-block:: bash
48+
49+
git clone https://github.com/yatengLG/ISAT_with_segment_anything.git
50+
cd ISAT_with_segment_anything
51+
pip timm imgviz scikit-image opencv-python pillow pyyaml pycocotools shapely hydra-core tqdm fuzzywuzzy python-Levenshtein iopath
52+
conda install conda-forge::pyqt
53+
conda install pytorch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 -c pytorch
54+
4355
3. **Download Segment anything pretrained checkpoint**
4456

4557

@@ -49,9 +61,6 @@ Option 1: From Source Code
4961
5062

5163

52-
|
53-
54-
5564
4. **Run**
5665

5766

docs/build/html/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)