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
0166e4a5
Commit
0166e4a5
authored
Oct 01, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle iter number in caffe bn
parent
6f3f985a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tensorpack/utils/loadcaffe.py
tensorpack/utils/loadcaffe.py
+3
-3
No files found.
tensorpack/utils/loadcaffe.py
View file @
0166e4a5
...
@@ -72,9 +72,9 @@ class CaffeLayerProcessor(object):
...
@@ -72,9 +72,9 @@ class CaffeLayerProcessor(object):
name
+
'/b'
:
param
[
1
]
.
data
}
name
+
'/b'
:
param
[
1
]
.
data
}
def
proc_bn
(
self
,
idx
,
name
,
param
):
def
proc_bn
(
self
,
idx
,
name
,
param
):
assert
param
[
2
]
.
data
[
0
]
==
1.0
scale_factor
=
param
[
2
]
.
data
[
0
]
return
{
name
+
'/mean/EMA'
:
param
[
0
]
.
data
,
return
{
name
+
'/mean/EMA'
:
param
[
0
]
.
data
/
scale_factor
,
name
+
'/variance/EMA'
:
param
[
1
]
.
data
}
name
+
'/variance/EMA'
:
param
[
1
]
.
data
/
scale_factor
}
def
proc_scale
(
self
,
idx
,
name
,
param
):
def
proc_scale
(
self
,
idx
,
name
,
param
):
bottom_name
=
self
.
net
.
bottom_names
[
name
][
0
]
bottom_name
=
self
.
net
.
bottom_names
[
name
][
0
]
...
...
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