GithubHelp home page GithubHelp logo

TensorRT Python Examples about ultralytics HOT 1 OPEN

monkeycc avatar monkeycc commented on June 20, 2024
TensorRT Python Examples

from ultralytics.

Comments (1)

glenn-jocher avatar glenn-jocher commented on June 20, 2024

@monkeycc hello,

Thank you for reaching out and for your interest in TensorRT examples for YOLOv8! It looks like you're looking for Python examples for various tasks such as detection, segmentation, classification, pose estimation, and oriented bounding boxes (OBB) using TensorRT.

To get you started, here's a basic example of how to export a YOLOv8 model to TensorRT format and run inference using Python:

from ultralytics import YOLO

# Load the YOLOv8 model
model = YOLO("yolov8n.pt")

# Export the model to TensorRT format
model.export(format="engine")  # creates 'yolov8n.engine'

# Load the exported TensorRT model
tensorrt_model = YOLO("yolov8n.engine")

# Run inference
results = tensorrt_model("https://ultralytics.com/images/bus.jpg")

For more detailed instructions and examples, you can refer to our TensorRT integration guide.

If you encounter any issues or have specific questions, please provide a minimum reproducible code example so we can better assist you. You can find more information on how to create one here. Additionally, ensure you are using the latest versions of torch and ultralytics packages.

Feel free to reach out if you need further assistance. We're here to help!

from ultralytics.

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.