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
+40-30Lines changed: 40 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -5,41 +5,14 @@ To obtain ground-truth data to train the supervised segmentation and classificat
5
5
Alternatively, data folders with individual images, their crops containing one object at a time with a file name containing `(class_name)` and the masks for the whole images can be provided as well.
6
6
7
7
8
-
# Directory structure
9
-
## data/ directory
10
-
11
-
-_data_sets_: contains the preprocessed and model-specific reordered data sets used for training and testing
12
-
-_..._: one subdirectory for each model
13
-
-_test_: contains the test data set
14
-
-_img_: contains the test images
15
-
- as tiff files
16
-
-_mask_: contains the test labels
17
-
- as tiff files
18
-
-_train_: contains the train data set
19
-
-_img_: contains the train images
20
-
- as tiff files
21
-
-_mask_: contains the train labels
22
-
- as tiff files
23
-
-_preprocessed_: contains the preprocessed data sets
24
-
-_anno_to_mask_: contains the masks generated from the annotations (using the src/convert_label.py script)
25
-
- as tiff files
26
-
-_images_: contains the preprocessed images (using the src/preprocess_dataset.py script)
27
-
- as tiff files
28
-
-_labels_: contains the labels preprocessed from anno_to_mask (using the src/preprocess_dataset.py script)
29
-
- as tiff files
30
-
-_raw_data_: contains the raw data sets (unchanged)
31
-
-_annotations_json_: contains the annotations in geojson format
32
-
- as geojson files
33
-
-_raw_images_: contains the raw images
34
-
- as jpg & tiff files
35
8
36
-
## src/ directory
37
9
38
-
-_convert_label.py_: converts the annotations from geojson to tiff format
39
-
-_preprocess_dataset.py_: preprocesses the data set (raw images and tiff labels) to the preprocessed data set
40
10
41
11
42
12
# Training Pipeline
13
+
14
+

15
+
43
16
## Export data
44
17
45
18
- Open project with annotations in QuPath
@@ -67,6 +40,43 @@ Alternatively, data folders with individual images, their crops containing one o
67
40
68
41
# Inference Pipeline
69
42
43
+

44
+
70
45
- Use your segmentation model to predict segmentation masks for a whole directory with new data (album solution: stardist_predict)
71
46
- Use segmentation_to_classification.py to extract the objects from the segmentation masks and store them in a new directory
72
47
- Use your trained classifier to predict the class of the objects (nn_pytorch.py) and obtain a csv file with the predictions for each object
48
+
49
+
50
+
51
+
# Directory structure
52
+
## `data/` directory
53
+
54
+
-_data_sets_: contains the preprocessed and model-specific reordered data sets used for training and testing
55
+
-_..._: one subdirectory for each model
56
+
-_test_: contains the test data set
57
+
-_img_: contains the test images
58
+
- as tiff files
59
+
-_mask_: contains the test labels
60
+
- as tiff files
61
+
-_train_: contains the train data set
62
+
-_img_: contains the train images
63
+
- as tiff files
64
+
-_mask_: contains the train labels
65
+
- as tiff files
66
+
-_preprocessed_: contains the preprocessed data sets
67
+
-_anno_to_mask_: contains the masks generated from the annotations (using the src/convert_label.py script)
68
+
- as tiff files
69
+
-_images_: contains the preprocessed images (using the src/preprocess_dataset.py script)
70
+
- as tiff files
71
+
-_labels_: contains the labels preprocessed from anno_to_mask (using the src/preprocess_dataset.py script)
72
+
- as tiff files
73
+
-_raw_data_: contains the raw data sets (unchanged)
74
+
-_annotations_json_: contains the annotations in geojson format
75
+
- as geojson files
76
+
-_raw_images_: contains the raw images
77
+
- as jpg & tiff files
78
+
79
+
## `src/` directory
80
+
81
+
-_convert_label.py_: converts the annotations from geojson to tiff format
82
+
-_preprocess_dataset.py_: preprocesses the data set (raw images and tiff labels) to the preprocessed data set
0 commit comments