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
49fa0a07
Commit
49fa0a07
authored
Jun 06, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove max_aspect_ratio (fix #1229)
parent
1e4dee8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tensorpack/dataflow/imgaug/crop.py
tensorpack/dataflow/imgaug/crop.py
+4
-3
No files found.
tensorpack/dataflow/imgaug/crop.py
View file @
49fa0a07
...
...
@@ -5,6 +5,7 @@ import numpy as np
import
cv2
from
...utils.argtools
import
shape2d
from
...utils.develop
import
log_deprecated
from
.base
import
ImageAugmentor
from
.transform
import
CropTransform
,
TransformAugmentorBase
from
.misc
import
ResizeShortestEdge
...
...
@@ -67,10 +68,10 @@ class RandomCropRandomShape(TransformAugmentorBase):
Args:
wmin, hmin, wmax, hmax: range to sample shape.
max_aspect_ratio (float): th
e upper bound of ``max(w,h)/min(w,h)``
.
max_aspect_ratio (float): th
is argument has no effect and is deprecated
.
"""
if
max_aspect_ratio
is
None
:
max_aspect_ratio
=
9999999
if
max_aspect_ratio
is
not
None
:
log_deprecated
(
"RandomCropRandomShape(max_aspect_ratio)"
,
"It is never implemented!"
,
"2020-06-06"
)
self
.
_init
(
locals
())
def
_get_augment_params
(
self
,
img
):
...
...
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