Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
2069cfdc
Commit
2069cfdc
authored
Jul 20, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MaskRCNN] Allow cfg.DATA.TRAIN to be a string (#1276)
parent
c5a47192
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
examples/FasterRCNN/config.py
examples/FasterRCNN/config.py
+2
-0
examples/FasterRCNN/data.py
examples/FasterRCNN/data.py
+0
-1
No files found.
examples/FasterRCNN/config.py
View file @
2069cfdc
...
@@ -221,6 +221,8 @@ def finalize_configs(is_training):
...
@@ -221,6 +221,8 @@ def finalize_configs(is_training):
_C
.
freeze
(
False
)
# populate new keys now
_C
.
freeze
(
False
)
# populate new keys now
if
isinstance
(
_C
.
DATA
.
VAL
,
six
.
string_types
):
# support single string (the typical case) as well
if
isinstance
(
_C
.
DATA
.
VAL
,
six
.
string_types
):
# support single string (the typical case) as well
_C
.
DATA
.
VAL
=
(
_C
.
DATA
.
VAL
,
)
_C
.
DATA
.
VAL
=
(
_C
.
DATA
.
VAL
,
)
if
isinstance
(
_C
.
DATA
.
TRAIN
,
six
.
string_types
):
# support single string
_C
.
DATA
.
TRAIN
=
(
_C
.
DATA
.
TRAIN
,
)
assert
_C
.
BACKBONE
.
NORM
in
[
'FreezeBN'
,
'SyncBN'
,
'GN'
,
'None'
],
_C
.
BACKBONE
.
NORM
assert
_C
.
BACKBONE
.
NORM
in
[
'FreezeBN'
,
'SyncBN'
,
'GN'
,
'None'
],
_C
.
BACKBONE
.
NORM
if
_C
.
BACKBONE
.
NORM
!=
'FreezeBN'
:
if
_C
.
BACKBONE
.
NORM
!=
'FreezeBN'
:
...
...
examples/FasterRCNN/data.py
View file @
2069cfdc
...
@@ -332,7 +332,6 @@ def get_train_dataflow():
...
@@ -332,7 +332,6 @@ def get_train_dataflow():
If MODE_MASK, gt_masks: (N, h, w)
If MODE_MASK, gt_masks: (N, h, w)
"""
"""
roidbs
=
list
(
itertools
.
chain
.
from_iterable
(
DatasetRegistry
.
get
(
x
)
.
training_roidbs
()
for
x
in
cfg
.
DATA
.
TRAIN
))
roidbs
=
list
(
itertools
.
chain
.
from_iterable
(
DatasetRegistry
.
get
(
x
)
.
training_roidbs
()
for
x
in
cfg
.
DATA
.
TRAIN
))
print_class_histogram
(
roidbs
)
print_class_histogram
(
roidbs
)
...
...
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