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

Training with more than four channels #54

Open
astillich opened this issue Apr 25, 2017 · 2 comments
Open

Training with more than four channels #54

astillich opened this issue Apr 25, 2017 · 2 comments

Comments

@astillich
Copy link

astillich commented Apr 25, 2017

I have an image with three different shapes and another image with 4 classes, 3 marking the shapes and one class for marking the background. I created a .CTensor from these and wrote a .set file which associates the colors to classes using

makeCompressedTensorStream testclass.set images . labels . testclass.CTensor false

When I try to train a network with the four classes, CN24 errors out with:

ERR [ ErrorLayer::CreateOutputs(49) ] Inputs need the same number of elements!

The same also happens when I modify the toy example to use four classes.

Am I missing something or is that a bug?

EDIT: this is on master, not develop

@cabrust
Copy link
Collaborator

cabrust commented Apr 26, 2017

Could you post the dimensions of each entry in the Tensor stream? While CN24 may make some assumptions about the number of input channels, no such restrictions exist on output channels.

@astillich
Copy link
Author

TOY.Tensor

toy_tensor

My test tensor:

test_tensor

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