Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there is an error when i am running the train_id_net_res_2stream #23

Open
feixiaoyu2223 opened this issue Jan 4, 2019 · 4 comments
Open

Comments

@feixiaoyu2223
Copy link

When i run the 'train_id_net_res_2stream ',there is an error shows:
"The subscript index must be a positive integer type or a logical type.
Wrong in train_id_net_res_2stream (line 13)
net.params(net.getParamIndex('fc751f')).learningRate = 0.01;"
My enviroment is win10 +matlab2016.
Can you tell me where is the problem?Thank you.

@layumi
Copy link
Owner

layumi commented Jan 4, 2019

Hi @feixiaoyu2223
Could you print

net.getParamIndex('fc751f')

It should be a positive number.

@feixiaoyu2223
Copy link
Author

When i add this commend ,It shows:
ans =

NaN
The subscript index must be a positive integer type or a logical type.
Wrong in train_id_net_res_2stream (line 13)
net.params(net.getParamIndex('fc751f')).learningRate = 0.01;

@layumi
Copy link
Owner

layumi commented Jan 4, 2019

The code seems not find the weight fc751f, which is the weight for the last classification layer.

Could you try

net = resnet52_market()
net.getParamIndex('fc751f')

@feixiaoyu2223
Copy link
Author

It shows
ans =

214
train: epoch 01: 1/2366:错误使用 dagnn.DagNN/eval (line 83)
No variable of name 'data_2' could be found in the DAG.

出错 cnn_train_dag>processEpoch (line 223)
net.eval(inputs, params.derOutputs, 'holdOn', s < params.numSubBatches) ;

出错 cnn_train_dag (line 91)
[net, state] = processEpoch(net, state, params, 'train',opts) ;

出错 train_id_net_res_2stream (line 35)
[net,info] = cnn_train_dag(net, imdb, @GetBatch,opts) ;

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

No branches or pull requests

2 participants