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
758ae94a
You need to sign in or sign up before continuing.
Commit
758ae94a
authored
Dec 30, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mention imagenet synsets.
parent
4768b265
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
docs/tutorial/philosophy/dataflow.md
docs/tutorial/philosophy/dataflow.md
+3
-2
tensorpack/dataflow/dataset/ilsvrc.py
tensorpack/dataflow/dataset/ilsvrc.py
+1
-0
No files found.
docs/tutorial/philosophy/dataflow.md
View file @
758ae94a
...
...
@@ -87,7 +87,7 @@ On the other hand, DataFlow is:
used for training. No need for intermediate format when you don't.
1.
**Flexible**
: Since it is in pure Python, you can use any data format.
When you need, you can still easily serialize your dataflow to a single-file
format with
format with
[
a few lines of code
](
../../modules/dataflow.html#tensorpack.dataflow.LMDBSerializer
)
.
...
...
@@ -152,6 +152,7 @@ or when you need to filter your data on the fly.
1.
You do batch training
1.
You use a constant batch size
1.
Indices are sufficient to determine which samples to batch together
1.
Multiprocessing is a better parallelization strategy than multithreading.
None of these are necessarily true.
...
...
@@ -170,7 +171,7 @@ On the other hand, DataFlow:
```
eval_rst
.. note:: An iterator interface is more generic than ``__getitem__``?
DataFlow's iterator interface can perfectly simulate the behavior of indexing interface like this:
DataFlow's iterator interface can perfectly simulate the behavior of indexing interface like this:
.. code-block:: python
...
...
tensorpack/dataflow/dataset/ilsvrc.py
View file @
758ae94a
...
...
@@ -179,6 +179,7 @@ class ILSVRC12Files(RNGDataFlow):
class
ILSVRC12
(
ILSVRC12Files
):
"""
Produces uint8 ILSVRC12 images of shape [h, w, 3(BGR)], and a label between [0, 999].
The label map follows the synsets.txt file in http://dl.caffe.berkeleyvision.org/caffe_ilsvrc12.tar.gz.
"""
def
__init__
(
self
,
dir
,
name
,
meta_dir
=
None
,
shuffle
=
None
,
dir_structure
=
None
):
...
...
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