You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,13 @@ This is a part of the following paper. Please [cite](#citation) it when you use
12
12
13
13
## Install
14
14
15
-
Drag and drop [the extension file](https://github.com/ksugar/qupath-extension-sam/releases/download/v0.5.0/qupath-extension-sam-0.5.0.jar) to [QuPath](https://qupath.github.io) and restart it.
15
+
Drag and drop [the extension file](https://github.com/ksugar/qupath-extension-sam/releases/download/v0.6.0/qupath-extension-sam-0.6.0.jar) to [QuPath](https://qupath.github.io) and restart it.
16
16
17
17
Since QuPath v0.5.0, you can install the extension from the extension manager dialog by specifying `Owner` and `Repository` as shown below.
If you are using QuPath v0.4.x, you need to install [the extension file for QuPath v0.4.x](https://github.com/ksugar/qupath-extension-sam/releases/download/v0.4.1/qupath-extension-sam-0.4.1.jar).
21
+
If you are using QuPath v0.4.x, you need to install [the extension file for QuPath v0.4.x](https://github.com/ksugar/qupath-extension-sam/releases/download/v0.4.1/qupath-extension-sam-0.4.1.jar), which is now deprecated.
22
22
23
23
Please note that you need to set up the server following the instructions in the link below.
24
24
@@ -30,10 +30,10 @@ To update the `qupath-extension-sam`, follow the following instructions.
30
30
31
31
1. Open extensions directory from `Extensions` > `Installed extensions` > `Open extensions directory`
2. Replace `qupath-extension-sam-x.y.z.jar` with [the latest version of the extension file](https://github.com/ksugar/qupath-extension-sam/releases/download/v0.5.0/qupath-extension-sam-0.5.0.jar). If you are using QuPath v0.4.x, you need to install [the extension file for QuPath v0.4.x](https://github.com/ksugar/qupath-extension-sam/releases/download/v0.4.1/qupath-extension-sam-0.4.1.jar).
33
+
2. Replace `qupath-extension-sam-x.y.z.jar` with [the latest version of the extension file](https://github.com/ksugar/qupath-extension-sam/releases/download/v0.6.0/qupath-extension-sam-0.6.0.jar). If you are using QuPath v0.4.x, you need to install [the extension file for QuPath v0.4.x](https://github.com/ksugar/qupath-extension-sam/releases/download/v0.4.1/qupath-extension-sam-0.4.1.jar), which is now deprecated.
34
34
3. Restart QuPath application.
35
35
36
-
Please note that you need to also update the [samapi](https://github.com/ksugar/samapi/tree/v0.4.0) server.
36
+
Please note that you need to also update the [samapi](https://github.com/ksugar/samapi/tree/v0.5.0) server.
37
37
To keep updated with the latest samapi server, follow the instructions [here](https://github.com/ksugar/samapi#update).
38
38
39
39
## Usage
@@ -69,7 +69,7 @@ To keep updated with the latest samapi server, follow the instructions [here](ht
| SAM type | One of `vit_h (huge)`, `vit_l (large)`, `vit_b (base)`, or `vit_t (mobile)`. |
72
+
| SAM type | One of `vit_h (huge)`, `vit_l (large)`, `vit_b (base)`, `vit_t (mobile)`, `sam2_l (large)`, `sam2_bp (base plus)`, `sam2_s (small)`, or `sam2_t (tiny)`.|
73
73
| SAM weights | The SAM weights to use. The options are automatically fetched from the server. |
74
74
| Output type | If `Single Mask` is selected, the model will return single masks per prompt. If `Multi-mask` is selected, the model will return three masks per prompt. `Multi-mask (all)` keeps all three masks. One of the three masks is kept if the option `Multi-mask (largest)`, `Multi-mask (smallest)`, or `Multi-mask (best quality)` is selected. |
75
75
| Display names | Display the annotation names in the viewer. (this is a global preference) |
@@ -90,7 +90,7 @@ To keep updated with the latest samapi server, follow the instructions [here](ht
| SAM type | One of `vit_h (huge)`, `vit_l (large)`, `vit_b (base)`, or `vit_t (mobile)`. |
93
+
| SAM type | One of `vit_h (huge)`, `vit_l (large)`, `vit_b (base)`, `vit_t (mobile)`, `sam2_l (large)`, `sam2_bp (base plus)`, `sam2_s (small)`, or `sam2_t (tiny)`.|
94
94
| SAM weights | The SAM weights to use. The options are automatically fetched from the server. |
95
95
| Assign random colors | If checked and no path class is set in `Auto set` setting, assign random colors to new (unclassified) objects created by SAM. |
96
96
| Assign names | If checked, assign names to identify new objects as created by SAM, including quality scores. |
@@ -120,11 +120,11 @@ The weights file is downloaded from the URL and registered on the server. After
| SAM type | One of `vit_h (huge)`, `vit_l (large)`, `vit_b (base)`, `vit_t (mobile)`, `sam2_l (large)`, `sam2_bp (base plus)`, `sam2_s (small)`, or `sam2_t (tiny)`.|
126
+
| Name | The SAM weights name to register. It needs to be unique in the same SAM type. |
127
+
| URL | The URL to the SAM weights file. |
128
128
129
129
#### SAM weights catalog
130
130
@@ -173,6 +173,10 @@ If you select a class in `Auto set` in the Annotations tab, it is used for a new
173
173
174
174
## Updates
175
175
176
+
### v0.6.0
177
+
- Support [SAM2](https://ai.meta.com/sam2/) models. The SAM2 models are available from the [samapi](https://github.com/ksugar/samapi) server `v0.5.0` and above.
178
+
- Use the current view for the encoder input in the rectangle mode.
179
+
176
180
### v0.5.0
177
181
- QuPath v0.5 support by [@Rylern](https://github.com/Rylern) and [@ksugar](https://github.com/ksugar) in [ksugar/samapi#12](https://github.com/ksugar/qupath-extension-sam/pull/12)
0 commit comments