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
84a8d8d3
Commit
84a8d8d3
authored
Mar 27, 2017
by
Patrick Wieschollek
Committed by
Yuxin Wu
Mar 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 207 (#208)
parent
77e293be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tensorpack/dataflow/image.py
tensorpack/dataflow/image.py
+4
-3
No files found.
tensorpack/dataflow/image.py
View file @
84a8d8d3
...
...
@@ -109,13 +109,14 @@ class AugmentImageComponents(MapData):
self
.
_nr_error
=
0
def
func
(
dp
):
copy_func
=
lambda
x
:
x
if
copy
else
copy_mod
.
deepcopy
# noqa
copy_func
=
copy_mod
.
deepcopy
if
copy
else
lambda
x
:
x
# noqa
dp
=
copy_func
(
dp
)
try
:
im
=
copy_func
(
dp
[
index
[
0
]])
im
=
dp
[
index
[
0
]]
im
,
prms
=
self
.
augs
.
_augment_return_params
(
im
)
dp
[
index
[
0
]]
=
im
for
idx
in
index
[
1
:]:
dp
[
idx
]
=
self
.
augs
.
_augment
(
copy_func
(
dp
[
idx
])
,
prms
)
dp
[
idx
]
=
self
.
augs
.
_augment
(
dp
[
idx
]
,
prms
)
return
dp
except
KeyboardInterrupt
:
raise
...
...
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