# YOLOv8 Python Script has really high inference time due unused GPU Memory

**URL:** <https://forums.developer.nvidia.com/t/yolov8-python-script-has-really-high-inference-time-due-unused-gpu-memory/286403>\
**Category:** Jetson Orin NX\
**Tags:** pytorch, cudnn, cuda\
**Created:** [March 18, 2024, 10:20am UTC](https://forums.developer.nvidia.com/t/yolov8-python-script-has-really-high-inference-time-due-unused-gpu-memory/286403 "2024-03-18T10:20:35Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [March 20, 2024, 7:24am UTC](https://forums.developer.nvidia.com/t/yolov8-python-script-has-really-high-inference-time-due-unused-gpu-memory/286403/5 "2024-03-20T07:24:58Z")

</div>

Hi,

TorchVision and TorchAudio need to be built from the source.  
You can find the building instructions below:

> [@PyTorch for Jetson](https://forums.developer.nvidia.com/t/pytorch-for-jetson/72048):
>
> Below are pre-built PyTorch pip wheel installers for Jetson Nano, TX1/TX2, Xavier, and Orin with JetPack 4.2 and newer. Download one of the PyTorch binaries from below for your version of JetPack, and see the installation instructions to run on your Jetson. These pip wheels are built for ARM aarch64 architecture, so run these commands on your Jetson (not on a host PC). You can also use the containers from [jetson-containers](https://github.com/dusty-nv/jetson-containers). PyTorch pip wheels JetPack 6 
> 
> > **PyTorch v2.2.0**
> >
> > JetPack 6.0 DP (L4T R3…

Or you can use our container which has all pre-installed.

> **[NVIDIA L4T PyTorch | NVIDIA NGC](https://catalog.ngc.nvidia.com/orgs/nvidia/containers/l4t-pytorch)**
>
> PyTorch is a GPU accelerated tensor computational framework with a Python front end. This container contains PyTorch and torchvision pre-installed in a Python 3 environment to get up & running quickly with PyTorch on Jetson.

Thanks.

---

_[View the full topic](https://forums.developer.nvidia.com/t/yolov8-python-script-has-really-high-inference-time-due-unused-gpu-memory/286403)._
