Skip to content

Commit 1027252

Browse files
Update README.md
1 parent 6ae81e7 commit 1027252

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ WIDTH = 320
8080
Load the data
8181

8282
```python
83-
X_train, y_train, X_val, y_val = get_data(...)
83+
TrainingGenerator, ValidationGenerator = get_data(...)
8484
```
8585

8686
Create the base model that works as backbone for the segmentation model:
8787

8888
```python
89-
base_model, layers, layer_names = tasm.create_base_model(name=BACKBONE_NAME, weights=WEIGHTS, height=HEIGHT, width=WIDTH, include_top=False, pooling=None)
89+
base_model, layers, layer_names = tasm.create_base_model(name=BACKBONE_NAME, weights=WEIGHTS, height=HEIGHT, width=WIDTH)
9090
```
9191

9292
Define a Model and compile it with an appropriate loss:
@@ -107,18 +107,18 @@ Now finally train the model:
107107

108108
```python
109109
history = model.fit(
110-
x=X_train,
111-
y=y_train,
110+
TrainingGenerator
112111
batch_size=8,
113112
epochs=50,
114-
validation_data(x_val, y_val)
113+
validation_data=ValidationGenerator
115114
)
116115
```
117116

118117
You can use the fit_generator method too, e.g. if you want to apply augmentations to the data.
119118
For complete training pipelines, go to the <a href="https://github.com/JanMarcelKezmann/TensorFlow-Advanced-Segmentation-Models/blob/master/examples">Examples</a> folder
120119

121120
## Examples
121+
122122
- [Jupyter Notebook] Multi-class (3 classes) segmentation (sky, building, background) on CamVid dataset <a href="https://github.com/JanMarcelKezmann/TensorFlow-Advanced-Segmentation-Models/blob/master/examples/TASM_Example_1.ipynb">here</a>
123123
- [Jupyter Notebook] Multi-class (11 classes) segmentation on CamVid dataset <a href="https://github.com/JanMarcelKezmann/TensorFlow-Advanced-Segmentation-Models/blob/master/examples/TASM_Example_2.ipynb">here</a>
124124
- [Jupyter Notebook] Multi-class (11 classes) segmentation on CamVid dataset with a custom training loop<a href="https://github.com/JanMarcelKezmann/TensorFlow-Advanced-Segmentation-Models/blob/master/examples/TASM_Example_3.ipynb">here</a>

0 commit comments

Comments
 (0)