Skip to content

Commit

Permalink
Fixes missing val image preprocess call
Browse files Browse the repository at this point in the history
  • Loading branch information
abhshkdz committed Nov 21, 2017
1 parent 9f9f442 commit 8e75892
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/prepro_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ function extractFeatures(model, opt, ndims, preprocessFn)
ims = torch.DoubleTensor(r - i + 1, 3, opt.imgSize, opt.imgSize)
for j = 1, r - i + 1 do
ims[j] = loadImage(valList[i + j - 1], opt.imgSize)
ims[j] = preprocessFn(ims[j])
end
if opt.gpuid >= 0 then
ims = ims:cuda()
Expand Down
Empty file modified scripts/download_model.sh
100644 → 100755
Empty file.

0 comments on commit 8e75892

Please sign in to comment.