Skip to content

Commit 692fd92

Browse files
committed
better readme (workflow chart)
1 parent ee47adb commit 692fd92

File tree

4 files changed

+41
-30
lines changed

4 files changed

+41
-30
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ data/
66
src/classification/runs/
77
src/classification/nn_pytorch.py
88
models/
9+
*/**/*.ipynb

README.md

Lines changed: 40 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,14 @@ To obtain ground-truth data to train the supervised segmentation and classificat
55
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.
66

77

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
358

36-
## src/ directory
379

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
4010

4111

4212
# Training Pipeline
13+
14+
![training steps](training.png)
15+
4316
## Export data
4417

4518
- Open project with annotations in QuPath
@@ -67,6 +40,43 @@ Alternatively, data folders with individual images, their crops containing one o
6740

6841
# Inference Pipeline
6942

43+
![inference steps](inference.png)
44+
7045
- Use your segmentation model to predict segmentation masks for a whole directory with new data (album solution: stardist_predict)
7146
- Use segmentation_to_classification.py to extract the objects from the segmentation masks and store them in a new directory
7247
- 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

inference.png

24.9 KB
Loading

training.png

41.7 KB
Loading

0 commit comments

Comments
 (0)