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
+38-1Lines changed: 38 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ StrainNet is a deep learning based method for predicting strain from images
22
22
-[Applying StrainNet to experimental images](#applying-strainnet-to-experimental-images)
23
23
-[Arguments](#arguments-2)
24
24
-[Applying StrainNet to human flexor tendons *in vivo*](#applying-strainnet-to-human-flexor-tendons-in-vivo)
25
+
-[Retraining StrainNet further with experimental images](#retraining-strainnet-further-with-experimental-images)
26
+
-[TBD](#tbd)
25
27
-[Citation](#citation)
26
28
-[TBD](#tbd)
27
29
-[LICENSE](#license)
@@ -116,7 +118,7 @@ python train.py --help
116
118
117
119
Or examine the [`core/arguments.py`](core/arguments.py) Python script.
118
120
119
-
## Resuming training
121
+
## Resuming training on pre-trained models
120
122
121
123
You can also resume training on models for StrainNet by specifying the `--resume` flag and the path to the pre-trained model. For example:
122
124
@@ -190,6 +192,41 @@ To run the `eval.sh` script, simply execute the following command from the termi
190
192
. scripts/eval.sh
191
193
```
192
194
195
+
# Applying StrainNet to experimental images
196
+
197
+
To apply StrainNet to experimental images that do not have known strains, you can use the apply2experimental.py script. This script loads the trained StrainNet model and processes the experimental images to predict the strains.
198
+
199
+
To apply StrainNet to experimental images, use the following command:
Replace path/to/trained/model with the actual path to the trained StrainNet model, and path/to/experimental/data with the actual path to the experimental data.
205
+
206
+
The apply2experimental.py script will output the predicted strains to the terminal and/or save them to a file, depending on the specified command line arguments.
207
+
208
+
## Arguments
209
+
210
+
You can see a list of all the available arguments for the apply2experimental.py script by using the --help flag:
211
+
212
+
```
213
+
python apply2experimental.py --help
214
+
```
215
+
Note: The apply2experimental.py script requires the experimental images to be in a specific format that is compatible with StrainNet.
216
+
217
+
## Applying StrainNet to human flexor tendons in vivo
218
+
219
+
To apply the pretrained models real experimental data, you can use the flexor_tendon.sh script. This script will invoke the necessary scripts and pass the appropriate arguments to them.
220
+
221
+
To run the flexor_tendon.sh script, simply execute the following command from the terminal:
222
+
223
+
```
224
+
. scripts/flexor_tendon.sh
225
+
```
226
+
227
+
# Retraining StrainNet further with experimental images
0 commit comments