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
1df9e4a3
Commit
1df9e4a3
authored
Jul 16, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename fprop_coord to augment_coords (#334)
parent
b7ad58ec
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
tensorpack/dataflow/imgaug/base.py
tensorpack/dataflow/imgaug/base.py
+2
-2
tensorpack/dataflow/imgaug/crop.py
tensorpack/dataflow/imgaug/crop.py
+3
-3
tensorpack/dataflow/imgaug/deform.py
tensorpack/dataflow/imgaug/deform.py
+1
-1
tensorpack/dataflow/imgaug/noname.py
tensorpack/dataflow/imgaug/noname.py
+2
-2
tensorpack/dataflow/imgaug/paste.py
tensorpack/dataflow/imgaug/paste.py
+1
-1
No files found.
tensorpack/dataflow/imgaug/base.py
View file @
1df9e4a3
...
...
@@ -62,8 +62,8 @@ class Augmentor(object):
class
ImageAugmentor
(
Augmentor
):
def
_
fprop_coord
(
self
,
coord
,
param
):
return
coord
def
_
augment_coords
(
self
,
coords
,
param
):
return
coord
s
class
AugmentorList
(
ImageAugmentor
):
...
...
tensorpack/dataflow/imgaug/crop.py
View file @
1df9e4a3
...
...
@@ -39,7 +39,7 @@ class RandomCrop(ImageAugmentor):
h0
,
w0
=
param
return
img
[
h0
:
h0
+
self
.
crop_shape
[
0
],
w0
:
w0
+
self
.
crop_shape
[
1
]]
def
_
fprop_coord
(
self
,
coord
,
param
):
def
_
augment_coords
(
self
,
coords
,
param
):
raise
NotImplementedError
()
...
...
@@ -60,7 +60,7 @@ class CenterCrop(ImageAugmentor):
w0
=
int
((
orig_shape
[
1
]
-
self
.
crop_shape
[
1
])
*
0.5
)
return
img
[
h0
:
h0
+
self
.
crop_shape
[
0
],
w0
:
w0
+
self
.
crop_shape
[
1
]]
def
_
fprop_coord
(
self
,
coord
,
param
):
def
_
augment_coords
(
self
,
coords
,
param
):
raise
NotImplementedError
()
...
...
@@ -127,7 +127,7 @@ class RandomCropAroundBox(ImageAugmentor):
def
_augment
(
self
,
img
,
newbox
):
return
newbox
.
roi
(
img
)
def
_
fprop_coord
(
self
,
coord
,
param
):
def
_
augment_coords
(
self
,
coords
,
param
):
raise
NotImplementedError
()
...
...
tensorpack/dataflow/imgaug/deform.py
View file @
1df9e4a3
...
...
@@ -100,5 +100,5 @@ class GaussianDeform(ImageAugmentor):
grid
=
self
.
grid
+
np
.
dot
(
self
.
gws
,
v
)
return
np_sample
(
img
,
grid
)
def
_
fprop_coord
(
self
,
coord
,
param
):
def
_
augment_coords
(
self
,
coords
,
param
):
raise
NotImplementedError
()
tensorpack/dataflow/imgaug/noname.py
View file @
1df9e4a3
...
...
@@ -46,7 +46,7 @@ class Flip(ImageAugmentor):
ret
=
img
return
ret
def
_
fprop_coord
(
self
,
coord
,
param
):
def
_
augment_coords
(
self
,
coords
,
param
):
raise
NotImplementedError
()
...
...
@@ -166,5 +166,5 @@ class Transpose(ImageAugmentor):
ret
=
ret
[:,
:,
np
.
newaxis
]
return
ret
def
_
fprop_coord
(
self
,
coord
,
param
):
def
_
augment_coords
(
self
,
coords
,
param
):
raise
NotImplementedError
()
tensorpack/dataflow/imgaug/paste.py
View file @
1df9e4a3
...
...
@@ -78,7 +78,7 @@ class CenterPaste(ImageAugmentor):
background
[
y0
:
y0
+
img_shape
[
0
],
x0
:
x0
+
img_shape
[
1
]]
=
img
return
background
def
_
fprop_coord
(
self
,
coord
,
param
):
def
_
augment_coords
(
self
,
coords
,
param
):
raise
NotImplementedError
()
...
...
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