Skip to content

Commit

Permalink
Fix LBPCriterion #316
Browse files Browse the repository at this point in the history
  • Loading branch information
nagadomi committed Nov 27, 2019
1 parent 950108d commit 715b6f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/LBPCriterion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ local function create_filters(ch, n, k, layers)
if i == 1 then
-- channel identity
for j = 1, ch do
filter.weight[i]:fill(0)
filter.weight[i][i][math.floor(k/2)+1][math.floor(k/2)+1] = 1
filter.weight[j]:fill(0)
filter.weight[j][j][math.floor(k/2)+1][math.floor(k/2)+1] = 1
end
end
model:add(filter)
Expand Down

0 comments on commit 715b6f0

Please sign in to comment.