Coder Social home page Coder Social logo

Comments (5)

jkjung-avt avatar jkjung-avt commented on May 11, 2024

I think the issue could be fixed by just removing the "image_tensor:0" input by enabling this line of code: https://github.com/jkjung-avt/tensorrt_demos/blob/master/ssd/build_engine.py#L160

from tensorrt_demos.

SahilChachere avatar SahilChachere commented on May 11, 2024

I think the issue could be fixed by just removing the "image_tensor:0" input by enabling this line of code: https://github.com/jkjung-avt/tensorrt_demos/blob/master/ssd/build_engine.py#L160

I solved this but now at last step during conversion I am getting core dumped error.

for reference:

UFF Output written to /home/sys-admin/Downloads/Projects/tensorrt_demos/ssd/tmp_inception_v2_coco.uff

UFF Text Output written to /home/sys-admin/Downloads/Projects/tensorrt_demos/ssd/tmp_inception_v2_coco.pbtxt

[TensorRT] INFO: Detected 1 inputs and 2 output network tensors.
python3: nmsPlugin.cpp:139: virtual void nvinfer1::plugin::DetectionOutput::configureWithFormat(const nvinfer1::Dims*, int, const nvinfer1::Dims*, int, nvinfer1::DataType, nvinfer1::PluginFormat, int): Assertion `numPriors * numLocClasses * 4 == inputDims[param.inputOrder[0]].d[0]' failed.
./build_engines.sh: line 5: 7298 Aborted (core dumped) python3 build_engine.py ${model}

from tensorrt_demos.

jkjung-avt avatar jkjung-avt commented on May 11, 2024

Check input order of the 3 input tensors of the NMS_TRT node (look at your 'tmp_inception_v2_coco.pbtxt').

Reference: https://devtalk.nvidia.com/default/topic/1050465/jetson-nano/how-to-write-config-py-for-converting-ssd-mobilenetv2-to-uff-format/post/5333033/#5333033

from tensorrt_demos.

SahilChachere avatar SahilChachere commented on May 11, 2024

Check input order of the 3 input tensors of the NMS_TRT node (look at your 'tmp_inception_v2_coco.pbtxt').

Reference: https://devtalk.nvidia.com/default/topic/1050465/jetson-nano/how-to-write-config-py-for-converting-ssd-mobilenetv2-to-uff-format/post/5333033/#5333033

@jkjung-avt as you mentioned to check 'tmp_inception_v2_coco.pbtxt' file, I have gone through it and compared parameters with build_engine.py file, all are similar, still, I am getting core dumped error, have you tried with ssd_inception model or have you such issue, what solution can you suggest specifically for ssd_inception_v2 model?

for reference:
in build_engine.py file -

},
    'ssd_inception_v2_coco': {
        'input_pb':   os.path.abspath(os.path.join(
                          DIR_NAME, 'ssd_inception_v2_coco.pb')),
        'tmp_uff':    os.path.abspath(os.path.join(
                          DIR_NAME, 'tmp_inception_v2_coco.uff')),
        'output_bin': os.path.abspath(os.path.join(
                          DIR_NAME, 'TRT_ssd_inception_v2_coco.bin')),
        'num_classes': 90,
        'min_size': 0.2,
        'max_size': 0.95,
        'input_order': [1, 0, 2],  # order of loc_data, conf_data, priorbox_data
    },

what else changes I must do in code??

from tensorrt_demos.

SahilChachere avatar SahilChachere commented on May 11, 2024

@jkjung-avt thanks for replies, I solved all issues and successfully converted & run by changing 'input_order': [1, 0, 2], to 'input_order': [0, 2, 1],

from tensorrt_demos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.