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
3917cfd5
Commit
3917cfd5
authored
Jul 23, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clarify docs of RandomResize (fix #343)
parent
8a4d259d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
tensorpack/dataflow/imgaug/noname.py
tensorpack/dataflow/imgaug/noname.py
+2
-2
tensorpack/graph_builder/input_source.py
tensorpack/graph_builder/input_source.py
+1
-2
No files found.
tensorpack/dataflow/imgaug/noname.py
View file @
3917cfd5
...
@@ -131,9 +131,9 @@ class RandomResize(ImageAugmentor):
...
@@ -131,9 +131,9 @@ class RandomResize(ImageAugmentor):
interp
=
cv2
.
INTER_LINEAR
):
interp
=
cv2
.
INTER_LINEAR
):
"""
"""
Args:
Args:
xrange (tuple): (min, max) range of scaling ratio for w
xrange (tuple): (min, max) range of scaling ratio for w
, e.g. (0.9, 1.2)
yrange (tuple): (min, max) range of scaling ratio for h
yrange (tuple): (min, max) range of scaling ratio for h
minimum (tuple): (xmin, ymin)
.
avoid scaling down too much.
minimum (tuple): (xmin, ymin)
in pixels. To
avoid scaling down too much.
aspect_ratio_thres (float): discard samples which change aspect ratio
aspect_ratio_thres (float): discard samples which change aspect ratio
larger than this threshold. Set to 0 to keep aspect ratio.
larger than this threshold. Set to 0 to keep aspect ratio.
interp: cv2 interpolation method
interp: cv2 interpolation method
...
...
tensorpack/graph_builder/input_source.py
View file @
3917cfd5
...
@@ -410,8 +410,7 @@ class StagingInputWrapper(FeedfreeInput):
...
@@ -410,8 +410,7 @@ class StagingInputWrapper(FeedfreeInput):
fetches
=
[
stage_op
,
unstage_op
])
fetches
=
[
stage_op
,
unstage_op
])
def
_before_train
(
self
):
def
_before_train
(
self
):
# pre-fill the staging area
logger
.
info
(
"Pre-filling staging area ..."
)
logger
.
info
(
"Pre-fillilng staging area ..."
)
for
k
in
range
(
self
.
nr_stage
):
for
k
in
range
(
self
.
nr_stage
):
self
.
stage_op
.
run
()
self
.
stage_op
.
run
()
...
...
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