Skip to content

Commit

Permalink
Fix some typos: lib -> detectron
Browse files Browse the repository at this point in the history
Summary:
We fix some typos: lib -> detectron .
Closes facebookresearch#429

Reviewed By: rbgirshick

Differential Revision: D7988278

Pulled By: ir413

fbshipit-source-id: 5e673b51a831f95aa7d7ea2ce51c5c41a1715825
  • Loading branch information
shenyunhang authored and facebook-github-bot committed May 14, 2018
1 parent de55ea3 commit b3c93df
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Also potentially relevant: inference with Mask R-CNN on high-resolution images m

#### Q: How do I use Detectron to train a model on a custom dataset?

**A:** If possible, we strongly recommend that you first convert the custom dataset annotation format to the [COCO API json format](http://cocodataset.org/#download). Then, add your dataset to the [dataset catalog](lib/datasets/dataset_catalog.py) so that Detectron can use it for training and inference. If your dataset cannot be converted to the COCO API json format, then it's likely that more significant code modifications will be required. If the dataset you're adding is popular, please consider making the converted annotations publicly available; If code modifications are required, please consider submitting a pull request.
**A:** If possible, we strongly recommend that you first convert the custom dataset annotation format to the [COCO API json format](http://cocodataset.org/#download). Then, add your dataset to the [dataset catalog](detectron/datasets/dataset_catalog.py) so that Detectron can use it for training and inference. If your dataset cannot be converted to the COCO API json format, then it's likely that more significant code modifications will be required. If the dataset you're adding is popular, please consider making the converted annotations publicly available; If code modifications are required, please consider submitting a pull request.
2 changes: 1 addition & 1 deletion detectron/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@


# ---------------------------------------------------------------------------- #
# Data loader options (see lib/roi_data/loader.py for more info)
# Data loader options (see detectron/roi_data/loader.py for more info)
# ---------------------------------------------------------------------------- #
__C.DATA_LOADER = AttrDict()

Expand Down
2 changes: 1 addition & 1 deletion detectron/datasets/voc_dataset_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _do_matlab_eval(json_dataset, salt, output_dir='output'):
logger.info('-----------------------------------------------------')
info = voc_info(json_dataset)
path = os.path.join(
cfg.ROOT_DIR, 'lib', 'datasets', 'VOCdevkit-matlab-wrapper')
cfg.ROOT_DIR, 'detectron', 'datasets', 'VOCdevkit-matlab-wrapper')
cmd = 'cd {} && '.format(path)
cmd += '{:s} -nodisplay -nodesktop '.format(cfg.MATLAB)
cmd += '-r "dbstop if error; '
Expand Down
2 changes: 1 addition & 1 deletion detectron/tests/data_loader_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def parse_args():
'--profiler', dest='profiler', help='profile minibatch load time',
action='store_true')
parser.add_argument(
'opts', help='See lib/core/config.py for all options', default=None,
'opts', help='See detectron/core/config.py for all options', default=None,
nargs=argparse.REMAINDER)
if len(sys.argv) == 1:
parser.print_help()
Expand Down
2 changes: 1 addition & 1 deletion tools/convert_pkl_to_pb.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def parse_args():
default=1,
type=int)
parser.add_argument(
'opts', help='See lib/core/config.py for all options', default=None,
'opts', help='See detectron/core/config.py for all options', default=None,
nargs=argparse.REMAINDER)
if len(sys.argv) == 1:
parser.print_help()
Expand Down
2 changes: 1 addition & 1 deletion tools/test_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def parse_args():
)
parser.add_argument(
'opts',
help='See lib/core/config.py for all options',
help='See detectron/core/config.py for all options',
default=None,
nargs=argparse.REMAINDER
)
Expand Down
2 changes: 1 addition & 1 deletion tools/train_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def parse_args():
)
parser.add_argument(
'opts',
help='See lib/core/config.py for all options',
help='See detectron/core/config.py for all options',
default=None,
nargs=argparse.REMAINDER
)
Expand Down

0 comments on commit b3c93df

Please sign in to comment.