Error Caused by: Layer 'cnn|concatenate': Input size mismatch. Size of input to this layer is different from the expected

9 views (last 30 days)
Hi everyone,
I am trying to train a pointpiller network using code and functions from this example:
However, at the final stage,
[detector,info] = trainPointPillarsObjectDetector(cdsAugmented,detector,options);
I am receiving following error,
Processing data in minibatchqueue....
*************************************************************************
Data processing complete.
Error using dlnetwork/initialize
Invalid network.
Error in trainPointPillarsObjectDetector (line 182)
dlnet = initialize(dlnet);
Error in TrainingPointPiller (line 231)
[detector,info] = trainPointPillarsObjectDetector(cdsAugmented,detector,options);
Caused by:
Layer 'cnn|concatenate': Input size mismatch. Size of input to this layer is different from the expected
input size.
Inputs to this layer:
from layer 'cnn|up1|bn' (size 289(S) × 248(S) × 128(C) × 1(B))
from layer 'cnn|up2|bn' (size 290(S) × 248(S) × 128(C) × 1(B))
from layer 'cnn|up3|bn' (size 292(S) × 248(S) × 128(C) × 1(B))
Could you please point me to where I am making a mistake?
P.S. The above example was to train a point piller on two class (car and Truck), however, I modiefied the code and training it on just one class i.e. Car.
Thank you very much for your time :)

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by