@@ -7,29 +7,30 @@ VisualDL, a visualization analysis tool of PaddlePaddle, provides a variety of c
...
@@ -7,29 +7,30 @@ VisualDL, a visualization analysis tool of PaddlePaddle, provides a variety of c
Now PaddleClas support use VisualDL to visualize the changes of learning rate, loss, accuracy in training.
Now PaddleClas support use VisualDL to visualize the changes of learning rate, loss, accuracy in training.
### Set config and start training
### Set config and start training
You only need to set the `vdl_dir` field in train config:
You only need to set the field `Global.use_visualdl` to `True` in train config:
```yaml
```yaml
# config.yaml
# config.yaml
vdl_dir:"./vdl.log"
Global:
...
use_visualdl:True
...
```
```
`vdl_dir`: Specify the directory where VisualDL stores logs.
PaddleClas will save the VisualDL logs to subdirectory `vdl/` under the output directory specified by `Global.output_dir`. And then you just need to start training normally:
Then normal start training:
```shell
```shell
python3 tools/train.py -c config.yaml
python3 tools/train.py -c config.yaml
```
```
### Start VisualDL
### Start VisualDL
After starting the training program, you can start the VisualDL service in the new terminal session:
After starting the training program, you can start the VisualDL service in a new terminal session:
```shell
```shell
visualdl --logdir ./vdl.log
visualdl --logdir ./output/vdl/
```
```
In the above command, `--logdir` specify the logs directory. VisualDL will traverse and iterate to find the subdirectories of the specified directory to visualize all the experimental results. You can also use the following parameters to set the IP and port number of the VisualDL service:
In the above command, `--logdir` specify the directory of the VisualDL logs produced in training. VisualDL will traverse and iterate to find the subdirectories of the specified directory to visualize all the experimental results. You can also use the following parameters to set the IP and port number of the VisualDL service: