Skip to content

Commit 9379b02

Browse files
Update README.md
1 parent ae5c115 commit 9379b02

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ To train and test a new model it is necessary to generate one synthetic image fo
1515
- Wikipedia Dataset: https://www.kaggle.com/c/wikipedia-image-caption
1616

1717
Run the following command to start the generation:
18-
'''
18+
```
1919
python3 generate_images.py
20-
'''
20+
```
2121

2222
You can customize it with the following parameters:
2323
- --workers: Number of workers (Default: 100)
@@ -31,7 +31,7 @@ You can customize it with the following parameters:
3131
- --output_path: Path in which the images should be saved
3232

3333
This should be run for each dataset and for each part of the dataset (train/val/test). The output folders will look like:
34-
34+
```
3535
- datasets
3636
- train
3737
- Prompt 0
@@ -69,14 +69,14 @@ This should be run for each dataset and for each part of the dataset (train/val/
6969
- ...
7070
- Prompt N
7171
- ...
72-
72+
```
7373

7474
# Training
7575

7676
To train a model on the prepared dataset run the following command:
77-
'''
77+
```
7878
python3 train.py --config path/to/config
79-
'''
79+
```
8080

8181
You can customize it with the following parameters:
8282
- --num_epochs: Number of epochs for training (default: 30)
@@ -100,9 +100,9 @@ You can customize it with the following parameters:
100100
# Inference
101101

102102
To test a model on the prepared dataset run the following command:
103-
'''
103+
```
104104
python3 test.py --config path/to/config --model_weights path/to/model/weights
105-
'''
105+
```
106106

107107
You can customize it with the following parameters:
108108
- --workers: Number of workers (default: 100)

0 commit comments

Comments
 (0)