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

Using tf_to_trt_image_classification with DLA support #41

Open
cmehrshad opened this issue Feb 25, 2019 · 0 comments
Open

Using tf_to_trt_image_classification with DLA support #41

cmehrshad opened this issue Feb 25, 2019 · 0 comments

Comments

@cmehrshad
Copy link

I have modified uff_to_plan.cpp to use DLA on Xavier Using the following function:

inline void enableDLA(IBuilder* b, int dlaID)
{
    b->allowGPUFallback(true);
    b->setFp16Mode(true);
    b->setDefaultDeviceType(static_cast<DeviceType>(dlaID));
}

The output is:

./build/examples/classify_image/classify_image data/images/gordon_setter.jpg data/plans/inception_v1.plan data/imagenet_labels_1001.txt input InceptionV1/Logits/SpatialSqueeze inception
Loading TensorRT engine from plan file...
Preprocessing input...
Executing inference engine...

The top-5 indices are: 215 235 166 214 213
Which corresponds to class labels:
0. Gordon setter

  1. Rottweiler
  2. black-and-tan coonhound
  3. Irish setter, red setter
  4. English setter
    dla/eglUtils.cpp (121) - EGL Error in validateEglStream: 12289
    terminate called after throwing an instance of 'nvinfer1::EglError'
    what(): std::exception
    Aborted (core dumped)

Do you have a clue how can I use DLA with this project?
Thanks,

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

No branches or pull requests

1 participant