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
3a0c5e9a
Commit
3a0c5e9a
authored
Jun 06, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MaskRCNN] padding bugfix
parent
ba293da8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
README.md
README.md
+3
-3
docs/tutorial/input-source.md
docs/tutorial/input-source.md
+1
-1
examples/FasterRCNN/basemodel.py
examples/FasterRCNN/basemodel.py
+3
-2
No files found.
README.md
View file @
3a0c5e9a
...
@@ -22,9 +22,9 @@ It's Yet Another TF high-level API, with __speed__, __readability__ and __flexib
...
@@ -22,9 +22,9 @@ It's Yet Another TF high-level API, with __speed__, __readability__ and __flexib
some benchmark scripts.
some benchmark scripts.
2.
Focus on __large datasets__.
2.
Focus on __large datasets__.
+
[
You don't need `tf.data`
](
http://tensorpack.readthedocs.io/tutorial/input-source.html#tensorflow-reader-cons
)
.
+
[
You don't
usually
need `tf.data`
](
http://tensorpack.readthedocs.io/tutorial/input-source.html#tensorflow-reader-cons
)
.
It's unnecessary and painful to process data with a new language called TF
.
Symbolic programming often makes data processing harder
.
Tensorpack helps you efficiently
load
large datasets (e.g. ImageNet) in __pure Python__ with autoparallelization.
Tensorpack helps you efficiently
process
large datasets (e.g. ImageNet) in __pure Python__ with autoparallelization.
3.
It's not a model wrapper.
3.
It's not a model wrapper.
+
There are too many symbolic function wrappers in the world. Tensorpack includes only a few common models.
+
There are too many symbolic function wrappers in the world. Tensorpack includes only a few common models.
...
...
docs/tutorial/input-source.md
View file @
3a0c5e9a
...
@@ -58,7 +58,7 @@ The disadvantage of TF reader is obvious and it's huge: it's __too complicated__
...
@@ -58,7 +58,7 @@ The disadvantage of TF reader is obvious and it's huge: it's __too complicated__
Unlike running a mathematical model, data processing is a complicated and poorly-structured task.
Unlike running a mathematical model, data processing is a complicated and poorly-structured task.
You need to handle different formats, handle corner cases, noisy data, combination of data.
You need to handle different formats, handle corner cases, noisy data, combination of data.
Doing these require condition operations, loops, data structures, sometimes even exception handling.
Doing these require
s
condition operations, loops, data structures, sometimes even exception handling.
These operations are __naturally not the right task for a symbolic graph__.
These operations are __naturally not the right task for a symbolic graph__.
Let's take a look at what users are asking for
`tf.data`
:
Let's take a look at what users are asking for
`tf.data`
:
...
...
examples/FasterRCNN/basemodel.py
View file @
3a0c5e9a
...
@@ -130,10 +130,11 @@ def resnet_fpn_backbone(image, num_blocks, freeze_c2=True):
...
@@ -130,10 +130,11 @@ def resnet_fpn_backbone(image, num_blocks, freeze_c2=True):
assert
len
(
num_blocks
)
==
4
,
num_blocks
assert
len
(
num_blocks
)
==
4
,
num_blocks
with
resnet_argscope
():
with
resnet_argscope
():
chan
=
image
.
shape
[
1
]
chan
=
image
.
shape
[
1
]
pad_base
=
maybe_reverse_pad
(
2
,
3
)
l
=
tf
.
pad
(
image
,
tf
.
stack
(
l
=
tf
.
pad
(
image
,
tf
.
stack
(
[[
0
,
0
],
[
0
,
0
],
[[
0
,
0
],
[
0
,
0
],
maybe_reverse_pad
(
2
,
3
+
pad_shape2d
[
0
])
,
[
pad_base
[
0
],
pad_base
[
1
]
+
pad_shape2d
[
0
]]
,
maybe_reverse_pad
(
2
,
3
+
pad_shape2d
[
1
])
]))
[
pad_base
[
0
],
pad_base
[
1
]
+
pad_shape2d
[
1
]]
]))
l
.
set_shape
([
None
,
chan
,
None
,
None
])
l
.
set_shape
([
None
,
chan
,
None
,
None
])
l
=
Conv2D
(
'conv0'
,
l
,
64
,
7
,
strides
=
2
,
activation
=
BNReLU
,
padding
=
'VALID'
)
l
=
Conv2D
(
'conv0'
,
l
,
64
,
7
,
strides
=
2
,
activation
=
BNReLU
,
padding
=
'VALID'
)
l
=
tf
.
pad
(
l
,
[[
0
,
0
],
[
0
,
0
],
maybe_reverse_pad
(
0
,
1
),
maybe_reverse_pad
(
0
,
1
)])
l
=
tf
.
pad
(
l
,
[[
0
,
0
],
[
0
,
0
],
maybe_reverse_pad
(
0
,
1
),
maybe_reverse_pad
(
0
,
1
)])
...
...
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