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
15
15
- Wikipedia Dataset: https://www.kaggle.com/c/wikipedia-image-caption
16
16
17
17
Run the following command to start the generation:
18
- '''
18
+ ```
19
19
python3 generate_images.py
20
- '''
20
+ ```
21
21
22
22
You can customize it with the following parameters:
23
23
- --workers: Number of workers (Default: 100)
@@ -31,7 +31,7 @@ You can customize it with the following parameters:
31
31
- --output_path: Path in which the images should be saved
32
32
33
33
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
+ ```
35
35
- datasets
36
36
- train
37
37
- Prompt 0
@@ -69,14 +69,14 @@ This should be run for each dataset and for each part of the dataset (train/val/
69
69
- ...
70
70
- Prompt N
71
71
- ...
72
-
72
+ ```
73
73
74
74
# Training
75
75
76
76
To train a model on the prepared dataset run the following command:
77
- '''
77
+ ```
78
78
python3 train.py --config path/to/config
79
- '''
79
+ ```
80
80
81
81
You can customize it with the following parameters:
82
82
- --num_epochs: Number of epochs for training (default: 30)
@@ -100,9 +100,9 @@ You can customize it with the following parameters:
100
100
# Inference
101
101
102
102
To test a model on the prepared dataset run the following command:
103
- '''
103
+ ```
104
104
python3 test.py --config path/to/config --model_weights path/to/model/weights
105
- '''
105
+ ```
106
106
107
107
You can customize it with the following parameters:
108
108
- --workers: Number of workers (default: 100)
You can’t perform that action at this time.
0 commit comments