# GPU difference inference

**URL:** <https://forums.developer.nvidia.com/t/gpu-difference-inference/200294>\
**Category:** TAO Toolkit\
**Created:** [January 12, 2022, 10:35am UTC](https://forums.developer.nvidia.com/t/gpu-difference-inference/200294 "2022-01-12T10:35:08Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![rishika.v](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@rishika.v](https://forums.developer.nvidia.com/u/rishika.v)\
**Post date:** [January 12, 2022, 10:35am UTC](https://forums.developer.nvidia.com/t/gpu-difference-inference/200294/1 "2022-01-12T10:35:08Z")

</div>

Hello,

Can the tlt models generated on GPU 1080 be inferred on Triton server with GPU 3070, 3080?

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [January 12, 2022, 10:53am UTC](https://forums.developer.nvidia.com/t/gpu-difference-inference/200294/2 "2022-01-12T10:53:00Z")

</div>

Yes, but please note that it is .etlt model. You can run tao export and then copy the .etlt model to Trition server.

---

<div class="post-metadata">

**Author:** ![rishika.v](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@rishika.v](https://forums.developer.nvidia.com/u/rishika.v)\
**Post date:** [January 12, 2022, 1:01pm UTC](https://forums.developer.nvidia.com/t/gpu-difference-inference/200294/3 "2022-01-12T13:01:06Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![rishika.v](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@rishika.v](https://forums.developer.nvidia.com/u/rishika.v)\
**Post date:** [January 24, 2022, 10:30am UTC](https://forums.developer.nvidia.com/t/gpu-difference-inference/200294/4 "2022-01-24T10:30:41Z")

</div>

Hi,

How to run a detectnet\_v2 model on the triton server, it is a little confusing?

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [January 24, 2022, 12:45pm UTC](https://forums.developer.nvidia.com/t/gpu-difference-inference/200294/5 "2022-01-24T12:45:12Z")

</div>

For running detectnet\_v2 model in triton server, you can refer to [Integrating TAO CV Models with Triton Inference Server — TAO Toolkit 3.22.05 documentation](https://docs.nvidia.com/tao/tao-toolkit/text/tao_cv_triton_inf_server/index.html).

---

<div class="post-metadata">

**Author:** ![rishika.v](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@rishika.v](https://forums.developer.nvidia.com/u/rishika.v)\
**Post date:** [January 25, 2022, 6:21am UTC](https://forums.developer.nvidia.com/t/gpu-difference-inference/200294/6 "2022-01-25T06:21:55Z")

</div>

I saw this documentation earlier, but it is not clear…  
Is there another client that I have to install for Detectnet\_v2?

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [January 25, 2022, 6:28am UTC](https://forums.developer.nvidia.com/t/gpu-difference-inference/200294/7 "2022-01-25T06:28:44Z")

</div>

After you have trained a detectnet\_v2 model, you can deploy the model to run inference.  
For inference, usually there are below ways.

1. Directly run “tao detectnet\_v2 infernece xxx”
2. Run it with deepstream , refer to [https://docs.nvidia.com/tao/tao-toolkit/text/object\_detection/detectnet\_v2.html#deploying-to-deepstream](https://docs.nvidia.com/tao/tao-toolkit/text/object_detection/detectnet_v2.html#deploying-to-deepstream)
3. Run with triton server. You can run it refer to the [NVIDIA-AI-IOT/tao-toolkit-triton-apps: Sample app code for deploying TAO Toolkit trained models to Triton (github.com)](https://github.com/NVIDIA-AI-IOT/tao-toolkit-triton-apps) . Peoplenet or dashcamnet is actually based on detectnet\_v2 network.
4. You can also run with your standalone inference code. For example, [Run PeopleNet with tensorrt - #21 by carlos.alvarez](https://forums.developer.nvidia.com/t/run-peoplenet-with-tensorrt/128000/21)

---

<div class="post-metadata">

**Author:** ![rishika.v](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@rishika.v](https://forums.developer.nvidia.com/u/rishika.v)\
**Post date:** [January 25, 2022, 6:57am UTC](https://forums.developer.nvidia.com/t/gpu-difference-inference/200294/8 "2022-01-25T06:57:09Z")

</div>

How about the post processing, is it a file or a folder?  
If it is a file then what is the extension?

The DetectNet\_v2 inference sample has 2 components that can be configured

1. [Model Repository]
2. [Post Processor]

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [January 25, 2022, 9:14am UTC](https://forums.developer.nvidia.com/t/gpu-difference-inference/200294/9 "2022-01-25T09:14:05Z")

</div>

For running in triton server, please refer to the README.  
For example, running official released peoplenet model with it, see its postprocessing config file in [tao-toolkit-triton-apps/clustering\_config\_peoplenet.prototxt at main · NVIDIA-AI-IOT/tao-toolkit-triton-apps (github.com)](https://github.com/NVIDIA-AI-IOT/tao-toolkit-triton-apps/blob/main/tao_triton/python/clustering_specs/clustering_config_peoplenet.prototxt)

---

<div class="post-metadata">

**Author:** ![rishika.v](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@rishika.v](https://forums.developer.nvidia.com/u/rishika.v)\
**Post date:** [February 3, 2022, 5:02am UTC](https://forums.developer.nvidia.com/t/gpu-difference-inference/200294/10 "2022-02-03T05:02:59Z")

</div>

Can I run classification with a standalone inference code?

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [February 4, 2022, 8:59am UTC](https://forums.developer.nvidia.com/t/gpu-difference-inference/200294/11 "2022-02-04T08:59:23Z")

</div>

Yes, it can. You can leverage [GitHub - NVIDIA-AI-IOT/tao-toolkit-triton-apps: Sample app code for deploying TAO Toolkit trained models to Triton · GitHub](https://github.com/NVIDIA-AI-IOT/tao-toolkit-triton-apps)  
or search/find some topics in forum. For example,

> [@Inferring resnet18 classification etlt model with python](https://forums.developer.nvidia.com/t/inferring-resnet18-classification-etlt-model-with-python/167721/40):
>
> Thanks for the info. I am checking further.

> [@Error while running inference, model generated through TLT using Opencv-Python](https://forums.developer.nvidia.com/t/error-while-running-inference-model-generated-through-tlt-using-opencv-python/186147/3):
>
> Could you try def allocate\_buffers(engine, batch\_size=1)

> [@TAO tensorRT model inferencing using python](https://forums.developer.nvidia.com/t/tao-tensorrt-model-inferencing-using-python/195275):
>
> Hi guys, We at [avyuct](https://avyuct.com/) have found out how to use tensorRT model generated by TAO toolkit. We were working on a classification problem using the resnet18 pretrained model and were running into issues when trying to deploy the tesnortRT model. For all the folks who are stuck at the same phase, check out the attachments to see the configuration file which is used to genereate the tesortRT model and the python code to infer the tensorRT model. [tensorRT\_model.py](https://forums.developer.nvidia.com/uploads/short-url/g6b7dJzWW7UzLSLh66ixGOdGYlw.py) (3.0 KB) [classification\_spec.cfg](https://forums.developer.nvidia.com/uploads/short-url/ul1T7BOMGnksvh3VPFDaejkqPTh.cfg) (…

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [February 18, 2022, 9:00am UTC](https://forums.developer.nvidia.com/t/gpu-difference-inference/200294/12 "2022-02-18T09:00:21Z")

</div>

Closed on February 18, 2022, 9:00am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
