Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Feature extraction error #3

Closed
hiwonjoon opened this issue Feb 16, 2016 · 4 comments
Closed

Feature extraction error #3

hiwonjoon opened this issue Feb 16, 2016 · 4 comments

Comments

@hiwonjoon
Copy link

Hi,

When I tried to run feature extraction code as you described, I got an error like below.

> th extract-features.lua ../torch_models/resnet-101.t7 ../dataset/attribute/apascal_images/2007_007277.jpg
/home/nine/.torch/install/bin/luajit: ...h/install/share/lua/5.1/nn/SpatialBatchNormalization.lua:82: attempt to index field 'running_std' (a nil value)
stack traceback:
        ...h/install/share/lua/5.1/nn/SpatialBatchNormalization.lua:82: in function 'updateOutput'
        /home/nine/.torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
        extract-features.lua:63: in main chunk
        [C]: in function 'dofile'
        ...ine/.torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
        [C]: at 0x00406670

I confirmed that provided pretrained model have running_var parameters which is required at nn.SpatialBatchNormailization, but it doesn't have running_std. I also checked save_mean and save_std parameters, but they doesn't exist, too.

I installed cudnn v4, and Torch bindings@R4.

Any ideas?

@soumith
Copy link
Contributor

soumith commented Feb 16, 2016

hey @hiwonjoon have you updated your nn and cunn packages?
luarocks install nn
luarocks install cunn

I think that will fix things for you

@colesbury
Copy link
Contributor

@hiwonjoon did this fix your issue?

@xcastilla
Copy link

Hi, I'm not the original poster, but I was having the same issue when fine-tuning the network and this indeed solved it for me.

@hiwonjoon
Copy link
Author

@soumith @colesbury Updating nn and cunn packages solved the problem. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants