# Example of a detection model training with FedAvg
This document introduce how to start a detection model training in PaddleFL with our pre-defined program. Now we only provide faster_rcnn, more models will be updated.
### Dependencies
- paddlepaddle>=1.8
- paddle_fl>=1.0
Please use pip which has paddlepaddle installed
```sh
pip install paddle_fl
```
### How to Run
#### Download the dataset
```sh
# download and unzip the dataset
sh download.sh
```
#### Start training
Before training, please modify the following paths according to your environment.
```python
# In run.sh, change the path to you PaddleDetection
exportPYTHONPATH=/path/to/PaddleDetection
# In fl_train.py, change the path to your fl_fruit dataset that is downloaded in download.sh.
# Note, the path should be absolute path rather than relatice path. Otherwise, error will be raised.