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

Confusion Matrix for Full Convolution Network #156

Open
varghesealex90 opened this issue Apr 5, 2017 · 0 comments
Open

Confusion Matrix for Full Convolution Network #156

varghesealex90 opened this issue Apr 5, 2017 · 0 comments

Comments

@varghesealex90
Copy link

I have 5 class problem, where in the all 5 classes may be present in the input image. I would like to print the confusion matrix for the same.
output= model:forward(input) ---- size (10,5,240,240)
targets = target ---- size (10,240,240)

confusion:batchAdd(output,targets)

However I get the following error:

/home/uavws/torch/install/bin/luajit: ...ws/torch/install/share/lua/5.1/optim/ConfusionMatrix.lua:117: bad argument #1 to 'indexAdd' (out of range at /home/uavws/torch/pkg/torch/lib/TH/generic/THTensor.c:738)
stack traceback:
[C]: in function 'indexAdd'
...ws/torch/install/share/lua/5.1/optim/ConfusionMatrix.lua:117: in function 'batchAdd'
5_train.lua:211: in function 'opfunc'
/home/uavws/torch/install/share/lua/5.1/optim/sgd.lua:44: in function 'optimMethod'
5_train.lua:230: in function 'train'
doall.lua:80: in main chunk
[C]: in function 'dofile'
...avws/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670

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

1 participant