Skip to content

Commit f485b46

Browse files
ppwwyyxxfacebook-github-bot
authored andcommitted
update docs
Summary: Pull Request resolved: fairinternal/detectron2#331 Differential Revision: D18572260 Pulled By: ppwwyyxx fbshipit-source-id: 39d340f726912255b186c3f0f20f939ff02a2cc0
1 parent dd5926a commit f485b46

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

GETTING_STARTED.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ For details of the command line arguments, see `demo.py -h`. Some common ones ar
3333
* To save outputs to a directory (for images) or a file (for webcam or video), use `--output`.
3434

3535

36-
### Train a Standard Model
36+
### Use Detectron2 in Command Line
3737

3838
We provide a script in "tools/train_net.py", that is made to train
3939
all the configs provided in detectron2.
@@ -48,7 +48,7 @@ python tools/train_net.py --num-gpus 8 \
4848
--config-file configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml
4949
```
5050

51-
The configs are made for 8-GPU training. To train on 1 GPU, use:
51+
The configs are made for 8-GPU training. To train on 1 GPU, change the batch size with:
5252
```
5353
python tools/train_net.py \
5454
--config-file configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml \

INSTALL.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The [Dockerfile](https://github.com/facebookresearch/detectron2/blob/master/Dock
66
also installs detectron2 with a few simple commands.
77

88
### Requirements
9+
- Linux or macOS
910
- Python >= 3.6
1011
- PyTorch 1.3
1112
- [torchvision](https://github.com/pytorch/vision/) that matches the PyTorch installation.
@@ -16,7 +17,7 @@ also installs detectron2 with a few simple commands.
1617
- GCC >= 4.9
1718

1819

19-
### Build detectron2
20+
### Build Detectron2
2021

2122
After having the above dependencies, run:
2223
```

detectron2/data/datasets/register_coco.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def register_coco_panoptic_separated(
6767
Args:
6868
name (str): the name that identifies a dataset,
6969
e.g. "coco_2017_train_panoptic"
70-
metadata (str): extra metadata associated with this dataset.
70+
metadata (dict): extra metadata associated with this dataset.
7171
image_root (str): directory which contains all the images
7272
panoptic_root (str): directory which contains panoptic annotation images
7373
panoptic_json (str): path to the json panoptic annotation file

docs/tutorials/datasets.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ will load the image from "file_name" and load "sem_seg" from "sem_seg_file_name"
4848
+ `sem_seg`: semantic segmentation ground truth in a 2D `torch.Tensor`. Values in the array represent
4949
category labels.
5050
+ `height`, `width`: integer. The shape of image.
51-
+ `image_id` (str): a string to identify this image. Mainly used by certain datasets
51+
+ `image_id` (str): a string to identify this image. Used
5252
during evaluation to identify the image, but a dataset may use it for different purposes.
5353
+ `annotations` (list[dict]): the per-instance annotations of every
5454
instance in this image. Each annotation dict may contain:

0 commit comments

Comments
 (0)