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

Added direct RGB mapping to makeTensorStream tool #27

Merged
merged 2 commits into from Sep 3, 2015
Merged

Added direct RGB mapping to makeTensorStream tool #27

merged 2 commits into from Sep 3, 2015

Conversation

lolz0r
Copy link

@lolz0r lolz0r commented Aug 14, 2015

An additional param has been added to the command line. Set to 'true' if you wish for your label images to be interpreted as a direct RGB images instead of being filtered through pre-defined classes.

@lolz0r
Copy link
Author

lolz0r commented Aug 14, 2015

When I attempt to train the default kitti net using DBs generated with this code I see an error:

INF [ System::Init(68) ] CN24 version 06206bf refs/heads/stable
INF [ System::Init(69) ] Copyright (C) 2015 Clemens-Alexander Brust
INF [ System::Init(70) ] For licensing information, see the LICENSE file included with this project.
DBG [ System::Init(75) ] Executable path: /home/lolz0r/cn24/build/
INF [ System::Init(99) ] Could not find a config file.
INF [ CLHelper::Init(200) ] Using OpenCL device: GeForce GTX 960
INF [ CLHelper::Init(201) ] Image support: Yes
INF [ CLHelper::Init(202) ] Max work group size: 0
INF [ CLHelper::Init(213) ] Creating OpenCL context...
INF [ CLHelper::Init(224) ] Creating OpenCL command queue...
DBG [ CLHelper::CreateProgram(350) ] Compiling kernels/crossCorrelation.cl
DBG [ CLHelper::CreateProgram(350) ] Compiling kernels/biasedConvolution.cl
DBG [ CLHelper::CreateProgram(350) ] Compiling kernels/fullConvolution.cl
DBG [ CLHelper::CreateProgram(350) ] Compiling kernels/foldWeights.cl
DBG [ CLHelper::CreateProgram(350) ] Compiling kernels/biasedMatrixVector.cl
DBG [ CLHelper::CreateProgram(350) ] Compiling kernels/biasGradient.cl
DBG [ CLHelper::CreateProgram(350) ] Compiling kernels/matrixMatrix.cl
DBG [ CLHelper::CreateProgram(350) ] Compiling kernels/maximumPooling.cl
DBG [ CLHelper::CreateProgram(350) ] Compiling kernels/nonLinearFunctions.cl
DBG [ TensorViewer::TensorViewer(57) ] Instance created.
DBG [ ConfigurableFactory::ConfigurableFactory(57) ] Adding convolutional layer to receptive field (7,7)
DBG [ ConfigurableFactory::ConfigurableFactory(64) ] Convolutional layer
DBG [ ConfigurableFactory::ConfigurableFactory(66) ] Adding maxpooling layer to receptive field (2,2)
DBG [ ConfigurableFactory::ConfigurableFactory(57) ] Adding convolutional layer to receptive field (5,5)
DBG [ ConfigurableFactory::ConfigurableFactory(57) ] Adding convolutional layer to receptive field (5,5)
DBG [ main(78) ] Optimal settings: LR: 0.0001, GM: 0.003, EX: 0.75, SB: 2, PB: 2, L1: 0.001, L2: 0.0005, MM: 0.9
INF [ main(84) ] Using fully convolutional training
DBG [ TensorStreamDataset* Conv::TensorStreamDataset::CreateFromConfiguration(328) ] Loading dataset with 1 classes
DBG [ TensorStreamDataset* Conv::TensorStreamDataset::CreateFromConfiguration(329) ] Training tensor: ~/cn24/build/cn24DB/DATASET_TRAIN.Tensor
DBG [ TensorStreamDataset* Conv::TensorStreamDataset::CreateFromConfiguration(330) ] Testing tensor: ~/cn24/build/cn24DB/DATASET_TEST.Tensor
DBG [ TensorStreamDataset::TensorStreamDataset(32) ] Instance created.
ERR [ Tensor::Deserialize(253) ] Cannot deserialize from this stream!
DBG [ TensorStreamDataset::TensorStreamDataset(54) ] 0 training tensors
ERR [ Tensor::Deserialize(253) ] Cannot deserialize from this stream!
DBG [ TensorStreamDataset::TensorStreamDataset(73) ] 0 testing tensors
DBG [ DatasetInputLayer::DatasetInputLayer(31) ] Instance created.
DBG [ DatasetInputLayer::DatasetInputLayer(41) ] Using loss sampling probability: 0.25
DBG [ DatasetInputLayer::DatasetInputLayer(47) ] Total samples: 0
DBG [ Net::AddLayer(59) ] Layer 0 output 0: (0s@0x0x0m)
DBG [ Net::AddLayer(59) ] Layer 0 output 1: (0s@0x0x0m)
DBG [ Net::AddLayer(59) ] Layer 0 output 2: (0s@0x0x0m)
DBG [ Net::AddLayer(59) ] Layer 0 output 3: (0s@0x0x0m)
DBG [ Net::AddLayer(73) ] Layer 0 added.
DBG [ Net::AddLayer(77) ] Layer 0 is OpenCL aware
DBG [ Net::AddLayer(87) ] Layer 0 added as training layer.
DBG [ ResizeLayer::ResizeLayer(23) ] Instance created, border size: (22, 22)
DBG [ Net::AddLayer(37) ] Layer 1 input: layer 0, output 0
DBG [ Net::AddLayer(59) ] Layer 1 output 0: (0s@0x0x0m)
ERR [ ResizeLayer::Connect(66) ] FATAL: Dimensions don't match!
terminate called after throwing an instance of 'std::runtime_error'
what(): See log for details.
Aborted (core dumped)

I will investigate tomorrow to see if its the generated DBs or something else.

@cabrust
Copy link
Collaborator

cabrust commented Aug 14, 2015

Hi,
thanks for the PR! I still need to add some bits to the .set parsers so that all the tools know about regression vs. classification.
As for your error, this usually means that CN24 could not read or find the Tensor files. It may also mean that one of the dimensions (probably the "maps" dimension) is zero when it needs to be 3. What does your "classes" section of the configuration look like?
While I'm working on the parsers, I recommend something like this:

classes=3
red
green
blue

colors
0xFF0000
0x00FF00
0x0000FF

cabrust added a commit that referenced this pull request Aug 14, 2015
@lolz0r
Copy link
Author

lolz0r commented Aug 15, 2015

Nice! I hope to see the updates for regression soon!

@cabrust cabrust merged commit 51cd767 into cvjena:stable Sep 3, 2015
@cabrust
Copy link
Collaborator

cabrust commented Sep 3, 2015

Hi,
please tell me if and how you want to be listed in the CONTRIBUTORS file :)

@lolz0r
Copy link
Author

lolz0r commented Sep 4, 2015

Sure!

@cabrust
Copy link
Collaborator

cabrust commented Sep 6, 2015

Do you want your full name in there?

@lolz0r
Copy link
Author

lolz0r commented Sep 6, 2015

Just lolz0r ;)

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

Successfully merging this pull request may close these issues.

None yet

2 participants