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
By default, the model used is `cyto3`, if you want to use HE model, you must provide the `--model-type he` argument.
60
+
61
+
```bash
62
+
tuirng_segment infer --image-path /path/to/image --model-type he --output-dir /path/to/output_dir
63
+
```
59
64
60
65
Output format:
61
66
@@ -107,10 +112,18 @@ stitch:
107
112
---
108
113
**3. Specify the `channels`**
109
114
110
-
To specify channels to segment, use the `--channels` flag. The channels are specified as a comma-separated list of channel indices where the first channel is for membrane and the second channel is for nucleus. If the nucleus channel is not specified, a zero channel is used.
<!-- To specify channels to segment, use the `--channels` flag. The channels are specified as a comma-separated list of channel indices where the first channel is for membrane and the second channel is for nucleus. If the nucleus channel is not specified, a zero channel is used. -->
116
+
To specify channels to segment, use the `--channels` flag. The channels are specified as a comma-separated list of channel indices. You must past the channel indices in the order of the model input.
117
+
118
+
- Fluorescence image: The first channel is for membrane and the second channel is for nucleus. If the nucleus channel is not specified, a zero channel is used.
- Hematoxylin and eosin (H&E) image: The first channel is for red, the second channel is for green, and the third channel is for blue (RGB).
124
+
```bash
125
+
tuirng_segment infer --image-path /path/to/image --model-type he --channels 0,1,2
126
+
```
114
127
If the image has the channel in the last dimension, use the `--channel-last` flag.
115
128
116
129
---
@@ -150,14 +163,14 @@ postprocess:
150
163
```
151
164
152
165
---
153
-
**6. Checkpoint download**
166
+
**6. Checkpoint download**
154
167
155
-
By default, the model checkpoints are downloaded if they are not present in the cache directory. If you want to use a custom checkpoint from cellpose training pipeline, you can set the model type as `--model-type manual` and specify the paths to the model and size model checkpoints using the `--model-path` and `--size-model-path` flags, respectively. You may skip specifying `--size-model-path` if a provided scale is specified by ``--scale``.
168
+
By default, the model checkpoints are downloaded if they are not present in the cache directory. If you want to use a custom checkpoint from cellpose training pipeline, you can specify the paths to the model and size model checkpoints using the `--model-path` and `--size-model-path` flags, respectively. You may skip specifying `--size-model-path` if a provided scale is specified by ``--scale``.
0 commit comments