diff --git a/docs/getting_started.md b/docs/getting_started.md index bc0a8fac7..6962ae07b 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -82,7 +82,7 @@ Assume that you have already downloaded the checkpoints to the directory `checkp ```shell python tools/test.py configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py \ - checkpoints/faster_rcnn_r50_fpn_1x_20181010-3d1b3351.pth \ + checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth \ --show ``` @@ -90,7 +90,7 @@ Assume that you have already downloaded the checkpoints to the directory `checkp ```shell python tools/test.py configs/faster_rcnn/faster_rcnn_r50_fpn_1x.py \ - checkpoints/faster_rcnn_r50_fpn_1x_20181010-3d1b3351.pth \ + checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth \ --show-dir faster_rcnn_r50_fpn_1x_results ``` @@ -105,8 +105,8 @@ Assume that you have already downloaded the checkpoints to the directory `checkp 4. Test Mask R-CNN with 8 GPUs, and evaluate the bbox and mask AP. ```shell - ./tools/dist_test.sh configs/mask_rcnn_r50_fpn_1x_coco.py \ - checkpoints/mask_rcnn_r50_fpn_1x_20181010-069fa190.pth \ + ./tools/dist_test.sh configs/mask_rcnn/mask_rcnn_r50_fpn_1x_coco.py \ + checkpoints/mask_rcnn_r50_fpn_1x_coco_20200205-d4b0c5d6.pth \ 8 --out results.pkl --eval bbox segm ``` @@ -114,7 +114,7 @@ Assume that you have already downloaded the checkpoints to the directory `checkp ```shell ./tools/dist_test.sh configs/mask_rcnn/mask_rcnn_r50_fpn_1x_coco.py \ - checkpoints/mask_rcnn_r50_fpn_1x_20181010-069fa190.pth \ + checkpoints/mask_rcnn_r50_fpn_1x_coco_20200205-d4b0c5d6.pth \ 8 --out results.pkl --eval bbox segm --eval-options "classwise=True" ``` @@ -122,7 +122,7 @@ Assume that you have already downloaded the checkpoints to the directory `checkp ```shell ./tools/dist_test.sh configs/mask_rcnn/mask_rcnn_r50_fpn_1x_coco.py \ - checkpoints/mask_rcnn_r50_fpn_1x_20181010-069fa190.pth \ + checkpoints/mask_rcnn_r50_fpn_1x_coco_20200205-d4b0c5d6.pth \ 8 --format-only --eval-options "jsonfile_prefix=./mask_rcnn_test-dev_results" ``` @@ -149,8 +149,8 @@ python demo/image_demo.py ${IMAGE_FILE} ${CONFIG_FILE} ${CHECKPOINT_FILE} [--dev Examples: ```shell -python demo/image_demo.py demo/demo.jpg configs/faster_rcnn_r50_fpn_1x_coco.py \ - checkpoints/faster_rcnn_r50_fpn_1x_20181010-3d1b3351.pth --device cpu +python demo/image_demo.py demo/demo.jpg configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py \ + checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth --device cpu ``` ### Webcam demo @@ -164,8 +164,8 @@ python demo/webcam_demo.py ${CONFIG_FILE} ${CHECKPOINT_FILE} [--device ${GPU_ID} Examples: ```shell -python demo/webcam_demo.py configs/faster_rcnn_r50_fpn_1x_coco.py \ - checkpoints/faster_rcnn_r50_fpn_1x_20181010-3d1b3351.pth +python demo/webcam_demo.py configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py \ + checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth ``` @@ -179,7 +179,7 @@ from mmdet.apis import init_detector, inference_detector import mmcv config_file = 'configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py' -checkpoint_file = 'checkpoints/faster_rcnn_r50_fpn_1x_20181010-3d1b3351.pth' +checkpoint_file = 'checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth' # build the model from a config file and a checkpoint file model = init_detector(config_file, checkpoint_file, device='cuda:0') @@ -215,7 +215,7 @@ from mmdet.utils.contextmanagers import concurrent async def main(): config_file = 'configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py' - checkpoint_file = 'checkpoints/faster_rcnn_r50_fpn_1x_20181010-3d1b3351.pth' + checkpoint_file = 'checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth' device = 'cuda:0' model = init_detector(config_file, checkpoint=checkpoint_file, device=device) @@ -297,7 +297,7 @@ If you run MMDetection on a cluster managed with [slurm](https://slurm.schedmd.c Here is an example of using 16 GPUs to train Mask R-CNN on the dev partition. ```shell -GPUS=16 ./tools/slurm_train.sh dev mask_r50_1x configs/mask_rcnn_r50_fpn_1x_coco.py /nfs/xxxx/mask_rcnn_r50_fpn_1x +GPUS=16 ./tools/slurm_train.sh dev mask_r50_1x configs/mask_rcnn/mask_rcnn_r50_fpn_1x_coco.py /nfs/xxxx/mask_rcnn_r50_fpn_1x ``` You can check [slurm_train.sh](https://github.com/open-mmlab/mmdetection/blob/master/tools/slurm_train.sh) for full arguments and environment variables.