cn24 icon indicating copy to clipboard operation
cn24 copied to clipboard

Training with more than four channels

Open astillich opened this issue 7 years ago • 2 comments

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

astillich avatar Apr 25 '17 11:04 astillich

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.

cabrust avatar Apr 26 '17 06:04 cabrust

TOY.Tensor

toy_tensor

My test tensor:

test_tensor

astillich avatar Apr 26 '17 09:04 astillich