# Tutorial 3: Inference, testing, and training with predefined models and standard datasets
In this tutorial, you will know how to inference, test, and train predefined models with your own settings for standard datasets. We use the cityscapes dataset to train a COCO pretrained Cascade Mask R-CNN model as an example to describe the whole process.
The basic steps are as below:
1. Prepare the standard dataset
2. Prepare a config
3. Train, test, inference models on the standard dataset.
### Prepare the standard dataset
In this tutorial, as we use the standard cityscapes dataset as an example, to prepare the dataset please follow the tutorial [getting_started](./getting_started.md).
### Prepare a config
The second step is to prepare a config for your own training setting. Assume that we want to use Cascade Mask R-CNN with FPN to train the cityscapes dataset, and assume the config is under directory `configs/cityscapes/` and named as `cascade_mask_rcnn_r50_fpn_1x_cityscapes.py`, the config is as below.
```python
# The new config inherits the base configs to highlight the necessary modification