Giter VIP home page Giter VIP logo

usls's Introduction

usls

Static Badge Static Badge Static Badge Static Badge
Static Badge Static Badge

A Rust library integrated with ONNXRuntime, providing a collection of Computer Vison and Vision-Language models including YOLOv5, YOLOv6, YOLOv7, YOLOv8, YOLOv9, YOLOv10, RTDETR, SAM, MobileSAM, EdgeSAM, SAM-HQ, FastSAM, CLIP, BLIP, DINOv2, YOLO-World, PaddleOCR, Depth-Anything, GroundingDINO and others.

Segment Anything
YOLO + SAM
Monocular Depth Estimation
Panoptic Driving Perception Text-Detection-Recognition

Supported Models

Model Task / Type Example CUDA
f32
CUDA
f16
TensorRT
f32
TensorRT
f16
YOLOv5 Classification
Object Detection
Instance Segmentation
demo
YOLOv6 Object Detection demo
YOLOv7 Object Detection demo
YOLOv8 Object Detection
Instance Segmentation
Classification
Oriented Object Detection
Keypoint Detection
demo
YOLOv9 Object Detection demo
YOLOv10 Object Detection demo
RTDETR Object Detection demo
FastSAM Instance Segmentation demo
SAM Segment Anything demo
MobileSAM Segment Anything demo
EdgeSAM Segment Anything demo
SAM-HQ Segment Anything demo
YOLO-World Object Detection demo
DINOv2 Vision-Self-Supervised demo
CLIP Vision-Language demo ✅ visual
❌ textual
✅ visual
❌ textual
BLIP Vision-Language demo ✅ visual
❌ textual
✅ visual
❌ textual
DB Text Detection demo
SVTR Text Recognition demo
RTMO Keypoint Detection demo
YOLOPv2 Panoptic Driving Perception demo
Depth-Anything
(v1, v2)
Monocular Depth Estimation demo
MODNet Image Matting demo
GroundingDINO Open-Set Detection With Language demo

Installation

Refer to ort docs

For Linux or MacOS users
  • Download from ONNXRuntime Releases
  • Then linking
    export ORT_DYLIB_PATH=/Users/qweasd/Desktop/onnxruntime-osx-arm64-1.17.1/lib/libonnxruntime.1.17.1.dylib

Quick Start

cargo run -r --example yolo   # blip, clip, yolop, svtr, db, ...

Integrate into your own project

# Add `usls` as a dependency to your project's `Cargo.toml`
cargo add usls

# Or you can use specific commit
usls = { git = "https://github.com/jamjamjon/usls", rev = "???sha???"}

usls's People

Contributors

jamjamjon avatar oatiz avatar youngday avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

usls's Issues

ShapeError/IncompatibleShape, at 0.0.5

When I upgraded to 0.0.5, I found some error at runtime:

cargo run -r --example yolo -- --task detect --version v10 --model models\l1000_d_s.onnx --source assets\8104old.png

✅ ORT: 1.17.x | Opset: 13 | EP: Cpu(0) | Dtype: [Float32] | Parameters: 23.2 MiB
YOLO Task: Detect, Version: Some(V10)
✅ Dryrun x5
✅ Found images x1 (1 total)
Error: ShapeError/IncompatibleShape: incompatible shapes

It looks like a problem of model, but the model runs well with usls 0.0.3 and yolov10

python .\predict.py --model l1000_d_s.onnx --source .\datasets\test\8104old.png

Loading l1000_d_s.onnx for ONNX Runtime inference...
image 1/1 R:\yolov10\datasets\test\8104old.png: 640x640 1 S6, 1 C6, 2 backs, 623.8ms
Speed: 3.0ms preprocess, 623.8ms inference, 0.0ms postprocess per image at shape (1, 3, 640, 640)

Am I missing some important parameters in the new version?

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.