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
ff5903e0
Commit
ff5903e0
authored
Apr 20, 2019
by
Ren Jin
Committed by
Francisco Massa
Apr 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color jitter only during training (#703)
parent
b3cab7fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
build.py
maskrcnn_benchmark/data/transforms/build.py
+13
-5
No files found.
maskrcnn_benchmark/data/transforms/build.py
View file @
ff5903e0
...
@@ -7,21 +7,29 @@ def build_transforms(cfg, is_train=True):
...
@@ -7,21 +7,29 @@ def build_transforms(cfg, is_train=True):
min_size
=
cfg
.
INPUT
.
MIN_SIZE_TRAIN
min_size
=
cfg
.
INPUT
.
MIN_SIZE_TRAIN
max_size
=
cfg
.
INPUT
.
MAX_SIZE_TRAIN
max_size
=
cfg
.
INPUT
.
MAX_SIZE_TRAIN
flip_prob
=
0.5
# cfg.INPUT.FLIP_PROB_TRAIN
flip_prob
=
0.5
# cfg.INPUT.FLIP_PROB_TRAIN
brightness
=
cfg
.
INPUT
.
BRIGHTNESS
contrast
=
cfg
.
INPUT
.
CONTRAST
saturation
=
cfg
.
INPUT
.
SATURATION
hue
=
cfg
.
INPUT
.
HUE
else
:
else
:
min_size
=
cfg
.
INPUT
.
MIN_SIZE_TEST
min_size
=
cfg
.
INPUT
.
MIN_SIZE_TEST
max_size
=
cfg
.
INPUT
.
MAX_SIZE_TEST
max_size
=
cfg
.
INPUT
.
MAX_SIZE_TEST
flip_prob
=
0
flip_prob
=
0
brightness
=
0.0
contrast
=
0.0
saturation
=
0.0
hue
=
0.0
to_bgr255
=
cfg
.
INPUT
.
TO_BGR255
to_bgr255
=
cfg
.
INPUT
.
TO_BGR255
normalize_transform
=
T
.
Normalize
(
normalize_transform
=
T
.
Normalize
(
mean
=
cfg
.
INPUT
.
PIXEL_MEAN
,
std
=
cfg
.
INPUT
.
PIXEL_STD
,
to_bgr255
=
to_bgr255
mean
=
cfg
.
INPUT
.
PIXEL_MEAN
,
std
=
cfg
.
INPUT
.
PIXEL_STD
,
to_bgr255
=
to_bgr255
)
)
color_jitter
=
T
.
ColorJitter
(
color_jitter
=
T
.
ColorJitter
(
brightness
=
cfg
.
INPUT
.
BRIGHTNESS
,
brightness
=
brightness
,
contrast
=
c
fg
.
INPUT
.
CONTRAST
,
contrast
=
c
ontrast
,
saturation
=
cfg
.
INPUT
.
SATURATION
,
saturation
=
saturation
,
hue
=
cfg
.
INPUT
.
HUE
,
hue
=
hue
,
)
)
transform
=
T
.
Compose
(
transform
=
T
.
Compose
(
[
[
...
...
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