Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
maskrcnn
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
人工智能
maskrcnn
Commits
a694420e
Unverified
Commit
a694420e
authored
Feb 13, 2019
by
Francisco Massa
Committed by
GitHub
Feb 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean paths_catalog for keypoints (#427)
parent
6286a6c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
paths_catalog.py
maskrcnn_benchmark/config/paths_catalog.py
+3
-15
No files found.
maskrcnn_benchmark/config/paths_catalog.py
View file @
a694420e
...
...
@@ -33,7 +33,7 @@ class DatasetCatalog(object):
},
"keypoints_coco_2014_train"
:
{
"img_dir"
:
"coco/train2014"
,
"ann_file"
:
"annotations/person_keypoints_train201
7_train_mod2
.json"
,
"ann_file"
:
"annotations/person_keypoints_train201
4
.json"
,
},
"keypoints_coco_2014_val"
:
{
"img_dir"
:
"coco/val2014"
,
...
...
@@ -41,11 +41,11 @@ class DatasetCatalog(object):
},
"keypoints_coco_2014_minival"
:
{
"img_dir"
:
"coco/val2014"
,
"ann_file"
:
"annotations/person_keypoints_
val2017_mod
.json"
,
"ann_file"
:
"annotations/person_keypoints_
minival2014
.json"
,
},
"keypoints_coco_2014_valminusminival"
:
{
"img_dir"
:
"coco/val2014"
,
"ann_file"
:
"annotations/person_keypoints_
train2017_valminusminival_mod2
.json"
,
"ann_file"
:
"annotations/person_keypoints_
valminusminival2014
.json"
,
},
"voc_2007_train"
:
{
"data_dir"
:
"voc/VOC2007"
,
...
...
@@ -108,18 +108,6 @@ class DatasetCatalog(object):
@staticmethod
def
get
(
name
):
if
"keypoints"
in
name
:
data_dir
=
DatasetCatalog
.
DATA_DIR
anno_dir
=
"/private/home/fmassa/coco_trainval2017"
attrs
=
DatasetCatalog
.
DATASETS
[
name
]
args
=
dict
(
root
=
os
.
path
.
join
(
data_dir
,
attrs
[
"img_dir"
]),
ann_file
=
os
.
path
.
join
(
anno_dir
,
attrs
[
"ann_file"
]),
)
return
dict
(
factory
=
"COCODataset"
,
args
=
args
,
)
if
"coco"
in
name
:
data_dir
=
DatasetCatalog
.
DATA_DIR
attrs
=
DatasetCatalog
.
DATASETS
[
name
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment