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
0663f7b9
You need to sign in or sign up before continuing.
Commit
0663f7b9
authored
Oct 25, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update augmentor
parent
4733ce1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
examples/ResNet/README.md
examples/ResNet/README.md
+1
-1
tensorpack/dataflow/image.py
tensorpack/dataflow/image.py
+4
-1
No files found.
examples/ResNet/README.md
View file @
0663f7b9
...
...
@@ -18,7 +18,7 @@ Also see an implementation of [DenseNet](https://github.com/YixuanLi/densenet-te
## load-resnet.py
A script to convert and run ResNet{50,101,152} ImageNet
models released by Kaiming
.
A script to convert and run ResNet{50,101,152} ImageNet
caffe models
[
released by Kaiming
](
https://github.com/KaimingHe/deep-residual-networks
)
.
Example usage:
```
bash
...
...
tensorpack/dataflow/image.py
View file @
0663f7b9
...
...
@@ -46,7 +46,10 @@ class AugmentImageComponent(MapDataComponent):
:param augmentors: a list of `ImageAugmentor` instance to be applied in order.
:param index: the index (or list of indices) of the image component in the produced datapoints by `ds`. default to be 0
"""
self
.
augs
=
AugmentorList
(
augmentors
)
if
isinstance
(
augmentors
,
AugmentorList
):
self
.
augs
=
augmentors
else
:
self
.
augs
=
AugmentorList
(
augmentors
)
super
(
AugmentImageComponent
,
self
)
.
__init__
(
ds
,
lambda
x
:
self
.
augs
.
augment
(
x
),
index
)
...
...
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