Update README.md
Browse files
README.md
CHANGED
@@ -45,7 +45,7 @@ print(translation)
|
|
45 |
Use the `train_model` function in `train.py` to train your model.
|
46 |
```
|
47 |
from train import train_model
|
48 |
-
from
|
49 |
|
50 |
config = load_config(file_name='config/config_final.yaml')
|
51 |
train_model(config)
|
@@ -57,4 +57,5 @@ as well as read the following notes (`+` is the string concat funtion):
|
|
57 |
- The code will save and preload models in `model_folder`
|
58 |
- The code will preload the model with the name: "`model_basename` + `preload` + `.pt`"
|
59 |
- The code will NOT preload a trained model if you set `preload` as `null`
|
60 |
-
- Every epoch, the code will save the model with the name: "`model_basename` + `_` + (current epoch) + `.pt`"
|
|
|
|
45 |
Use the `train_model` function in `train.py` to train your model.
|
46 |
```
|
47 |
from train import train_model
|
48 |
+
from config import load_config
|
49 |
|
50 |
config = load_config(file_name='config/config_final.yaml')
|
51 |
train_model(config)
|
|
|
57 |
- The code will save and preload models in `model_folder`
|
58 |
- The code will preload the model with the name: "`model_basename` + `preload` + `.pt`"
|
59 |
- The code will NOT preload a trained model if you set `preload` as `null`
|
60 |
+
- Every epoch, the code will save the model with the name: "`model_basename` + `_` + (current epoch) + `.pt`"
|
61 |
+
- `train_model` will automatically continue training the `preload`ed model.
|