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
b28cfa8a
Commit
b28cfa8a
authored
Feb 17, 2020
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
4ac2e22b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
18 deletions
+31
-18
docs/tutorial/inference.md
docs/tutorial/inference.md
+1
-1
examples/FasterRCNN/README.md
examples/FasterRCNN/README.md
+1
-1
tensorpack/dataflow/serialize_test.py
tensorpack/dataflow/serialize_test.py
+29
-16
No files found.
docs/tutorial/inference.md
View file @
b28cfa8a
...
...
@@ -24,7 +24,7 @@ You can use this predicate to choose a different code path in inference mode.
## Inference After Training: What Tensorpack Does
Tensorpack provides some small tools to do the most basic types of inference for demo purposes.
Tensorpack
only
provides some small tools to do the most basic types of inference for demo purposes.
You can use them but
__these approaches are often suboptimal and may fail__
.
They may often be inefficient or lack functionalities you need.
...
...
examples/FasterRCNN/README.md
View file @
b28cfa8a
...
...
@@ -125,6 +125,6 @@ Performance in [Detectron](https://github.com/facebookresearch/Detectron/) can b
Note that our training strategy is slightly different: we enable cascade throughout the entire training.
As far as I know, this model is the __best open source TF model__ on COCO dataset.
##
Other
Datasets / Implementation Details / Speed:
##
Use Custom
Datasets / Implementation Details / Speed:
See
[
BALLOON.md
](
BALLOON.md
)
and
[
NOTES.md
](
NOTES.md
)
for more details.
tensorpack/dataflow/serialize_test.py
View file @
b28cfa8a
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import
tempfile
import
numpy
as
np
import
os
import
unittest
...
...
@@ -60,26 +61,38 @@ class SerializerTest(unittest.TestCase):
print
(
error_msg
)
def
test_lmdb
(
self
):
self
.
run_write_read_test
(
'test.lmdb'
,
LMDBSerializer
,
with
tempfile
.
TemporaryDirectory
()
as
f
:
self
.
run_write_read_test
(
os
.
path
.
join
(
f
,
'test.lmdb'
),
LMDBSerializer
,
{},
{},
{},
{
'shuffle'
:
False
},
'Skip test_lmdb, no lmdb available'
)
def
test_tfrecord
(
self
):
self
.
run_write_read_test
(
'test.tfrecord'
,
TFRecordSerializer
,
with
tempfile
.
TemporaryDirectory
()
as
f
:
self
.
run_write_read_test
(
os
.
path
.
join
(
f
,
'test.tfrecord'
),
TFRecordSerializer
,
{},
{},
{},
{
'size'
:
32
},
'Skip test_tfrecord, no tensorflow available'
)
def
test_numpy
(
self
):
self
.
run_write_read_test
(
'test.npz'
,
NumpySerializer
,
with
tempfile
.
TemporaryDirectory
()
as
f
:
self
.
run_write_read_test
(
os
.
path
.
join
(
f
,
'test.npz'
),
NumpySerializer
,
{},
{},
{},
{
'shuffle'
:
False
},
'Skip test_numpy, no numpy available'
)
def
test_hdf5
(
self
):
args
=
[[
'label'
,
'image'
]]
self
.
run_write_read_test
(
'test.h5'
,
HDF5Serializer
,
with
tempfile
.
TemporaryDirectory
()
as
f
:
self
.
run_write_read_test
(
os
.
path
.
join
(
f
,
'test.h5'
),
HDF5Serializer
,
args
,
{},
args
,
{
'shuffle'
:
False
},
'Skip test_hdf5, no h5py available'
)
...
...
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