File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff 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
1717Run the following command to start the generation:
18- '''
18+ ```
1919python3 generate_images.py
20- '''
20+ ```
2121
2222You 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
3333This 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
7676To train a model on the prepared dataset run the following command:
77- '''
77+ ```
7878python3 train.py --config path/to/config
79- '''
79+ ```
8080
8181You 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
102102To test a model on the prepared dataset run the following command:
103- '''
103+ ```
104104python3 test.py --config path/to/config --model_weights path/to/model/weights
105- '''
105+ ```
106106
107107You can customize it with the following parameters:
108108- --workers: Number of workers (default: 100)
You can’t perform that action at this time.
0 commit comments