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
f7729086
Commit
f7729086
authored
Nov 29, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FasterRCNN] update docs; fix tf.reverse
parent
7a5b861a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
examples/FasterRCNN/NOTES.md
examples/FasterRCNN/NOTES.md
+2
-2
examples/FasterRCNN/README.md
examples/FasterRCNN/README.md
+2
-2
examples/FasterRCNN/train.py
examples/FasterRCNN/train.py
+1
-1
tensorpack/tfutils/varmanip.py
tensorpack/tfutils/varmanip.py
+1
-1
No files found.
examples/FasterRCNN/NOTES.md
View file @
f7729086
...
@@ -5,7 +5,7 @@ This is a minimal implementation that simply contains these files:
...
@@ -5,7 +5,7 @@ This is a minimal implementation that simply contains these files:
+
data.py: prepare data for training
+
data.py: prepare data for training
+
common.py: common data preparation utilities
+
common.py: common data preparation utilities
+
basemodel.py: implement resnet
+
basemodel.py: implement resnet
+
model.py: implement rpn/faster-rcnn
+
model.py: implement rpn/faster-rcnn
/mask-rcnn
+
train.py: main training script
+
train.py: main training script
+
utils/: third-party helper functions
+
utils/: third-party helper functions
+
eval.py: evaluation utilities
+
eval.py: evaluation utilities
...
@@ -45,5 +45,5 @@ Speed:
...
@@ -45,5 +45,5 @@ Speed:
a slow convolution algorithm, or you spend more time on autotune.
a slow convolution algorithm, or you spend more time on autotune.
This is a general problem of TensorFlow when running against variable-sized input.
This is a general problem of TensorFlow when running against variable-sized input.
3.
With a large roi batch size (e.g. >= 256), GPU utilitization should stay a
round
90%.
3.
With a large roi batch size (e.g. >= 256), GPU utilitization should stay a
bove
90%.
examples/FasterRCNN/README.md
View file @
f7729086
...
@@ -24,8 +24,8 @@ DIR/
...
@@ -24,8 +24,8 @@ DIR/
## Usage
## Usage
Change config:
Change config
in
`config.py`
:
1.
Set
`BASEDIR`
in
`config.py`
to
`/path/to/DIR`
as described above.
1.
Set
`BASEDIR`
to
`/path/to/DIR`
as described above.
2.
Set
`MODE_MASK`
to switch Faster-RCNN or Mask-RCNN.
2.
Set
`MODE_MASK`
to switch Faster-RCNN or Mask-RCNN.
Train:
Train:
...
...
examples/FasterRCNN/train.py
View file @
f7729086
...
@@ -147,7 +147,7 @@ class Model(ModelDesc):
...
@@ -147,7 +147,7 @@ class Model(ModelDesc):
image
,
fg_sampled_boxes
,
image
,
fg_sampled_boxes
,
tf
.
zeros_like
(
fg_inds_wrt_sample
,
dtype
=
tf
.
int32
),
300
)
tf
.
zeros_like
(
fg_inds_wrt_sample
,
dtype
=
tf
.
int32
),
300
)
fg_sampled_patches
=
tf
.
transpose
(
fg_sampled_patches
,
[
0
,
2
,
3
,
1
])
fg_sampled_patches
=
tf
.
transpose
(
fg_sampled_patches
,
[
0
,
2
,
3
,
1
])
fg_sampled_patches
=
tf
.
reverse
(
fg_sampled_patches
,
axis
=
-
1
)
# BGR->RGB
fg_sampled_patches
=
tf
.
reverse
(
fg_sampled_patches
,
axis
=
[
-
1
]
)
# BGR->RGB
tf
.
summary
.
image
(
'viz'
,
fg_sampled_patches
,
max_outputs
=
30
)
tf
.
summary
.
image
(
'viz'
,
fg_sampled_patches
,
max_outputs
=
30
)
matched_gt_boxes
=
tf
.
gather
(
gt_boxes
,
fg_inds_wrt_gt
)
matched_gt_boxes
=
tf
.
gather
(
gt_boxes
,
fg_inds_wrt_gt
)
...
...
tensorpack/tfutils/varmanip.py
View file @
f7729086
...
@@ -169,7 +169,7 @@ def get_checkpoint_path(model_path):
...
@@ -169,7 +169,7 @@ def get_checkpoint_path(model_path):
def
load_chkpt_vars
(
model_path
):
def
load_chkpt_vars
(
model_path
):
"""
Dump
all variables from a checkpoint to a dict.
"""
Load
all variables from a checkpoint to a dict.
Args:
Args:
model_path(str): path to a checkpoint.
model_path(str): path to a checkpoint.
...
...
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