Hi!
I’m testing one of my yolov2 project on Jeton TX2 + DeepStreem2.0.
But I got follow error…
Building the TensorRT Engine...
[New Thread 0x7f7166df70 (LWP 18127)]
trt-yolo-app: NvPluginYOLO.cu:225: virtual void nvinfer1::plugin::Region::configure(const nvinfer1::Dims*, int, const nvinfer1::Dims*, int, int): Assertion `C == num * (coords + 1 + classes)' failed.
Thread 1 "trt-yolo-app" received signal SIGABRT, Aborted.
0x0000007fb20fd528 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x0000007fb20fd528 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x0000007fb20fe9e0 in __GI_abort () at abort.c:89
#2 0x0000007fb20f6c04 in __assert_fail_base (fmt=0x7fb21e3290 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7fb3424a58 "C == num * (coords + 1 + classes)",
file=file@entry=0x7fb3424a08 "NvPluginYOLO.cu", line=line@entry=225,
function=function@entry=0x7fb3424640 "virtual void nvinfer1::plugin::Region::configure(const nvinfer1::Dims*, int, const nvinfer1::Dims*, int, int)") at assert.c:92
#3 0x0000007fb20f6cac in __GI___assert_fail (assertion=0x7fb3424a58 "C == num * (coords + 1 + classes)", file=0x7fb3424a08 "NvPluginYOLO.cu", line=225,
function=0x7fb3424640 "virtual void nvinfer1::plugin::Region::configure(const nvinfer1::Dims*, int, const nvinfer1::Dims*, int, int)") at assert.c:101
#4 0x0000007fb341d390 in nvinfer1::plugin::Region::configure(nvinfer1::Dims const*, int, nvinfer1::Dims const*, int, int) () from /usr/lib/aarch64-linux-gnu/libnvinfer_plugin.so.4
#5 0x0000007fb39dbe40 in nvinfer1::cudnn::PluginLayer::configurePlugin(nvinfer1::cudnn::EngineBuildContext const&) () from /usr/lib/aarch64-linux-gnu/libnvinfer.so.4
#6 0x0000007fb39e9760 in nvinfer1::builder::buildSingleLayer(nvinfer1::cudnn::EngineBuildContext&, nvinfer1::builder::Node&, std::unordered_map<std::string, std::unique_ptr<nvinfer1::cudnn::Region, std::default_delete<nvinfer1::cudnn::Region> >, std::hash<std::string>, std::equal_to<std::string>, std::allocator<std::pair<std::string const, std::unique_ptr<nvinfer1::cudnn::Region, std::default_delete<nvinfer1::cudnn::Region> > > > > const&, nvinfer1::CpuMemoryGroup&, std::unordered_map<std::string, std::vector<float, std::allocator<float> >, std::hash<std::string>, std::equal_to<std::string>, std::allocator<std::pair<std::string const, std::vector<float, std::allocator<float> > > > >*, bool) () from /usr/lib/aarch64-linux-gnu/libnvinfer.so.4
#7 0x0000007fb39ed808 in nvinfer1::builder::makeEngineFromGraph(nvinfer1::CudaEngineBuildConfig const&, nvinfer1::cudnn::HardwareContext const&, nvinfer1::builder::Graph&, std::unordered_map<std::string, std::vector<float, std::allocator<float> >, std::hash<std::string>, std::equal_to<std::string>, std::allocator<std::pair<std::string const, std::vector<float, std::allocator<float> > > > >*, int) ()
from /usr/lib/aarch64-linux-gnu/libnvinfer.so.4
#8 0x0000007fb39ee9bc in nvinfer1::builder::buildEngine(nvinfer1::CudaEngineBuildConfig&, nvinfer1::cudnn::HardwareContext const&, nvinfer1::Network const&) ()
from /usr/lib/aarch64-linux-gnu/libnvinfer.so.4
#9 0x0000007fb3a4ca44 in ?? () from /usr/lib/aarch64-linux-gnu/libnvinfer.so.4
#10 0x0000000000421948 in Yolo::createYOLOEngine(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, nvinfer1::DataType, Int8EntropyCalibrator*) ()
#11 0x00000000004247d4 in Yolo::Yolo(unsigned int) ()
#12 0x0000000000425fd4 in YoloV2::YoloV2(unsigned int) ()
#13 0x0000000000409298 in main ()
(gdb) q
A debugging session is active.
Inferior 1 [process 18112] will be killed.
Maybe the main reason of above error is customized net configuration.
Can you guys help me?