# TensorRT Sample "sampleSSD" error

**URL:** <https://forums.developer.nvidia.com/t/tensorrt-sample-samplessd-error/70534>\
**Category:** TensorRT\
**Created:** [February 17, 2019, 6:44am UTC](https://forums.developer.nvidia.com/t/tensorrt-sample-samplessd-error/70534 "2019-02-17T06:44:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![13390560336](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@13390560336](https://forums.developer.nvidia.com/u/13390560336)\
**Post date:** [February 17, 2019, 6:44am UTC](https://forums.developer.nvidia.com/t/tensorrt-sample-samplessd-error/70534/1 "2019-02-17T06:44:16Z")

</div>

ubuntu16.04  
tensorRT :TensorRT-5.0.2.6.Ubuntu-16.04.4.x86\_64-gnu.cuda-9.0.cudnn7.3  
caffemodel:VGG\_VOC0712\_SSD\_300x300\_iter\_120000.caffemodel  
prototxt:deploy.prototxt  
(models\_VGGNet\_VOC0712\_SSD\_300x300.tar.gz from [GitHub - weiliu89/caffe at ssd](https://github.com/weiliu89/caffe/tree/ssd) → [models\_VGGNet\_VOC0712\_SSD\_300x300.tar.gz - Google Drive](https://drive.google.com/file/d/0BzKzrI_SkD1_WVVTSmQxU0dVRzA/view) according to TensorRT-5.0.2.6/samples/sampleSSD/README.md)

I run sampleSSD sample in TensorRT-5.0.2.6/bin/sampleSSD,the error is as follows:

user@2GPU:~/code/tensorRT/TensorRT-5.0.2.6/bin$ ./sample\_ssd  
Begin parsing model…  
FP32 mode running…  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.  
ERROR: mbox\_loc: all concat input tensors must have the same dimensions except on the concatenation axis  
ERROR: mbox\_conf: all concat input tensors must have the same dimensions except on the concatenation axis  
Caffe Parser: Invalid axis in softmax layer - Cannot perform softmax along batch size dimension and expects NCHW input. Negative axis is not supported in TensorRT, please use positive axis indexing  
error parsing layer type Softmax index 98  
End parsing model…  
Segmentation fault (core dumped)

I think I need to edit the deploy.prototxt file. The tutorial I found is as follows [https://docs.nvidia.com/deeplearning/sdk/tensorrt-developer-guide/index.html#samples](https://docs.nvidia.com/deeplearning/sdk/tensorrt-developer-guide/index.html#samples).  
But I don’t know how to change it.

---

<div class="post-metadata">

**Author:** ![mukesh.m.karanth](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mukesh.m.karanth](https://forums.developer.nvidia.com/u/mukesh.m.karanth)\
**Post date:** [March 15, 2019, 8:14am UTC](https://forums.developer.nvidia.com/t/tensorrt-sample-samplessd-error/70534/2 "2019-03-15T08:14:12Z")

</div>

Try searching in this thread: [Mobilenetssd · Issue #5 · chenzhi1992/TensorRT-SSD · GitHub](https://github.com/chenzhi1992/TensorRT-SSD/issues/5)  
It has some discussions on how to modify .prototxt near the end.  
Hope it helps

---

<div class="post-metadata">

**Author:** ![NVES\_R](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nves_r/32/14043_2.png) [@NVES\_R](https://forums.developer.nvidia.com/u/NVES_R)\
**Post date:** [March 25, 2019, 9:43pm UTC](https://forums.developer.nvidia.com/t/tensorrt-sample-samplessd-error/70534/3 "2019-03-25T21:43:31Z")

</div>

Hi,

You have to follow the instructions in the associated README.md with the sampleSSD code for changing deploy.prototxt and then renaming is to ssd.prototxt. The instructions can also be found here: [url][https://docs.nvidia.com/deeplearning/sdk/tensorrt-release-notes/tensorrt-5.html#rel\_5-0-2[/url]](https://docs.nvidia.com/deeplearning/sdk/tensorrt-release-notes/tensorrt-5.html#rel_5-0-2%5B/url%5D)

I’ve gone through the instructions to produce an example ssd.prototxt file that worked with the sampleSSD code in /workspace/tensorrt/samples/sampleSSD in the TensorRT 5.1 (19.03-pyX) NGC Container: [url][https://ngc.nvidia.com/catalog/containers/nvidia:tensorrt/[/url]](https://ngc.nvidia.com/catalog/containers/nvidia:tensorrt/%5B/url%5D)

Example ssd.prototxt file after following README.md instructions attached. (You will have to remove the extra .txt extension at the end of the filename.)

Thanks,  
NVIDIA Enterprise Support  
[ssd.prototxt.txt](https://forums.developer.nvidia.com/uploads/short-url/v509uKFbQDnXD2FdabyevgwNNUw.txt) (24.8 KB)

---

<div class="post-metadata">

**Author:** ![krishnab\_sd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@krishnab\_sd](https://forums.developer.nvidia.com/u/krishnab_sd)\
**Post date:** [May 2, 2019, 7:43pm UTC](https://forums.developer.nvidia.com/t/tensorrt-sample-samplessd-error/70534/4 "2019-05-02T19:43:28Z")

</div>

Are these changes documented specific to the sample SSD model? How about any other Caffe model? Is there a generic documentation applicable for any model?

---

<div class="post-metadata">

**Author:** ![adeelz92](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@adeelz92](https://forums.developer.nvidia.com/u/adeelz92)\
**Post date:** [July 9, 2020, 3:13am UTC](https://forums.developer.nvidia.com/t/tensorrt-sample-samplessd-error/70534/5 "2020-07-09T03:13:18Z")

</div>

Hi, The link to download the ssd.prototxt is no longer available. Is it possible to update ?

---

<div class="post-metadata">

**Author:** ![gsi4](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gsi4](https://forums.developer.nvidia.com/u/gsi4)\
**Post date:** [July 24, 2020, 4:07am UTC](https://forums.developer.nvidia.com/t/tensorrt-sample-samplessd-error/70534/6 "2020-07-24T04:07:54Z")

</div>

Need example ssd.prototxt…Its not clear to me on what we need to change in the deploy.txt

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 12, 2021, 7:47pm UTC](https://forums.developer.nvidia.com/t/tensorrt-sample-samplessd-error/70534/7 "2021-10-12T19:47:37Z")

</div>


